Guides
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.
Subclass
WorldModelorJEPA: implementencode,predictandforward, and get rollouts, planning and benchmarks.Register a variant of a built-in task, or subclass
BenchmarkEnvfor new dynamics.Train on your own episodes: a dict of tensors
(N, T, ...), or anyDatasetof dicts.Any callable
planner(model, z, goal)that returns an action sequence.
Train and evaluate
| guide | covers |
|---|---|
| Training | the training loop, EMA targets, BatchNorm statistics, frozen encoders |
| Masking | image blocks, video tubes, frame-causal attention |
| Planning | rollouts, costs, CEM, closed-loop control, goal-reaching evaluation |
| Metrics | probes, collapse checks, prediction error, control metrics |
| Safety | failure margins, reachability values learned in a world model's imagination, and the Latent Safety Filter |
| Figures | the plotting functions used in the notebooks |
Benchmarks
| guide | covers |
|---|---|
| Benchmark experiments | backends, rendering quality, run_experiment, saved runs, GT references |
| Pixel worlds | the original PointMass, Macaw and RobotCube interfaces |
The Environments page lists every registered task by category.
