What is ComfyUI-MAGI2 and How Does It Work?
ComfyUI has become the industry standard node-based GUI for generative visual workflows. With the release of MAGI2 open weights (sand-ai/MAGI-2-preview on Hugging Face), creators and technical artists can now integrate Sand AI's Multi-Head Latent Mixture-of-Experts (MagiMoE) directly into custom ComfyUI graph pipelines.
Unlike traditional text-to-video diffusion graphs that generate silent frames requiring downstream Wav2Lip or Foley nodes, the MAGI2 ComfyUI workflow processes video latents and audio waveforms in a single synchronized attention backbone at native 1080p 25fps.
MAGI2 ComfyUI Installation & Node Setup
To install and run MAGI-2 inside your ComfyUI environment, follow these steps:
1. Clone the Custom Node Repository
Open your terminal in your ComfyUI installation directory and clone the node wrapper:
cd ComfyUI/custom_nodes/
git clone https://github.com/sand-ai/ComfyUI-MAGI2.git
cd ComfyUI-MAGI2
pip install -r requirements.txt
2. Download Model Checkpoints from Hugging Face
The official preview open weights reside at sand-ai/MAGI-2-preview under an Apache 2.0 license:
# Using huggingface-cli to download weights into models/checkpoints
huggingface-cli download sand-ai/MAGI-2-preview \
--local-dir ComfyUI/models/checkpoints/MAGI-2-preview \
--include "*.safetensors" "*.json"
3. Load the Official Workflow JSON
- Launch ComfyUI:
python main.py --listen 0.0.0.0 --port 8188 - Drag and drop the template
magi2_i2v_audio_basic.jsonfrom the node'sexamples/folder into your browser window. - Wire the MAGI2 Model Loader, MAGI2 Clip Text Encode, and MAGI2 Latent Video & Audio Sampler nodes.
ComfyUI Hardware Requirements & VRAM Thresholds
Because MAGI2 utilizes a 114B parameter Mixture-of-Experts (Preview) or 480B parameter Flagship model, VRAM management is the critical consideration for local ComfyUI execution:
| Deployment Precision | Minimum GPU Configuration | Peak VRAM | Frame Generation Rate | Practicality |
|---|---|---|---|---|
| BF16 Full Weights | 4× or 8× NVIDIA H100 80GB (NVLink) | ~260 GB pooled | ~1.2s per generated video second | Studio production clusters only |
| FP8 Native Hopper | 2× H100 80GB or 1× H200 141GB | ~148 GB pooled | ~2.0s per generated video second | High-end local ML workstations |
| GGUF / INT4 Quantized | 2× NVIDIA RTX 4090 24GB (48GB total) | ~44 GB pooled | ~8–15s per video second (CPU offload) | Experimental community testing |
| Single 16GB / 24GB GPU | 1× RTX 3090 / 4090 24GB | Exceeds single VRAM | Out of Memory (OOM) | Use Cloud Generation (~$0.08/s) |
Why Single-GPU 24GB Cards Struggle with ComfyUI MAGI2
Even though MAGI-2 Preview only activates ~6 billion parameters per token during denoising, all 114 billion expert parameters must remain in memory because the router dynamically picks different experts for every temporal patch. Offloading non-active experts over system PCIe memory causes severe bus bottlenecks, reducing inference speed to unusable levels.
ComfyUI Workflow vs Online Cloud Generator
If your local rig does not possess multi-GPU Hopper memory, running ComfyUI locally may result in frequent OOM errors or hour-long generation times. Here is how local ComfyUI compares with our browser-based MAGI2 AI Video Studio:
| Feature | Local ComfyUI Setup | MAGI2 Best Web Studio |
|---|---|---|
| Hardware Needed | Multi-GPU cluster (≥48GB–148GB pooled VRAM) | Any browser (Mac, Windows, Mobile, iPad) |
| Setup Overhead | Python, CUDA, custom nodes, 100GB+ downloads | Instant Google login; 0 software install |
| Video Quality | 1080p 25fps (subject to quantization loss) | Full 480B Flagship unquantized 1080p |
| Native Audio | Requires complex audio tensor routing | Automatic synchronized dialogue & foley |
| Billing Model | High local electricity & $2,000–$30,000 GPU costs | Pay-as-you-go from $9.90 (Pricing) |
Recommended ComfyUI Nodes & Parameters
When configuring your MAGI2 graph:
magi2_steps: Set to30–35for balanced motion fidelity and generation speed.cfg_scale: Keep between5.0and6.5to maintain motion dynamics without latent artifacting.enable_audio: ToggleTrueto output 48kHz stereo WAV alongside the MP4 stream.audio_prompt: Include acoustic negative constraints like"no background music, clear room tone only"to prevent noisy audio drift.
For detailed prompt formatting and script syntax, check our MAGI2 Prompt Generator and Lip-Sync Dialogue Guide. If you need exact cluster VRAM planning, use our Pricing & VRAM Calculator.