Installation
torch_world needs Python 3.10 or newer and PyTorch 2.1 or newer. PyTorch is its only required dependency.
bash
uv add torch_worldbash
pip install torch-worldbash
git clone <repository-url> pytorch-world
cd pytorch-world
uv syncOptional extras
| extra | installs | for |
|---|---|---|
examples | matplotlib | torch_world.plots and the notebooks |
action | mujoco | the RobotCube and PushT environments |
ogbench | ogbench, on Python 3.12 or earlier | OGBench tasks and datasets |
dmcontrol | dm_control, on Python 3.12 or earlier | DeepMind Control Suite tasks |
metaworld | metaworld | Meta-World tasks |
maniskill | mani_skill; on Linux, x86_64 with Python 3.12 or earlier | ManiSkill tasks; needs a Vulkan driver |
myosuite | myosuite, MuJoCo 3.7 or later | MyoSuite tasks; not with the benchmark extra |
robocasa | pyarrow, av | reading RoboCasa demonstrations; RoboCasa itself installs from source |
robodojo | h5py | reading RoboDojo episodes |
wam | diffusers, accelerate | the pre-trained Wan 2.1 VideoVAE of DreamZero |
tensorboard | tensorboard | live training curves with TensorBoardMonitor |
rerun | rerun-sdk | live curves and rollout videos with RerunMonitor |
test | pytest | running the test suite |
bash
pip install "torch-world[examples]"Check the install
python
import torch_world
print(torch_world.__version__)GPU
Every module and environment is plain PyTorch and runs on whatever device you move it to. Environments take a device argument and render batches directly on it.
