dreamerv3
Use DreamerV3 for world-model reinforcement learning training, embodied environment dataflow, JAX model internals, result operations, and troubleshooting.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- dreamerv3
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use DreamerV3 for world-model reinforcement learning training, embodied environment dataflow, JAX model internals, result operations, and troubleshooting.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-provenance.md2.0 KB
- 参考文档references/repo-routing-metadata.json530 B
- 参考文档references/troubleshooting.md6.4 KB
- 脚本scripts/check_dreamerv3_install.py5.9 KB
03 SKILL.md 正文
DreamerV3 Repo Skill
Use this skill when a task involves DreamerV3, the dreamer Python distribution,
its dreamerv3 training entry point, or the bundled embodied RL runtime. The
repository implements DreamerV3 world-model reinforcement learning with a
fixed-hyperparameter training CLI, JAX/Ninjax model internals, environment
adapters, replay/dataflow utilities, and result/log plotting helpers.
Start here
-
Check that the installed package is importable and the intended JAX backend is visible:
python scripts/check_dreamerv3_install.py --backend cpu python scripts/check_dreamerv3_install.py --backend auto --json -
Pick the closest route below. Read only the sub-skill needed for the task, then follow its linked references and bundled scripts.
-
If the current checkout or package version may differ from this skill, read references/repo-provenance.md before relying on version-sensitive details.
-
For cross-cutting setup or failure triage, read references/troubleshooting.md.
Route map
| User task | Read this |
|---|---|
Compose a training command, choose --configs, run a bounded debug smoke, resume/evaluate a checkpoint, or pick train, train_eval, eval_only, or parallel |
sub-skills/train-configure/SKILL.md |
Implement or debug an embodied.Env, Driver, replay buffer, stream, wrapper chain, built-in env adapter, or custom dataflow contract |
sub-skills/embodied-dataflow/SKILL.md |
Inspect or modify dreamerv3.agent.Agent, RSSM, encoder/decoder, JAX setup, Ninjax state, heads/outputs, losses, optimizers, sharding, dtype, or numerics |
sub-skills/jax-models/SKILL.md |
| Install DreamerV3, reason about CUDA/Docker/optional suite dependencies, inspect logdirs, summarize metrics/scores, use Scope/TensorBoard/W&B, or triage operational failures | sub-skills/results-ops/SKILL.md |
Minimal install and import facts
- Public repository:
danijar/dreamerv3. - Python requirement from README: Python 3.11+.
- Distribution name from package metadata:
dreamer. - Import roots:
dreamerv3andembodied. - Package version captured for this skill:
3.3.1. - Base runtime requirements include JAX CUDA 12 packages,
elements,ninjax,optax,portal,scope,ale_py,autorom,av, and NumPy<2. - Several environment suites are optional in practice: DMC/Loconav need
dm_control; Crafter needscrafter; DMLab needsdeepmind_lab; Minecraft needs MineRL and Java; ProcGen needsprocgen; Gym/Memory Maze need their respective packages.
A minimal import check should succeed before any larger run:
import dreamerv3
import embodied
from embodied.envs import dummy
For JAX-only debugging, prefer an explicit CPU platform first:
JAX_PLATFORM_NAME=cpu python scripts/check_dreamerv3_install.py --backend cpu
Common operating decisions
- Use
debuganddummy_discfor fast installation, config, replay, logging, and JAX sanity checks. Do not expect learning quality from the debug preset. - Use real task presets such as
crafter,atari,dmc_vision,dmc_proprio,dmlab,minecraft, orprocgenonly after optional suite dependencies are installed and the backend is appropriate. - Reuse a
--logdironly when continuing a compatible run. Changing size presets, RSSM dimensions, head bins, action/observation spaces, or major model config usually requires a fresh logdir or selective checkpoint restore. - Treat CUDA as a production-performance backend, not a substitute for fixing a failing CPU debug smoke. First make the debug CPU route work, then scale up.
- Original repository tests and examples are verification evidence. Runtime workflows in this generated skill use bundled references/scripts instead of requiring future agents to open source files from a checkout.
Bundled root references and scripts
- references/repo-provenance.md: source commit, package version, dirty-state baseline, and evidence paths.
- references/troubleshooting.md: cross-cutting install/import/JAX/config/task/logdir triage and sub-skill routing.
- references/repo-routing-metadata.json: structured scenario placement for managed router import.
- scripts/check_dreamerv3_install.py: safe package/JAX/config/dummy-env smoke checker.
Do not use this skill for
- Generic RL theory questions that do not involve DreamerV3, world models, or the
embodiedruntime. - Editing an unrelated reinforcement-learning library such as Stable-Baselines3, CleanRL, Tianshou, PettingZoo, or Gymnasium.
- Full benchmark reproduction claims without running the required environment, seed, hardware, and duration-specific experiments.
- Tasks that require private datasets, credentials, cloud accounts, or long training jobs without explicit user approval.
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).