AGENT SKILL

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

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, and serial_pipeline_offline
  • eval, collect_demo_data, collect_episodic_demo_data, episode_to_transitions, and episode_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/, and league_demo/ when they are using the legacy loop style

Does not own

  • Framework/middleware examples such as ding/example/*.py; those belong to framework-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

  1. Use references/workflows.md to match the request to the right pipeline family.
  2. Use references/troubleshooting.md when the user hits a runtime failure or an expert-data/checkpoint mismatch.
  3. Use scripts/run_serial.sh from the repo root when you simply want a thin wrapper over ding -m serial.
  4. If the request actually wants the task/middleware runtime, move to framework-runtime instead of expanding this one.

Common decision points

  • Use serial_pipeline for the standard off-policy training loop.
  • Use serial_pipeline_onpolicy for PPO/A2C/PG-style recipes.
  • Use serial_pipeline_offline when the policy learns only from offline data.
  • Use eval when 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.md for the pipeline family map and example entry scripts.
  • references/troubleshooting.md for checkpoint, expert-data, and stop-value failures.
  • scripts/run_serial.sh at the repo root for a generic launch wrapper.

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