AGENT SKILL

di-engine

Routes DI-engine users to the right workflow for CLI/config launches, serial and framework-based RL pipelines, and environment integration.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
di-engine
license
Apache 2.0
metadata
{ "disco-role": "operating", "disable-model-invocation": true }
description
Routes DI-engine users to the right workflow for CLI/config launches, serial and framework-based RL pipelines, and environment integration.
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

DI-engine

Use this skill for the public DI-engine reinforcement-learning engine. It routes common user requests to focused sub-skills instead of forcing future agents to rediscover the repo structure from scratch.

Quick check

If you only need to verify that the package is installed, start with:

python -m pip check
python -c "import ding, dizoo; print(ding.__version__)"

For a faster bundled smoke check, run scripts/check_install.py from an environment where DI-engine is installed.

Main routes

cli-config

Read this when the user asks about:

  • ding or ditask CLI usage
  • config files, main_config, create_config, or system_config
  • compile_config, read_config, save_config, or registry queries
  • launch flags for serial, parallel, dist, eval, or ditask
  • the repo-provided shell wrappers for serial/parallel launches

serial-pipelines

Read this when the user asks about:

  • ding.entry.serial_pipeline, serial_pipeline_onpolicy, or serial_pipeline_offline
  • eval, collect_demo_data, collect_episodic_demo_data, or episodic post-processing
  • legacy ding/entry/* launchers and environment-specific entry scripts under dizoo/
  • special modes such as SQIL, GAIL, DQFD, TREX, NGU, reward-model, or offline RL

framework-runtime

Read this when the user asks about:

  • ding.framework.task, Parallel, Supervisor, or EventLoop
  • middleware-based recipes using StepCollector, OffPolicyLearner, multistep_trainer, interaction_evaluator, CkptSaver, or data_pusher
  • the modern example scripts in ding/example/
  • multi-process message routing, task.wait_for, task.emit, or auto-recovery

env-integration

Read this when the user asks about:

  • DingEnvWrapper, BaseEnvManager, BaseEnvManagerV2, or EnvSupervisor
  • env wrapper selection, reset/step shape mismatches, or new environment onboarding
  • DIZoo environment patterns in dizoo/classic_control/, bitflip/, frozen_lake/, or league_demo/
  • custom environment adapters and the env-specific config/template pattern

Useful bundled helpers

  • scripts/check_install.py — quick import/version/config smoke for a prepared environment.
  • scripts/run_serial.sh — thin wrapper for ding -m serial with a config path and seed.
  • scripts/run_parallel.sh — thin wrapper for ding -m parallel with a config path and seed.

Read first

  • references/package-surface.md for the repo module map and public entry points.
  • references/troubleshooting.md for cross-cutting install/import/runtime failures.

Notes

  • This skill covers the core DI-engine workflows that can be exercised from the installed package and bundled helpers without reopening the source checkout.
  • Advanced external environment families that need separate optional packages are intentionally left out of the default routes.
  • If a request mentions a specific example, config, or entry script, route to the sub-skill that owns that workflow rather than reading the source tree directly.

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