Setup Guide
This guide covers the setup requirements for the GR00T-Dreams post-training recipe. Install and configure Cosmos Predict 2.5 and Cosmos Reason 2 by following each repository’s official installation instructions; this page only summarizes what you need and adds recipe-specific steps.
System Requirements
For detailed hardware and software requirements, see the official guides linked below. In brief:
- NVIDIA GPUs with Ampere architecture (RTX Pro 6000, A100, H100) or newer NVIDIA driver compatible with CUDA 12.8+ (see Predict 2.5 / Reason 2 for exact versions)
- Linux x86-64
- glibc>=2.35 (e.g Ubuntu >=22.04)
- Python 3.10
Installation
1. Clone the repositories
git clone https://github.com/nvidia-cosmos/cosmos-predict2.5.git
git clone https://github.com/nvidia-cosmos/cosmos-reason2.git
2. Install Cosmos Predict 2.5
Follow the official installation instructions for Cosmos Predict 2.5 (environment, dependencies, CUDA variant). Do not rely on this page for exact commands.
cd cosmos-predict2.5
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
* **[Cosmos Predict 2.5 — Installation](https://docs.nvidia.com/cosmos/latest/predict2.5/installation.html)** (NVIDIA Docs)
* Alternatively, see the [Cosmos Predict 2.5 repository README](https://github.com/nvidia-cosmos/cosmos-predict2.5) for clone, `uv`, and `uv sync` steps.
### 3. Install Cosmos Reason 2
```shell
uv sync --extra=cu128
source .venv/bin/activate
Follow the **official installation instructions** for Cosmos Reason 2 (environment, dependencies, CUDA variant).
* **[Cosmos Reason 2 — Repository README](https://github.com/nvidia-cosmos/cosmos-reason2)** (clone, `uv`, `uv sync`, inference setup)
* For post-training–specific setup (optional for this recipe), see [Cosmos Reason 2 Post-Training Installation](https://github.com/nvidia-cosmos/cosmos-reason2/blob/main/examples/cosmos_rl/README.md).
```shell
uv sync --extra=cu128 --active --inexact
After completing both installations, you should be able to run inference from each repository root as described in their docs.
---
* `--extra=cu128`: CUDA 12.8
* `--extra=cu129`: CUDA 12.9
## Recipe-specific configuration
The following are specific to this GR00T-Dreams workflow, not replacements for the official install.
### Downloading checkpoints (Cosmos Predict 2.5)
1. Get a [Hugging Face Access Token](https://huggingface.co/settings/tokens) with `Read` permission
2. Install [Hugging Face CLI](https://huggingface.co/docs/huggingface_hub/en/guides/cli): `uv tool install -U "huggingface_hub[cli]"`
3. Login: `hf auth login` and enter the token created in Step 1.
4. Accept the [NVIDIA Open Model License Agreement](https://huggingface.co/nvidia/Cosmos-Predict2.5-2B).
Checkpoints are downloaded automatically during inference and post-training. To change the cache location, set [HF_HOME](https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#hfhome).
> **💡 Tip**: Ensure you have sufficient disk space in `HF_HOME`.
### Training output directory
Set where Cosmos Predict 2.5 stores checkpoints and artifacts (default: `/tmp/imaginaire4-output`):
```bash
export IMAGINAIRE_OUTPUT_ROOT=/path/to/your/output/directory
💡 Tip: Ensure you have sufficient disk space in
IMAGINAIRE_OUTPUT_ROOT.
Weights & Biases (W&B) Logging
By default, training will attempt to log metrics to Weights & Biases. You have several options:
Option 1: Enable W&B
To enable full experiment tracking with W&B:
- Create a free account at wandb.ai
- Get your API key from https://wandb.ai/authorize
-
Set the environment variable:
⚠️ Security Warning: Store API keys in environment variables or secure vaults. Never commit API keys to source control.
Option 2: Disable W&B
Add job.wandb_mode=disabled to your training command to disable wandb logging.
Next Steps
Once the setup is complete, proceed to the post-training tutorial to learn how to train Cosmos Predict 2.5 on Gr00t Trajectories.