cd /news/generative-ai/running-magi-2-preview-locally-hardw… · home › topics › generative-ai › article
[ARTICLE · art-176432] src=dev.to ↗ pub= topic=generative-ai verified=true sentiment=· neutral

Running MAGI-2 Preview locally: hardware, storage, and the two-stage pipeline

A developer documented running Sand AI's MAGI-2 Preview locally, a 114B-parameter research checkpoint (about 6B active per token) released under Apache-2.0 that generates 10-second clips. The published download totals roughly 307 GB across six directories, and the official 1080p preset calls for eight NVIDIA Hopper GPUs running a two-stage pipeline: a preview stage at 512×896 and a refiner upscaling to 1088×1920. The writeup notes that neither stage fits on an 80GB card alongside the other's activations, so four offload environment variables (cpu, gpu, or roundtrip) control where each component sits between phases.

recommendation

Budget about 307 GB of storage and eight Hopper GPUs for MAGI-2 Preview, and set the preview and refiner offload modes to roundtrip so each stage is staged in and out rather than held in VRAM together.

more in playbook: Inference and self-hosting
by read4 min views1 publishedNov 25, 2026

If you search for a MAGI-2 download, you will usually find two different models under one name. The flagship MAGI-2 is the 480B model Sand AI describes as generating up to 30 seconds of 1080p video with native audio. That checkpoint is not the file on Hugging Face. Sand AI has said it will follow up with open-source releases and a technical report. Until then, there is no flagship weight file to run, and no official flagship VRAM figure. The local run described here is MAGI-2 Preview only. The Preview is a research checkpoint of about 114B total parameters, with about 6B active per token. It is released under Apache-2.0. Clips from it are 10 seconds long, which is the only duration that checkpoint supports. The published download is about 307 GB.

Sand AI's inference README and the model card for sand-ai/MAGI-2-preview describe the same Preview checkpoint. The 1080p preset names eight NVIDIA Hopper GPUs. The software side is Python 3.12, a recent CUDA toolkit, and ffmpeg on PATH. Without ffmpeg, the video file is still written; it is just silent. The audio decoder bundled with the checkpoint has its own upstream license, separate from the Apache-2.0 license on the Preview code and weights.

A smaller GPU count is not the official setup. Plan for about 307 GB of checkpoint files and eight Hopper GPUs, because that is the preset the README names. No unofficial rental quote belongs here.

Weights are not bundled with the inference code. Everything the pipeline loads lives in one Hugging Face repository, sand-ai/MAGI-2-preview. The usual download path is into a local ckpt/ directory, or any path you set in MAGI2_CKPT_ROOT. The directory names in the repository already match the configs, so nothing needs renaming afterwards.

The published size breakdown is:

preview — about 228 GB. The preview-stage transformer.text_encoder — about 56 GB. The text encoder, Qwen/Qwen3.5-27B.refiner — about 14 GB. The refiner-stage transformer.stable-audio-open-1.0 — about 5 GB. The audio VAE that decodes generated audio latents.vae — about 3 GB. The video VAE, from Wan-AI/Wan2.2-TI2V-5B.turbo_vae — about 2 GB. A distilled VAE decoder, used for decoding by default. Those six directories are the whole download. Plan around the total of about 307 GB, not any one shard.

Generation runs in two stages. The magi2_preview stage denoises the clip at low resolution. The magi2_refiner stage takes that result up to 1080p. For the 1080p preset, the preview stage generates 512×896, and the refiner takes that to 1088×1920.

1080p here is a delivery tier, not the exact generated shape. The VAE stride constrains every generated dimension to a multiple of 16, so the tier generates 1088 wide rather than 1080. The finished video is written at that generated shape unless you pass --output-width and --output-height to rescale it, for example to 1080×1920.

At 1080p, neither the preview stage nor the refiner fits on an 80GB card next to the other stage's activations. Four environment variables decide where each large component sits between phases: MAGI2_TEXT_ENC_OFFLOAD_MODE, MAGI2_PREVIEW_OFFLOAD_MODE, MAGI2_REFINER_OFFLOAD_MODE, and MAGI2_VAE_OFFLOAD_MODE. Each can be cpu, gpu, or roundtrip. The preview and the refiner default to roundtrip, staged in and out around the stage that needs them.

Decoding uses the distilled turbo decoder from ckpt/turbo_vae, a temporal sliding window on one rank per video. MAGI2_DETERMINISTIC=1, or --deterministic, makes the MoE scatter and attention kernels bit-exact, at some cost in speed.

A published Docker image, sandai/magi-2-preview, already has the compiled dependencies. You can also install from source with the repository's requirements.txt. MagiAttention and MagiCompiler are required; the Dockerfile records the pinned revisions.

The README launches every visible GPU with scripts/run_demo.sh, which runs inference/pipeline/entry.py under torchrun. The demo generates at 1080p, with seed 42, from a batch file. For a single clip, the documented command is torchrun --nproc_per_node=8 on the same entry point, with a --prompt and an --output directory. Text-to-video is a prompt alone. Image-to-video is a prompt plus a still.

The captions the model was trained on are long and structured, so a short hand-written prompt underuses it. The repository includes two system prompts for a prompt-enhancement LLM, one for text-to-video and one for image-to-video. Enhancing is recommended, but it is not a precondition for generating; the shipped demo batch runs both raw and enhanced examples.

This pipeline will not produce a 30-second flagship clip, will not accept the flagship's documented omni-reference bundle of up to 20 media items, and will not stand in for a flagship VRAM number that has not been published. Official sample clips that demonstrate the flagship, including the 30-second single-take style transitions, are Sand AI's, not MagiVideo's, and they are not a local Preview result.

A runbook that restates the official hardware list, the download size, and the command is here:

https://magivideo.pro/magi2-requirements MagiVideo is an independent documentation site. It is not affiliated with Sand AI, and it does not generate MAGI-2 clips.

── more in #generative-ai 4 stories · sorted by recency
── more on @sand ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/running-magi-2-previ…] indexed:0 read:4min 2026-11-25 · —