@@ -83,17 +83,83 @@ After the build finishes, verify:
8383docker images | grep loongforge
8484```
8585
86+ ### Pre-built Docker Images
87+
88+ LoongForge Docker images are available on Docker Hub:
89+ [ https://hub.docker.com/u/loongforge ] ( https://hub.docker.com/u/loongforge ) .
90+
91+ LoongForge publishes versioned pre-built Docker images. Select the desired tag
92+ from Docker Hub. LeRobot images use the same version tag with a ` _lerobot ` suffix
93+ when available.
94+
95+ | Image | Tag Pattern | Description |
96+ | ---| ---| ---|
97+ | ` loongforge/loongforge ` | ` <version> ` | Base image: LLM / VLM / Diffusion training only |
98+ | ` loongforge/loongforge ` | ` <version>_lerobot ` | Includes LeRobot dependencies for VLA training (Pi0.5 + GR00T) |
99+
100+ ``` bash
101+ # Set the version tag you want to use, for example: 0.1.1
102+ LOONGFORGE_VERSION=< version>
103+
104+ # Pull the base image
105+ docker pull loongforge/loongforge:${LOONGFORGE_VERSION}
106+
107+ # Pull the image with LeRobot support
108+ docker pull loongforge/loongforge:${LOONGFORGE_VERSION} _lerobot
109+ ```
110+
111+ #### Dual Python Environment in the LeRobot Image
112+
113+ The LeRobot image (` <version>_lerobot ` ) uses a ** dual virtual-environment** setup to resolve
114+ dependency conflicts between Pi0.5 and GR00T:
115+
116+ | Environment | Path | Default? | Use Case |
117+ | ---| ---| ---| ---|
118+ | Base (Pi0.5) | System Python | Yes | Pi0.5 VLA training |
119+ | GR00T | ` /opt/venvs/gr00t ` | No | GR00T-N1.6 VLA training |
120+
121+ ** To activate the GR00T environment inside the container:**
122+
123+ ``` bash
124+ source /opt/venvs/gr00t/bin/activate
125+ # or use the convenience alias:
126+ use-gr00t
127+ ```
128+
129+ ** To return to the base (Pi0.5) environment:**
130+
131+ ``` bash
132+ deactivate
133+ ```
134+
135+ ** For distributed training, use the venv's torchrun:**
136+
137+ ``` bash
138+ /opt/venvs/gr00t/bin/torchrun ${DISTRIBUTED_ARGS[@]} ...
139+ ```
140+
86141### Run the container
87142
88143``` bash
144+ # Set the version tag you want to use, for example: 0.1.1
145+ LOONGFORGE_VERSION=< version>
146+
147+ # Using the base image (LLM/VLM/Diffusion)
148+ docker run --runtime=nvidia --gpus all -itd --rm \
149+ -v /path/to/your/hf/models:/mnt/cluster/huggingface.co/ \
150+ -v /path/to/data:/mnt/cluster/LoongForge/ \
151+ loongforge/loongforge:${LOONGFORGE_VERSION} /bin/bash
152+
153+ # Using the LeRobot image (VLA: Pi0.5 + GR00T)
89154docker run --runtime=nvidia --gpus all -itd --rm \
90155 -v /path/to/your/hf/models:/mnt/cluster/huggingface.co/ \
91156 -v /path/to/data:/mnt/cluster/LoongForge/ \
92- loongforge:latest /bin/bash
157+ loongforge/loongforge: ${LOONGFORGE_VERSION} _lerobot /bin/bash
93158```
94159
95160Once inside the container, navigate to ` /workspace/LoongForge/examples/ ` and
96- launch the desired training script.
161+ launch the desired training script. For GR00T training, remember to activate
162+ the GR00T virtual environment first (see Dual Python Environment above).
97163
98164---
99165
0 commit comments