AGENT SKILL

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

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

  • ding and ditask command-line usage
  • ding.config helpers: read_config, read_config_directly, read_config_with_system, save_config, save_config_py, compile_config, and compile_config_parallel
  • config file shape: main_config, create_config, and the optional system_config used 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, and ding -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 ding mode or ditask flag
  • why a config file fails to load or compile
  • how create_config and main_config are 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

  1. Decide whether the request is about the CLI surface or the config surface.
  2. Use references/cli-reference.md for commands, flags, and launch modes.
  3. Use references/config-reference.md for config object structure and compile/save behavior.
  4. Use scripts/cli_smoke.py when you want a bundled check for CLI help output plus config compilation in the installed environment.
  5. 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 serial for the legacy single-process pipeline family.
  • Prefer ding -m parallel when the workflow is using Parallel-based message routing and multiple workers on one machine.
  • Prefer ding -m dist only when the config contains distributed system fields and the user explicitly wants coordinator/collector/learner launch control.
  • Prefer ditask when the user is working with the task router or the modern multi-process framework entry model.

Helpful bundle links

  • references/cli-reference.md for CLI flags, modes, and launch semantics.
  • references/config-reference.md for config object shape and compile rules.
  • references/troubleshooting.md for common parse, mode, and registry errors.
  • scripts/cli_smoke.py for a small check that the installed package still parses the CLI and compiles a representative config.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351