AGENT SKILL

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

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

  1. 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
    
  2. Pick the closest route below. Read only the sub-skill needed for the task, then follow its linked references and bundled scripts.

  3. If the current checkout or package version may differ from this skill, read references/repo-provenance.md before relying on version-sensitive details.

  4. 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: dreamerv3 and embodied.
  • 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 needs crafter; DMLab needs deepmind_lab; Minecraft needs MineRL and Java; ProcGen needs procgen; 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 debug and dummy_disc for 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, or procgen only after optional suite dependencies are installed and the backend is appropriate.
  • Reuse a --logdir only 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

Do not use this skill for

  • Generic RL theory questions that do not involve DreamerV3, world models, or the embodied runtime.
  • 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

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