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
- 参考文档references/package-surface.md2.3 KB
- 参考文档references/repo-provenance.md1.0 KB
- 参考文档references/repo-routing-metadata.json520 B
- 参考文档references/troubleshooting.md3.1 KB
- 脚本scripts/check_install.py1.2 KB
- 脚本scripts/run_parallel.sh197 B
- 脚本scripts/run_serial.sh195 B
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:
dingorditaskCLI usage- config files,
main_config,create_config, orsystem_config compile_config,read_config,save_config, or registry queries- launch flags for
serial,parallel,dist,eval, orditask - 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, orserial_pipeline_offlineeval,collect_demo_data,collect_episodic_demo_data, or episodic post-processing- legacy
ding/entry/*launchers and environment-specific entry scripts underdizoo/ - 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, orEventLoop- middleware-based recipes using
StepCollector,OffPolicyLearner,multistep_trainer,interaction_evaluator,CkptSaver, ordata_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, orEnvSupervisor- env wrapper selection, reset/step shape mismatches, or new environment onboarding
- DIZoo environment patterns in
dizoo/classic_control/,bitflip/,frozen_lake/, orleague_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 fording -m serialwith a config path and seed.scripts/run_parallel.sh— thin wrapper fording -m parallelwith a config path and seed.
Read first
references/package-surface.mdfor the repo module map and public entry points.references/troubleshooting.mdfor 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
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).