AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Run Genmo Mochi 1 on a Single 24GB GPU with ComfyUI and Quantized Checkpoints

Wilson Poh · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

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:

  1. 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.
  2. 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.
  3. 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 ComponentNative BF16 VRAM FootprintOptimized FP8 / Offloaded FootprintStrategy Used
Diffusion DiT (10B)~20 GB (Weights only)~10.5 GBFP8 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 GBSageAttention (INT8 matmul) or FlashAttention
AsymmVAE Video Decode~30+ GB (Full burst)~4–5 GBSpatial & 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:

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:

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:

Step 3: Configure the Pipeline Graph

Inside ComfyUI, load the MochiWrapper example workflow:

  1. Mochi Loader Node: Point the model path to mochi_preview_dit_fp8_e4m3fn.safetensors. Set the computation data type to torch.bfloat16 or float8_e4m3fn. Set attention backend to sage_attn (or sdpa if SageAttention is unavailable).
  2. DualCLIP / CLIPLoader: Select t5xxl_fp8_e4m3fn.safetensors with CLIP type set to mochi or t5xxl.
  3. Empty Latent Node: Set width to 848, height to 480, and frame length to 85 (standard 3.5-second clip at 24 fps).
  4. Sampler Settings:
    • Steps: 28 to 32 (Mochi requires at least 25 steps; fewer produces watery motion).
    • CFG Scale: 4.5 to 6.0 (higher CFG causes oversaturation and harsh motion jitter).
    • Scheduler: linear or euler.
  5. Mochi VAE Decode Node: Crucial: Enable tile_sample_min_size (or tiled_decode: true). Set spatial tile size to 256 or 512, and temporal tile overlap according to your available memory headroom.
  6. Video Combine (VideoHelperSuite): Connect decoded images to VHS_VideoCombine, select output format as video/h264-mp4, and set framerate to 24.

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 / GPUHourly CostRender Time (85 Frames, 480p)365Finds Evaluation
Local RTX 4090 24GB$0 (Hardware owned)~1.5 – 2.2 minutesThe gold standard. Zero transfer latency, complete privacy, full control over Triton kernels.
Local RTX 3090 24GB$0 (Hardware owned)~3.0 – 4.5 minutesFully functional, but lack of FP8 tensor core acceleration means slower inference.
RunPod Community (RTX 4090)~$0.34 – $0.44 / hr~1.8 – 2.5 minutesBest 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 minutesThe 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 minutesCheapest 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

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.

References