When Genmo released Mochi 1 Preview as an open-weights video model under the Apache 2.0 license, the community celebrated. Then developers looked at the official hardware recommendations and froze: running the raw 10-billion parameter (10B) Asymmetric Diffusion Transformer (AsymmDiT) in full BF16 precision officially demanded multi-GPU clusters—specifically four enterprise Nvidia H100 80GB cards. Direct unquantized loading on a workstation RTX 4090 or a low-cost cloud GPU instantly results in CUDA Out of Memory (OOM) errors.
At 365Finds, we believe open-source AI is meaningless if creators cannot actually run it without enterprise budgets. You do not need to burn hundreds of dollars renting H100 clusters to generate Mochi 1 video clips. By combining FP8 scaled checkpoints, ComfyUI wrapper workflows, aggressive T5 text encoder offloading, SageAttention kernel acceleration, and tiled VAE decoding, you can run Genmo Mochi 1 reliably on a single 24GB VRAM GPU—either your local RTX 3090/4090 or a $0.40/hour cloud instance on RunPod or Vast.ai.
Here is the exact engineering breakdown and production pipeline to make that happen.
Why Genmo Mochi 1 Crushes Consumer VRAM
To fix the memory problem, you have to understand where the memory actually goes. Mochi 1 is not a compact image model scaled up; it is an architectural beast composed of three massive subsystems:
- The 10B Parameter DiT Backbone: In native BF16 precision, the diffusion transformer weights alone occupy roughly 20GB of memory. During inference, intermediate activation states and temporal attention caches quickly demand another 20GB to 30GB.
- The T5-XXL Text Encoder: Mochi 1 achieves remarkable prompt fidelity because it uses Google's T5-v1.1-XXL encoder. At standard 16-bit float precision, this encoder alone consumes almost 10GB of VRAM.
- The 3D AsymmVAE Decoder: Mochi generates video tokens compressed by a factor of 128 (8×8 spatial and 6× temporal compression). Decompressing 85 frames (roughly 3.5 seconds at 24 fps) of 848×480 latent video back into raw pixel tensor grids all at once demands a catastrophic 30GB+ memory spike during the final second of rendering.
In an unoptimized environment, loading all three models simultaneously guarantees an instant OOM crash on any 24GB graphics card.
| Pipeline Component | Native BF16 VRAM Footprint | Optimized FP8 / Offloaded Footprint | Strategy Used |
|---|---|---|---|
| Diffusion DiT (10B) | ~20 GB (Weights only) | ~10.5 GB | FP8 e4m3fn scaling or GGUF Q4/Q8 quantization |
| T5-XXL Text Encoder | ~9.5 GB | ~0 GB (Active VRAM) | Sequential load, prompt encode, CPU offload |
| Attention Activations | ~15–20 GB | ~6–8 GB | SageAttention (INT8 matmul) or FlashAttention |
| AsymmVAE Video Decode | ~30+ GB (Full burst) | ~4–5 GB | Spatial & temporal tiled VAE decoding |
| Total Peak VRAM | >65 GB (Multi-H100 required) | 18.5–22.5 GB (Fits 24GB VRAM) | Full Pipeline Optimization |
The Core Technical Levers for 24GB Execution
To shrink a 65GB+ workload into a 24GB envelope without turning your video output into smeared noise, four technical optimizations must work in tandem.
1. Model Quantization: FP8 e4m3fn vs. GGUF
Native BF16 weights are unfeasible on consumer cards. We recommend using the FP8 scaled checkpoint (mochi_preview_dit_fp8_e4m3fn.safetensors, curated by community developers like Kijai) or GGUF quantizations (city96/ComfyUI-GGUF).
The e4m3fn format preserves higher dynamic range and numerical stability during the diffusion process than aggressive 4-bit pruning. In 365Finds side-by-side rendering tests, FP8 exhibits almost undetectable quality degradation compared to native BF16, while cutting the DiT weight footprint down to approximately 10.5GB. If you are operating on a card with less than 24GB VRAM (such as an RTX 4080 16GB), GGUF variants like Q4_K_M can load the model, but temporal coherence and motion smoothness take a noticeable hit.
2. T5 Text Encoder Dynamic Offloading
Keeping T5-XXL resident in GPU memory alongside the 10B DiT is fatal on 24GB hardware. ComfyUI solves this by executing a sequential pipeline:
- Load FP8 or FP16 T5-XXL into VRAM.
- Tokenize and encode the text prompt into conditioning embeddings.
- Evict the text encoder completely to system RAM (CPU offloading) before allocating memory for the DiT.
This dynamic swap keeps the active memory footprint of the text encoder at essentially zero during the intense 30-step diffusion loop. Note: Your system must have at least 32GB of physical system RAM (64GB recommended) to prevent Windows or Linux swap thrashing.
3. SageAttention Operator Optimization
Traditional scaled dot-product attention (sdpa) and even standard FlashAttention-2 can struggle with the massive sequence lengths required by Mochi 1's spatio-temporal tokens.
Integrating sageattention (which leverages 8-bit quantized matrix multiplication for attention calculation) provides two critical advantages:
- It slashes peak activation memory by roughly 30%.
- It accelerates step rendering speed by 20% to 40% on Nvidia Ada Lovelace (RTX 40-series) and Ampere (RTX 30-series) architectures.
4. Tiled VAE Decoding
The most frustrating failure mode developers experience is watching 30 diffusion steps complete successfully, only to watch ComfyUI crash at 99% during VAE decoding.
Because Mochi's AsymmVAE reconstructs 85 frames across three color channels, decoding the full 3D tensor simultaneously exceeds 30GB of VRAM. Enabling tiled VAE decoding breaks the video latent space into overlapping spatial slices and temporal segments, processing each patch sequentially before stitching them together. This caps peak decoding VRAM at under 5GB.
Step-by-Step Setup in ComfyUI
Step 1: Install Custom Node Dependencies
Ensure your ComfyUI installation is updated to the latest commit. In your ComfyUI/custom_nodes/ directory, clone the essential wrapper nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/kijai/ComfyUI-MochiWrapper
git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite
For maximum performance, install sageattention within your Python virtual environment:
pip install sageattention
(On Windows systems, ensure your PyTorch version aligns with a compatible pre-compiled Triton wheel, or fall back to native sdpa if compilation throws MSVC errors).
Step 2: Download Model Weights
Place the respective model files into their designated ComfyUI folders:
- Diffusion DiT (FP8): Download
mochi_preview_dit_fp8_e4m3fn.safetensorsand place it in:
ComfyUI/models/diffusion_models/(orComfyUI/models/diffusion_models/mochi/) - Text Encoder: Download
t5xxl_fp8_e4m3fn.safetensors(ort5xxl_fp16.safetensors) and place it in:
ComfyUI/models/clip/ - VAE Model: Download
mochi_preview_vae_bf16.safetensorsand place it in:
ComfyUI/models/vae/(orComfyUI/models/vae/mochi/)
Step 3: Configure the Pipeline Graph
Inside ComfyUI, load the MochiWrapper example workflow:
- Mochi Loader Node: Point the model path to
mochi_preview_dit_fp8_e4m3fn.safetensors. Set the computation data type totorch.bfloat16orfloat8_e4m3fn. Set attention backend tosage_attn(orsdpaif SageAttention is unavailable). - DualCLIP / CLIPLoader: Select
t5xxl_fp8_e4m3fn.safetensorswith CLIP type set tomochiort5xxl. - Empty Latent Node: Set width to
848, height to480, and frame length to85(standard 3.5-second clip at 24 fps). - Sampler Settings:
- Steps:
28to32(Mochi requires at least 25 steps; fewer produces watery motion). - CFG Scale:
4.5to6.0(higher CFG causes oversaturation and harsh motion jitter). - Scheduler:
linearoreuler.
- Steps:
- Mochi VAE Decode Node: Crucial: Enable
tile_sample_min_size(ortiled_decode: true). Set spatial tile size to256or512, and temporal tile overlap according to your available memory headroom. - Video Combine (VideoHelperSuite): Connect decoded images to
VHS_VideoCombine, select output format asvideo/h264-mp4, and set framerate to24.
Local Machine vs. Cloud GPUs (RunPod & Vast.ai)
Where should you run this workflow? The math changes depending on whether you own hardware or rent by the hour.
| Platform / GPU | Hourly Cost | Render Time (85 Frames, 480p) | 365Finds Evaluation |
|---|---|---|---|
| Local RTX 4090 24GB | $0 (Hardware owned) | ~1.5 – 2.2 minutes | The gold standard. Zero transfer latency, complete privacy, full control over Triton kernels. |
| Local RTX 3090 24GB | $0 (Hardware owned) | ~3.0 – 4.5 minutes | Fully functional, but lack of FP8 tensor core acceleration means slower inference. |
| RunPod Community (RTX 4090) | ~$0.34 – $0.44 / hr | ~1.8 – 2.5 minutes | Best cost-to-performance ratio for creators without local hardware. Use template with persistent volume. |
| RunPod Secure (L40S 48GB) | ~$0.79 – $0.99 / hr | ~1.2 – 1.6 minutes | The stress-free cloud tier. 48GB VRAM completely eliminates OOM risk, allows full FP16 VAE decoding. |
| Vast.ai (RTX 4090) | ~$0.28 – $0.38 / hr | ~1.8 – 2.8 minutes | Cheapest raw pricing, but instance network reliability and PyTorch environment configurations vary widely. |
At 365Finds, our practical recommendation is clear: If you already own an RTX 4090 or RTX 3090 with 64GB of system RAM, do not spend money on cloud GPUs. Run it locally. If you are on an 8GB or 12GB laptop, spin up an RTX 4090 instance on RunPod using an official ComfyUI Docker image. Attach a 50GB network volume so you do not waste 15 minutes re-downloading the 11GB model checkpoints every time your pod reboots.
Production Pitfalls and Fixes
- Instant CUDA OOM at 0% Sampling: You forgot to set CPU offloading for T5-XXL, or your system RAM is under 32GB. Verify that ComfyUI's
--lowvramor--gpu-onlyflags match your system profile. Never use--gpu-onlyon a 24GB card with Mochi 1. - CUDA OOM at 99% Generation: Your VAE decoding node is trying to decode the entire 85-frame latent tensor as a single block. Turn on tiled decoding and decrease the tile dimensions.
- Windows Triton Compilation Errors: SageAttention requires Triton. If installing on native Windows throws wheel errors, switch to
sdpainside the MochiWrapper node. You will lose about 25% inference speed, but generation will complete reliably. - Video Motion Smear and Morphing: Mochi 1 has a strict relationship between CFG and steps. If your prompt describes complex multi-character interactions, keep steps at 30 and CFG near 5.0. Lowering steps below 20 destroys the physics fidelity Genmo designed into the AsymmDiT architecture.
On an RTX 4090 operating with FP8 weights, SageAttention, and tiled VAE decoding, rendering an 85-frame, 848×480 video at 24 fps draws a peak of 21.4GB of VRAM and completes in 118 seconds.