Skip to content

Guides ​

INFO

Esta página aún no está traducida. Leer en inglés

Every part of torch_world is replaceable: models, environments, data and planners meet at small, documented interfaces. The guides fall into three groups.

Bring your own ​

Plug your own component into the library. Each guide states the interface, gives a complete example, and shows how to run it with the rest of the library.

  • Model


    Subclass WorldModel or JEPA: implement encode, predict and forward, and get rollouts, planning and benchmarks.

  • Environment


    Register a variant of a built-in task, or subclass BenchmarkEnv for new dynamics.

  • Dataset


    Train on your own episodes: a dict of tensors (N, T, ...), or any Dataset of dicts.

  • Planner


    Any callable planner(model, z, goal) that returns an action sequence.

Train and evaluate ​

guidecovers
Trainingthe training loop, EMA targets, BatchNorm statistics, frozen encoders
Maskingimage blocks, video tubes, frame-causal attention
Planningrollouts, costs, CEM, closed-loop control, goal-reaching evaluation
Metricsprobes, collapse checks, prediction error, control metrics
Safetyfailure margins, reachability values learned in a world model's imagination, and the Latent Safety Filter
Figuresthe plotting functions used in the notebooks

Benchmarks ​

guidecovers
Benchmark experimentsbackends, rendering quality, run_experiment, saved runs, GT references
Pixel worldsthe original PointMass, Macaw and RobotCube interfaces

The Environments page lists every registered task by category.