Author’s note: As of now, the only MAGI-2 version available for private deployment is the Preview released in August 2026. It requires 8 Hopper GPUs and about 307 GB of weights, and it outputs fixed 10-second audio-video clips. The 480-billion-parameter flagship released in November 2026 is currently available only through the official hosted endpoint.
Summary: This article answers which version of MAGI-2 you can deploy now, what hardware and files it needs, and how to verify a successful deployment.
Bottom line up front: If you need to keep the model locally, you can only deploy MAGI-2 Preview right now; if you need 30-second long-form video, multimodal references, or video editing, you can only use the flagship’s official hosted service. For Preview, the official hardware requirement is a single node with 8 NVIDIA Hopper GPUs, and you should prepare about 307 GB of disk space for the weights, plus room for download cache, container unpacking, and outputs. On the software side, you need Python 3.12, a recent CUDA Toolkit, and ffmpeg. The flagship’s open-source weights and comprehensive technical report are listed as future plans in the official announcement; as of 2026-11-25, they have not been released.
This article is based on official reports, repositories, model cards, and NVIDIA documentation, current as of 2026-11-25 (UTC). It contains no hands-on benchmark results; commands and checks are labeled with their source or marked as illustrative.

MAGI-2 Deployment Knowledge Map

Figure note: The decision starts with just one question: does the project have to hold the model locally? If the answer is “No,” you enter the flagship hosted route; Section 1.2 explains what it can deliver today. If the answer is “Yes,” you enter the Preview local route: first confirm the hardware and environment in Section 2, then prepare the 307 GB of weights in Section 3, and then complete startup and acceptance in Section 4. If acceptance fails, first go back to Section 3.2 to check the weight paths and verification, then go back to Section 2.2 to check ffmpeg and the driver.
MAGI-2 Deployment Index
- Section 1: Versions and Deliverables: Every deployment decision starts here. Preview and flagship have different release artifacts; the 8-GPU setup, weights, and scripts discussed later apply only to Preview.
- Section 2: 8 GPUs and Environment: Establishes the runtime prerequisites for Sections 3 and 4, including GPU count, parallelism mode, drivers, containers, and VRAM residency strategy.
- Section 3: 307 GB Weights: Explains what the six file groups do, plus how to download, verify, and map paths, so you’re ready to launch in Section 4.
- Section 4: From Launch to Acceptance: Starts with mounting the image, moves to
ffprobechecks on the first video, then resolution comparison and deterministic reruns, and ends with a reproducible deployment record. - Section 5: Prompt Enhancement and Licensing: Optional or compliance-related topics. Read them as needed, in any order.
- Section 6: FAQs: Answers miscellaneous questions and ends with a deployment decision you can use right away.
MAGI-2 Deployment To Know
| Term | Brief Explanation |
|---|---|
| Activated parameters per token | The number of parameters actually involved in computation when an MoE model processes each token. It measures compute scale, but the full weights still need to be loaded. |
| Context parallelism / expert parallelism | Splits long sequences and MoE experts across multiple GPUs. Preview sets both to 8 by default. |
| Roundtrip residency | Components are paged in and out between the GPU and host machine by stage to reduce per-GPU peak VRAM. |
| Refiner | A second-stage generator that upscales the low-resolution base output from the base stage to 1080p. |
| VAE / turbo_vae | The component that decodes latents into video frames. turbo_vae is the fast decoder shipped with the package. |
| Weight revision | A version snapshot identifier for a Hugging Face repository, used to pin the weights that match the code. |
1 What Do the Two MAGI-2 Releases Deliver?
Before you deploy, you need to know which version you’re working with. MAGI-2 had two releases with different deliverables, and they’re not interchangeable.
1.1 MAGI-2 Preview: The Locally Deployable Version
Sand.ai released the MAGI-2 Preview technical report on August 5, 2026, and also published inference code on GitHub, dependency images on Docker Hub, and weights on Hugging Face. The Preview backbone has about 114 billion total parameters, with roughly 6 billion activated parameters per token. The public base version supports two input modes: generating video from a prompt alone (text-to-video), or generating video from a still image plus a prompt (image-to-video).
The current public inference only supports 10-second clips. Audio and video are generated together and packaged into one file. The 8-GPU setup, 307 GB weights, and local scripts mentioned in this article all belong to the Preview release.
1.2 Flagship MAGI-2: The Hosted-Only Version
On November 24, 2026, Sand.ai released the flagship MAGI-2. Its backbone has 480 billion total parameters, with roughly 28 billion activated parameters per token. The announcement says it delivers audio-video output at up to 30 seconds, 1080p, and 25 frames per second, and also showcases multimodal reference, timeline control, and video editing.
For now, the flagship is accessible through the VidMuse partner portal on the official website and the magi-2 model on the Sand AI platform. The announcement lists open-source release and a comprehensive technical report as future plans. Sand AI’s public model catalog on Hugging Face only has Preview and MAGI-1; there are no flagship weights yet.

1.3 MAGI-2 Deployment Route Comparison
| Item | MAGI-2 Preview | Flagship MAGI-2 |
|---|---|---|
| Release date | 2026-08-05 | 2026-11-24 |
| Parameter scale | About 114B total parameters, about 6B activated | 480B total parameters, about 28B activated |
| Output | Fixed 10 seconds, audio and video generated together | Up to 30 seconds, 1080p, 25fps audio-video |
| Capabilities | Text-to-video, image-to-video | Adds multimodal reference, timeline control, video editing |
| Access | GitHub code + Docker images + HF weights | VidMuse partner portal on the official website, magi-2 on the Sand AI platform |
| Local deployment | Yes, requires 8 Hopper GPUs | Not yet available; weights are planned for later |
The trade-off is straightforward. If compliance or data requirements force you to keep everything private, the only option you can deploy today is Preview’s fixed 10-second inference. If your business needs the flagship’s long-form, reference, and editing capabilities, you’ll have to use hosted generation for now and keep an eye on when the flagship weights are released.
2 MAGI-2 Preview’s 8-GPU Hardware and Runtime Environment
2.1 Eight Hopper GPUs and the Parallel Configuration
The Preview repository specifies 8 NVIDIA Hopper GPUs as the hardware requirement. The bundled demo script launches distributed processes in single-node mode, uses NCCL for communication by default, and sets both context parallelism and expert parallelism to 8. So the “8 GPUs” here is the result of the official preset configuration — it’s not a recommendation you can freely adjust.
The official README uses 80 GB cards as an example to explain why the 1080p pipeline has to swap weights in and out at stage transitions. Taking NVIDIA H100 SXM as a reference, each card is rated at 80 GB, giving 640 GB of nominal VRAM across 8 cards. That number is just arithmetic on the example device capacity. When you actually reproduce the setup, go by the official 8 Hopper GPUs, the single-node distributed entry point, and the corresponding presets.
2.2 MAGI-2 Preview Software Environment Checklist
| Layer | Condition given by the official or upstream sources | What to record at deployment |
|---|---|---|
| Source-code route | Python 3.12, a recent CUDA Toolkit | Python and CUDA versions |
| Audio track muxing | ffmpeg available on PATH |
ffmpeg -version output |
| Container base image | NVIDIA PyTorch 25.10, corresponding to Ubuntu 24.04, CUDA 13.0.2 | Image tag |
| Image platform | The official tag page lists linux/amd64 |
Host architecture |
| Host machine | The driver plus the NVIDIA Container Toolkit expose the GPUs to the container | Driver version, actual devices |
| Driver threshold | The CUDA 13.x minor-version compatibility table gives a general threshold starting with the 580 series | nvidia-smi output |
If you go the container route, the user-space CUDA libraries are already baked into the image. The host machine needs to handle two things: the driver version meets the requirement, and the Container Toolkit is installed correctly. Your deployment notes should keep the image used, the driver version, and the actual GPU model — you’ll want them when troubleshooting.
2.3 BF16 Precision and Stage Residency Strategy
Both generator stages default to bfloat16 parameter precision. The repository lets you specify one of three residency modes — cpu, gpu, or roundtrip — separately for the text encoder, the Preview generator, the refiner, and the VAE. Both generators default to roundtrip, getting swapped in and out along with the stages. The main-branch implementation defaults the text encoder to CPU and the video VAE to GPU.
Worth noting: roughly 6 billion parameters activated per token only describes the scale of the sparse computation. The full weights still go through loading, sharding, and stage switching. The inference engine logs VRAM around the two denoising stages. When reproducing, you can record four phases separately — initialization, base denoising, refinement, and decoding — and compare per-GPU VRAM peaks against changes in host memory. In your deployment notes, “BF16” maps to parameter precision and “stage residency mode” maps to the offloading strategy — keep the two written separately.
3 Preparing the 307 GB of MAGI-2 Preview Weights
3.1 307 GB Consists of Six Groups of Files
According to the Hugging Face file tree, the public base version plus its dependency components total roughly 307 GB. The sizes of each component listed in the README are as follows:
| Directory | Purpose | Approximate Size |
|---|---|---|
preview |
Base generator, 56 safetensors shards + index | About 228 GB |
| Text encoder | Qwen3.5-27B | About 56 GB |
refiner |
Refiner, 3 shards + index (the directory page shows 13.5 GB) | About 14 GB |
stable-audio-open-1.0 |
Audio latent decoding | About 5 GB |
| Video VAE | From Wan2.2 | About 3 GB |
turbo_vae |
Fast video decoder | About 2 GB |
The numbers in the table are all approximate directory sizes. When planning disk space, besides these 307 GB, you also need to reserve room for the download cache, container extraction space, and generated artifacts.
3.2 Downloading, Verification, and Path Mapping
The download command shown in the repository is hf download sand-ai/MAGI-2-preview --local-dir ckpt. If you keep the original names of the six directories after downloading, they’ll match up with the configuration files. If the weights live on another disk, you can point MAGI2_CKPT_ROOT at the root path containing these six directories. Here’s a set of check commands to run before and after downloading:
# Preview the files and sizes that will actually be transferred; use --revision to pin the weight snapshot
hf download sand-ai/MAGI-2-preview --local-dir ckpt --revision <修订号> --dry-run
# Actual download
hf download sand-ai/MAGI-2-preview --local-dir ckpt --revision <修订号>
# Verify file integrity against the checksums for that revision
hf cache verify
# When the weights aren't in the default location, point to the root path of the six directories
export MAGI2_CKPT_ROOT=/data/magi2/ckpt
For the exact parameters of hf cache verify, refer to the Hugging Face CLI documentation. After the download completes, it’s a good idea to note down the revision number and check the shard index of preview, the refiner directory, and the files of the two decoders one by one. That way, if you run into download or runtime issues later, you can pinpoint the cause quickly.
4 MAGI-2 Preview: From Launch to Acceptance
4.1 Container Mounting and Version Records
The container route uses the sandai/magi-2-preview image, which comes with dependencies pre-installed. The accompanying commit 2712106 explicitly takes the approach of mounting the source code at runtime: mount the GitHub source you’ve chosen into the container workspace, put the weights under ckpt/ in the workspace, or use an environment variable to point at the weight path inside the container. The commands below only illustrate the structure — you’ll need to swap in your own paths:
docker run --gpus all -it \
-v /path/to/MAGI-2-preview:/workspace \
-v /data/magi2/ckpt:/workspace/ckpt \
-w /workspace \
sandai/magi-2-preview:<image-tag> bash
# Check the image build info after entering the container
cat /etc/magi2-build-info
A deployment record should contain at least three items: the image tag, the code commit, and the weight revision number. The image’s short-commit tag only lets you trace the dependency layer — the model file names are determined by the source code configuration you mount in. The README in early commits used magi2_preview and magi2_refiner as directory names, while the current branch uses preview and refiner, matching the Hugging Face file tree. If you hit a path error, check this discrepancy first.
If you want to pick your own dependency versions, you can build the image yourself with the official Dockerfile. If you go the pure source-code route, install the dependencies according to requirements.txt; for the MagiAttention and MagiCompiler versions, refer to the versions pinned in the Dockerfile.
4.2 First Short Test and ffprobe Validation
I recommend starting with a single sample. When you run scripts/run_demo.sh, use SAMPLES to point to a sample file that contains just one entry. Entries supply the prompt via prompt or prompt_file. If an image is included, that image becomes the first frame of the video. The script launches via torchrun; it outputs 1080p by default, uses a default seed of 42, and names output files in batch order.
The official code writes the video first and then calls ffmpeg to mux the audio track. So if ffmpeg is missing, you’ll still get a file, but it will be silent. After the first video is generated, validate it in this order:
- Confirm the file plays normally.
- Use the following command to read the video stream’s width and height, frame rate, and file duration, and confirm that an
audiotype stream exists:
ffprobe -v error -show_entries stream=codec_type,width,height,r_frame_rate:format=duration -of json sample_000.mp4
- Play it through once to confirm the audio sounds normal.
4.3 MAGI-2 Resolution Preset Comparison
Two tiers in the preset table run only the base stage. You can use them to tell whether a problem is in the base stage or the refinement stage. The approach is to run the base tier first, then run 1080p with the same image, prompt, and seed. The script uses RESOLUTION and OUTPUT_DIR to specify the tier and output directory; use the preset names in entry.py as the values.
| Preset tier | Stages run | Generated size (W×H) | Default output |
|---|---|---|---|
| 272p | Base stage only | 448×256 | Generated size |
| 540p | Base stage only | 896×512 | Generated size |
| 1080p | Base 100 steps + refinement 5 steps | Generate 896×512 first, then refine to 1920×1088 | 1920×1088, scalable to 1920×1080 |
The 1080p output is 1088 pixels high rather than 1080. The official explanation is that this comes from the VAE stride constraint on generated dimensions. If you need to deliver exactly 1920×1080, you can add --output-width 1920 --output-height 1080 to scale the output. The distilled components shipped with the package include only the fast VAE decoder. The Preview distilled version that reduces denoising steps is listed in the README as a future release. In deployment records, note the generator version, the number of steps for each stage, and the decoder used.
4.4 Seeds and Deterministic Re-runs
The code uses “starting seed + index” as the seed for each item in a batch. So when you re-run, record both the starting seed and the sample order, and place the materials you want to compare in the same position within the batch. The official guidance says that setting MAGI2_DETERMINISTIC=1 or using --deterministic makes MoE dispatch and attention kernels run deterministically, but at some cost in speed. When re-running, note whether this option was enabled. For timing, it’s also best to record load time and inference time separately.
5 MAGI-2 Prompt Enhancement and License Checklist
5.1 Prompt Enhancement: Optional, and It Can Run Entirely Locally
The current main branch treats prompt enhancement as an optional feature. The built-in reference client connects to an OpenAI-compatible endpoint, and for image-to-video, the enhancement call sends both text and images to that endpoint. If your deployment requires prompts and assets to stay local, you can leave API_KEY in enhancer.py at its default empty value and run inference directly with the original prompt or a structured prompt you prepared yourself. This setting only affects enhancement requests; the model weights are always read by the local inference process.
Another approach is to move the enhancement step outside the inference pipeline. First, rewrite the prompt with any OpenAI-compatible API, such as the unified interface provided by APIYI apiyi.com, then write the result to a text file and pass it to MAGI-2 for local inference via prompt_file. This is just external preprocessing, not a configuration method for the repository’s built-in enhancer. Also note that this approach sends the prompt to the cloud, so it doesn’t apply to strict intranet scenarios.
import openai
client = openai.OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1"
)
raw = "雨夜的霓虹街道,一只橘猫跳上屋檐,远处有电车铃声"
resp = client.chat.completions.create(
model="gpt-4o-mini", # Replace with a chat model available in the console
messages=[{"role": "user", "content": f"把下面的视频创意改写成包含镜头、主体动作、环境声的结构化英文提示词:{raw}"}]
)
open("prompt_000.txt", "w", encoding="utf-8").write(resp.choices[0].message.content)
View the full code for batch prompt rewriting
import time
from pathlib import Path
import openai
client = openai.OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1"
)
SYSTEM = (
"You write prompts for a 10-second text-to-video model with native audio. "
"Output one paragraph covering: shot type, subject action over time, "
"environment, lighting, and the sounds that should be heard."
)
def enhance(idea: str, model: str = "gpt-4o-mini", retries: int = 3) -> str:
for i in range(retries):
try:
r = client.chat.completions.create(
model=model,
messages=[
{"role": "system", "content": SYSTEM},
{"role": "user", "content": idea},
],
max_tokens=400,
)
return r.choices[0].message.content.strip()
except Exception as e:
print(f"第 {i + 1} 次失败:{e}")
time.sleep(2 ** i)
return idea # Fall back to the original prompt after repeated failures
def main(ideas: list[str], out_dir: str = "prompts") -> None:
Path(out_dir).mkdir(exist_ok=True)
for idx, idea in enumerate(ideas):
text = enhance(idea)
# File numbers match the order within the batch, making it easy to map to "starting seed + index"
Path(out_dir, f"prompt_{idx:03d}.txt").write_text(text, encoding="utf-8")
print(idx, text[:80])
if __name__ == "__main__":
main([
"清晨码头,渔船缓缓靠岸,海鸥鸣叫",
"实验室里机械臂组装手表零件,特写",
])
Tip: Prompt rewriting and video generation are two independent stages, so you can evaluate their results separately. You can first use free trial credits on APIYI apiyi.com to compare the rewriting quality of several chat models, and once you’ve chosen one, move on to 8-GPU inference to avoid wasting expensive GPU time.
5.2 License checklist
The Preview inference repository ships with the text of the Apache 2.0 license, and Sand AI’s Preview model card also lists Apache 2.0. But that 307 GB weight package bundles several upstream components, so when you deploy or redistribute it, you need to keep the license and attribution for each component you actually use:
- Code and Preview weights: Apache 2.0.
- Audio decoder: comes from Stable Audio Open 1.0; the upstream model card is separately labeled
stable-audio-communityand links to the commercial terms, so you’ll want to evaluate them separately before any commercial use. - Text encoder and video VAE: come from Qwen3.5-27B and Wan2.2 respectively, and their licenses follow their own upstream model cards.
6 Common MAGI-2 deployment questions
Q1: I only have 4 H100s — can I run MAGI-2 Preview?
The official docs only give a configuration for 8 Hopper GPUs, with both context parallelism and expert parallelism defaulting to 8. The official materials don’t offer a preset for running on fewer GPUs, so this article doesn’t recommend treating a 4-GPU setup as a validated option.
Q2: When will the flagship MAGI-2 weights be released?
As of 2026-11-25, the official announcement lists only the open-source release and the full technical report as future plans, with no dates given. Right now the ways to use the flagship version are the VidMuse entry point on the official site and the `magi-2` model on the Sand AI platform.
Q3: Why does the generated video have no sound?
The most common reason is that `ffmpeg` can’t be found in the `PATH` of the container or the host machine. The code writes out the video first, and if muxing the audio track fails, it leaves behind a silent file. You can use the `ffprobe` command from Section 4.2 to check whether the file contains an `audio` stream.
Q4: Can I call MAGI-2 through APIYI?
This article doesn’t mention MAGI-2 being available on APIYI; check the platform’s model list for whether it’s supported. What you can do today for sure: use the OpenAI-compatible endpoint at APIYI apiyi.com for preprocessing steps like prompt rewriting, while video generation still happens through local Preview inference or the official hosted entry point.
Q5: How do I estimate cost before deploying and verify each stage separately?
Two steps. First use `–dry-run` to confirm the actual amount of data being transferred for the weights, then use the 272p tier to verify that the base stage can produce video correctly. For prompt quality, you can iterate cheaply through APIYI apiyi.com first, then move to 8 GPUs for 1080p.
Bottom line: if you have a single node with 8 Hopper GPUs, around 500 GB of free disk space, and you can live with a fixed 10-second duration, then you can deploy MAGI-2 Preview right now. A reproducible deployment has one clear acceptance criterion: record three things — the image tag, the code commit, and the weight revision number — and use ffprobe to confirm that the 1080p output has the correct width and height, duration, and audio track. If any one of those conditions is missing, or you need 30-second long takes and editing capabilities, then for now you should use hosted generation on the flagship version and keep an eye on the official weight release. Prompt preprocessing and multi-model comparisons can be done with a single key through APIYI apiyi.com, kept separate from local video inference.
📚 References
- Sand.ai MAGI-2 Preview Technical Report: Preview’s parameter scale, input methods, and 10-second limit
- Link:
sand.ai/blog/magi-2-preview
- Link:
- Sand.ai Flagship MAGI-2 Release Announcement: 480 billion parameters, 30-second 1080p delivery, and subsequent open-source plans
- Link:
sand.ai/blog/magi-2
- Link:
- MAGI-2-preview Official Inference Repository: hardware requirements, installation, checkpoints, and running instructions
- Link:
github.com/SandAI-org/MAGI-2-preview
- Link:
- MAGI-2-preview Model Card and Weight File Tree: 307 GB component composition and revision history
- Link:
huggingface.co/sand-ai/MAGI-2-preview
- Link:
- Docker Hub Image Tags: image tags and platform information for
sandai/magi-2-preview- Link:
hub.docker.com/r/sandai/magi-2-preview/tags
- Link:
- NVIDIA CUDA Minor Version Compatibility Table: driver requirements for CUDA 13.x
- Link:
docs.nvidia.com/deploy/cuda-compatibility
- Link:
- Hugging Face CLI Guide:
--dry-run,--revision, andhf cache verify- Link:
huggingface.co/docs/huggingface_hub/en/guides/cli
- Link:
- Sand AI Platform API Docs: entry point for the flagship hosted model
magi-2- Link:
platform.sand.ai/docs/get-started
- Link:
Author: APIYI Technical Team
Technical discussion: Feel free to contact us via the homepage of the APIYI apiyi.com website. For more integration resources, visit the docs.apiyi.com documentation center.