GPU and storage requirements by checkpoint
Choose a checkpoint before setting up the environment. The table uses Sand.ai’s documented configuration or recommendation for each variant.
| Checkpoint | Published GPU guidance | Setup detail |
|---|---|---|
| MAGI-2 Preview (114B) | 8 NVIDIA Hopper GPUs | Around 307 GB of model files |
| MAGI-1 (24B) | 8 × H100 or H800 | Base 24B configuration |
| MAGI-1 (4.5B) | 1 × RTX 4090 recommended | Standard workflow uses at least 24 GB of VRAM |
| MAGI-1 (4.5B Distill + FP8) | At least 12 GB of VRAM | Set window_size to 1 in the official configuration |
Preview also needs space for the container, download cache, and output. Checkpoint size and VRAM requirements measure different resources.
Check the hardware and release
The official MAGI-2 Preview path calls for eight NVIDIA Hopper GPUs, Python 3.12 with a recent CUDA toolkit for source installations, plus FFmpeg for audio muxing. The checkpoint bundle is about 307 GB. Allow extra disk space for the download cache, Docker image and outputs.
The full 480B MAGI-2 release has separate availability. Use the 114B Preview checkpoint and repository for this procedure. The examples here follow upstream documentation and should be validated on the target GPU host.
Download weights and start the container
On a Linux machine with NVIDIA container GPU support, run the commands from the working directory where you want checkpoints and output. The official container includes compiled dependencies. Replace the moving latest tag with a known commit tag when reproducing a benchmark.
git clone https://github.com/SandAI-org/MAGI-2-preview.git
cd MAGI-2-preview
mkdir -p ckpt output
pip install huggingface_hub
hf download sand-ai/MAGI-2-preview --local-dir ckpt
docker pull sandai/magi-2-preview:latest
docker run --gpus all --rm -it \
-v "$PWD:/workspace" -w /workspace \
sandai/magi-2-preview:latest
Generate one clip
Run the command from the repository root inside the container. Add --image with a path accessible inside the container for image-to-video. For a batch, the upstream scripts/run_demo.sh reads the SAMPLES file and can set OUTPUT_DIR and SEED.
The Preview release supports 10-second clips. Use the official configuration and play the resulting MP4 with sound. If playback is silent, check that FFmpeg is on PATH in the inference environment.
torchrun --nproc_per_node=8 inference/pipeline/entry.py \
--prompt "A fox crosses fresh snow. Hear its soft footsteps." \
--output output/
Diagnose setup errors and choose a smaller model
For missing checkpoints, verify the directory layout and MAGI2_CKPT_ROOT. For an out-of-memory error, check that all eight Hopper GPUs are visible, then review the component offload settings and actual free memory. For exact output dimensions, use the documented output width and height flags.
The MAGI-1 model zoo recommends one RTX 4090 for 4.5B. Upstream also documents a constrained 12 GB setup for the distilled FP8 4.5B model with window_size set to 1. This path uses the MAGI-1 checkpoint and its own dependencies and configuration.