serial-pipelines
Routes legacy DI-engine serial, offline, evaluation, and data-collection pipelines.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- serial-pipelines
- license
- Apache 2.0
- metadata
- { "disco-role": "operating", "disable-model-invocation": true }
- description
- Routes legacy DI-engine serial, offline, evaluation, and data-collection pipelines.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md1.6 KB
- 参考文档references/workflows.md2.6 KB
03 SKILL.md 正文
Serial pipelines
Use this sub-skill for the legacy pipeline family built around
ding.entry.serial_pipeline and its related helpers.
These workflows are still the quickest path for many CartPole, Pendulum, and
reward-model recipes.
Owns
serial_pipeline,serial_pipeline_onpolicy, andserial_pipeline_offlineeval,collect_demo_data,collect_episodic_demo_data,episode_to_transitions, andepisode_to_transitions_filter- special serial modes such as SQIL, GAIL, DQFD, TREX, NGU, and reward-model flows
- direct training entry scripts that manually wire configs, env managers, policies, collectors, learners, and evaluators
- environment-specific demo scripts under
dizoo/classic_control/,bitflip/,frozen_lake/, andleague_demo/when they are using the legacy loop style
Does not own
- Framework/middleware examples such as
ding/example/*.py; those belong toframework-runtime - CLI parsing and config compilation details; those belong to
cli-config - Env-wrapper debugging and shape mismatches; those belong to
env-integration
Read this first when the user asks
- how to train or evaluate with a legacy DI-engine config file
- how to collect expert demonstrations or convert episodic data to transitions
- how the special SQIL/GAIL/DQFD/TREX/NGU launch paths differ from plain off-policy or on-policy training
- how to turn a CartPole or Pendulum config into a runnable single-process loop
- why a serial entry script hangs, exits early, or never reaches the stop value
Workflow
- Use
references/workflows.mdto match the request to the right pipeline family. - Use
references/troubleshooting.mdwhen the user hits a runtime failure or an expert-data/checkpoint mismatch. - Use
scripts/run_serial.shfrom the repo root when you simply want a thin wrapper overding -m serial. - If the request actually wants the task/middleware runtime, move to
framework-runtimeinstead of expanding this one.
Common decision points
- Use
serial_pipelinefor the standard off-policy training loop. - Use
serial_pipeline_onpolicyfor PPO/A2C/PG-style recipes. - Use
serial_pipeline_offlinewhen the policy learns only from offline data. - Use
evalwhen the user already has a checkpoint and only needs performance or replay output. - Use the collect-demo helpers when imitation-learning or offline-RL data must be written out before training.
Helpful bundle links
references/workflows.mdfor the pipeline family map and example entry scripts.references/troubleshooting.mdfor checkpoint, expert-data, and stop-value failures.scripts/run_serial.shat the repo root for a generic launch wrapper.
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).