### MiniMax H3 Dual Layer Skip Workflow — Up to +35% Faster Generation on 8GB VRAM (NVFP4 / FP8 / BF16)
A complete, memory-optimized **ComfyUI Video + Audio workflow** for **MiniMax H3**, bundled with **two custom NVFP4-safe nodes** that bypass redundant transformer layers on the fly—accelerating both the video diffusion model and the heavy 32B Qwen3-VL text encoder without needing Turbo checkpoints, Turbo LoRAs, or modifying model files on disk.
---
### What This Workflow Does & What It's Good For
* **On-the-Fly Video Layer Skipping MiniMax Layer Cutter):** Dynamically bypasses redundant middle transformer blocks inside any MiniMax H3 model NVFP4, FP8, or BF16). Includes **5 one-click speed presets** Off, Light Fast, Turbo Safe, Ultra Turbo) plus a **50-button Manual mode** to toggle individual layers. Cuts 4-step sampling time on an RTX 5050 (8GB VRAM) from ~55s down to ~36s.
* **32B Text Encoder Acceleration MiniMax CLIP Layer Cutter):** Safely skips top redundant layers inside Qwen3-VL 32B NVFP4 Light Trim, Balanced Fast, Aggressive Fast, or Manual), reducing prompt encoding time and RAM overhead while preserving prompt accuracy.
* **Seamless Multi-Clip Scene Chaining:** Built-in ImageFromBatch index: -1) automatically extracts and previews the exact final frame of every clip, letting you chain multiple shots into longer stories effortlessly.
* **End-to-End 10-Bit Video + Native Audio:** Includes synchronized Audio VAE decoding, RTX Frame Generation (2x FPS interpolation), and chunked RTX Upscaling chunk_frames: 8, empty_cache: true) tuned for 8GB VRAM / 32GB RAM systems.
---
### How to Install & Use (2 Simple Steps)
1. **Install Custom Nodes:** Download the .zip archive from the files section, extract it, and place **both** Python scripts minimax_layer_cutter.py and minimax_clip_layer_cutter.py) into your ComfyUI/custom_nodes/ folder.
2. **Load Workflow:** Restart ComfyUI and drag & drop the .json workflow file onto your canvas.
---
### Recommended Settings & Limitations
* **Best For:** Fast Image-to-Video and Text-to-Video generation with synchronized audio on 8GB–12GB VRAM GPUs RTX 30/40/50 series).
* **Important Note:** If you are already using a pre-pruned checkpoint (e.g., a 36-layer pruned model), set MiniMax Layer Cutter to Off so layers are not skipped twice.
* **Required Base Models:** Any standard MiniMax H3 diffusion checkpoint NVFP4FP8BF16), qwen3vl_32b_minimax_h3 CLIP, and MiniMax H3 Video + Audio VAEs.