ops-tooling
Diagnose DeepSpeed installs, build/JIT flags, CLI tools, autotuning, profiling, monitoring, DeepNVMe/GDS utilities, compression APIs, and repo policy checks safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ops-tooling
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Diagnose DeepSpeed installs, build/JIT flags, CLI tools, autotuning, profiling, monitoring, DeepNVMe/GDS utilities, compression APIs, and repo policy checks safely.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md5.5 KB
- 参考文档references/troubleshooting.md6.2 KB
- 参考文档references/workflows.md7.6 KB
- 脚本scripts/check_deepspeed_tools.py5.1 KB
03 SKILL.md 正文
DeepSpeed Ops Tooling
Use this sub-skill when an agent needs to inspect or explain DeepSpeed operational tooling rather than author a training loop, inference kernel injection, or parallelism design.
Use For
- Installation and compatibility diagnosis with
ds_reportorpython -m deepspeed.env_report. - Build planning for JIT versus prebuilt ops,
DS_BUILD_*flags, CUDA toolkit matching, optional extras, andTORCH_EXTENSIONS_DIRcaching. - Installed tool discovery for
deepspeed,ds,ds_report,ds_io,ds_nvme_tune, and other safe CLI help checks. - Autotuning launch planning, FLOPS profiler setup, monitor backend configuration, DeepNVMe/AIO/GDS guardrails, and compression API routing.
- DeepSpeed repo policy diagnostics such as CUDA/distributed import bans, license headers, and package index safety.
Do Not Use For
- Training-loop JSON ownership or ZeRO/offload choices; route to
training-config. - Inference injection policies, tensor-parallel inference kernels, or Triton inference details; route to
inference-injection. - Pipeline/model parallel architecture or MoE expert design; route to
parallelism-moe.
Start Here
- Run the bundled safe checker before destructive or long-running tooling:
python scripts/check_deepspeed_tools.py - Use CLI Reference to choose the right installed tool and identify commands that only print help versus commands that run jobs or write storage.
- Use Workflows for install triage, autotuning, profiling, monitors, DeepNVMe, and compression setup.
- Use Troubleshooting for common failures and safety gates.
Safety Defaults
- Prefer read-only inspection:
--help, imports, config parsing, andds_reportbefore running builds or I/O benchmarks. - Treat
ds_io,ds_nvme_tune, DeepNVMe write APIs, and GDS examples as potentially destructive unless the user explicitly provides a scratch directory and confirms writes. - Treat autotuning as a real job launcher: it can start many training experiments and consume cluster GPUs.
- Never run
ds_sshor remote launch commands without explicit hostfile, SSH, and user approval.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).