cli-config
Routes DI-engine CLI, config, and launch-parameter workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-config
- license
- Apache 2.0
- metadata
- { "disco-role": "operating", "disable-model-invocation": true }
- description
- Routes DI-engine CLI, config, and launch-parameter workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md2.7 KB
- 参考文档references/config-reference.md2.2 KB
- 参考文档references/troubleshooting.md1.3 KB
- 脚本scripts/cli_smoke.py1.1 KB
03 SKILL.md 正文
CLI and config
Use this sub-skill for the package entry points, config compilation, and the lightweight launch wrappers that sit in front of the training/runtime code.
Owns
dingandditaskcommand-line usageding.confighelpers:read_config,read_config_directly,read_config_with_system,save_config,save_config_py,compile_config, andcompile_config_parallel- config file shape:
main_config,create_config, and the optionalsystem_configused by distributed launch paths - predefined config lookup through
ding.entry.predefined_config - generic launch wrappers such as
ding -m serial,ding -m parallel,ding -m dist, andding -m eval
Does not own
- The detailed serial/offline/eval loops themselves; those live in
serial-pipelines - Task/middleware examples and multi-process routing internals; those live in
framework-runtime - Env-wrapper behavior and environment shape debugging; those live in
env-integration
Read this first when the user asks
- how to choose a
dingmode orditaskflag - why a config file fails to load or compile
- how
create_configandmain_configare supposed to pair up - how to run the repo-provided serial or parallel wrappers from a prepared environment
- how to query the registry or choose a predefined CartPole/Pendulum config
Workflow
- Decide whether the request is about the CLI surface or the config surface.
- Use
references/cli-reference.mdfor commands, flags, and launch modes. - Use
references/config-reference.mdfor config object structure and compile/save behavior. - Use
scripts/cli_smoke.pywhen you want a bundled check for CLI help output plus config compilation in the installed environment. - If the request is really about training logic or env behavior, route to the neighboring sub-skill instead of growing this one.
Common decision points
- Prefer
ding -m serialfor the legacy single-process pipeline family. - Prefer
ding -m parallelwhen the workflow is usingParallel-based message routing and multiple workers on one machine. - Prefer
ding -m distonly when the config contains distributed system fields and the user explicitly wants coordinator/collector/learner launch control. - Prefer
ditaskwhen the user is working with the task router or the modern multi-process framework entry model.
Helpful bundle links
references/cli-reference.mdfor CLI flags, modes, and launch semantics.references/config-reference.mdfor config object shape and compile rules.references/troubleshooting.mdfor common parse, mode, and registry errors.scripts/cli_smoke.pyfor a small check that the installed package still parses the CLI and compiles a representative config.
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).