diffusion-policy
Use Diffusion Policy for robot imitation-learning configs, zarr replay data, policy/model interfaces, training/evaluation workflows, and safety-gated real robot operations.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- diffusion-policy
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use Diffusion Policy for robot imitation-learning configs, zarr replay data, policy/model interfaces, training/evaluation workflows, and safety-gated real robot operations.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/overview-and-installation.md4.2 KB
- 参考文档references/repo-provenance.md2.4 KB
- 参考文档references/repo-routing-metadata.json532 B
- 参考文档references/troubleshooting.md4.6 KB
- 脚本scripts/smoke_check.py5.5 KB
03 SKILL.md 正文
Diffusion Policy
Use this repo skill when a task involves the diffusion_policy robotics imitation-learning codebase: Hydra experiment configs, Push-T/Robomimic/Kitchen/BlockPush tasks, zarr demonstration replay buffers, diffusion action policies, checkpoint evaluation, Ray multiruns, or real Push-T robot data collection/evaluation.
Start with these checks
-
Read repo provenance before assuming the skill matches a checkout or package version.
-
Read overview and installation for dependency variants, package/import behavior, and safe smoke checks.
-
Run the bundled smoke checker when you need environment evidence without training, downloads, Ray, cameras, or robot motion:
python scripts/smoke_check.py --json -
Use cross-cutting troubleshooting for import, Hydra, dependency, dataset, CUDA, simulator, W&B, and hardware failures.
Route by task
| If the user needs... | Read |
|---|---|
| Build or debug single-seed training, checkpoint evaluation, Hydra overrides, Ray multiruns, output trees, W&B/logs, or benchmark command structure | training-and-evaluation |
Inspect or validate zarr/zip ReplayBuffer stores, dataset sample schemas, SequenceSampler, normalizers, or dataset conversion assumptions |
data-and-replay-buffers |
| Choose/inspect low-dim, image, hybrid, diffusion UNet/Transformer, Robomimic, BET, or IBC policy/model families; debug shape, normalizer, checkpoint, or device issues | policies-and-models |
| Preflight UR5 + RealSense + SpaceMouse workflows, demo capture, real robot policy evaluation, shared-memory IO, real dataset conversion, or hardware safety gates | real-robot-operations |
What this skill covers
- The core
Dataset->Normalizer->Policy->EnvRunner->Workspaceworkflow. - Low-dimensional and image observation/action interfaces, including horizon terminology (
horizon,n_obs_steps,n_action_steps). - Hydra workspace/task config composition and command-building patterns.
- ReplayBuffer zarr/zip store structure and episode validation.
- Checkpoint evaluation behavior, including EMA model selection.
- Optional simulator, CUDA, Ray, W&B, Robomimic, MuJoCo, and real-robot dependency boundaries.
- Safety-gated real-robot operations: UR RTDE, RealSense, SpaceMouse, shared-memory queues/ring buffers, timestamp alignment, and conversion of recorded episodes.
Boundaries and safety
- Do not launch training, Ray workers, data downloads, W&B online logging, simulator rollouts, camera capture, or robot motion as a smoke check.
- Do not treat a CPU import check as proof that benchmark-scale CUDA, MuJoCo/Robomimic, or real-robot workflows are ready.
- Stop for explicit operator confirmation before any live robot action, camera recording, or command that may overwrite run outputs.
- When a workflow needs project entrypoints or config files, first verify that the user is operating in a compatible Diffusion Policy checkout or equivalent project layout; this skill provides reusable operating knowledge and safe helpers, not the full benchmark runtime.
Bundled scripts
- scripts/smoke_check.py checks distribution metadata, representative imports, optional config root counts, and optional torch CUDA visibility without side effects.
- Sub-skill helpers validate config composition, summarize multirun logs, inspect ReplayBuffer stores, inspect policy interfaces, and preflight real-robot dependencies.
Refresh and verification notes
This skill was generated from a clean source snapshot before skill-output files were added. If a checkout has a different commit, changed config targets, dependency files, entrypoint options, dataset/policy/workspace classes, or real-robot APIs, refresh the repo skill before relying on detailed commands or signatures.
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).