pi-H3: 2-Step VAE-Free Audio-Video Distillation & DWD Architecture

pi-H3 accelerates MiniMax H3 audio-video generation into 2 or 4 sampling steps while removing the video VAE decoder entirely. Combining pi-Flow v2 data-free distillation with Decoding Without a Decoder (DWD) and FP8 W8A8 Sol-Attn inference, pi-H3 renders 5-second 768p stereo-audio clips in 3.81 seconds on a single NVIDIA B200.
pi-H3: 2-Step VAE-Free Audio-Video Distillation & DWD Architecture: pi-H3 accelerates MiniMax H3 audio-video generation into 2 or 4 sampling steps while removing the video VAE decoder entirely. Combining pi-Flow v2 data-free distillation with Decoding Without a Decoder (DWD) and FP8 W8A8 Sol-Attn inference, pi-H3 renders 5-second 768p stereo-audio clips in 3.81 seconds on a single NVIDIA B200. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- 2-Step & 4-Step Flow Distillation: pi-Flow v2 compresses MiniMax H3 denoising trajectories to 2 or 4 evaluations without external training video datasets.
- Zero Video VAE Decoder Overhead: Decoding Without a Decoder (DWD) predicts clean RGB pixels directly at the final denoising step via an 8-block windowed transformer refiner.
- Sub-Realtime 768p Generation: Renders a 5.2s 1344x768 24fps video with stereo audio in 3.813s end-to-end on one NVIDIA B200 (2.4-2.7x faster than Sol-H3).
- FP8 W8A8 + Sol-Attn Kernels: Quantizes all DiT linear blocks and text encoders to FP8 W8A8 while preserving AdaLN and output layers in BF16.
import { createAgent } from '@smoke-monkey/harness';const videoAgent = createAgent({agentId: 'pi-h3-dwd-generator',provider: 'custom',baseUrl: 'http://localhost:8090/v1',model: 'Lakonik/pi-H3',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},sampling: {temperature: 0.1,extra_body: {adapter: 'pi_h3_2step_dwd_adapter',num_inference_steps: 2,max_raw_t: 0.93,resolution: '1344x768',fps: 24,use_fp8_dit: true,attention_backend: 'sol_attn_cudnn_bsa',},},});async function renderClip() {const res = await videoAgent.run('Generate a 5s 768p robotics lab walkthrough clip using pi_h3_2step_dwd_adapter and verify stereo audio sync.');console.log('DWD Render Summary:', res.summary);}renderClip().catch(console.error);
Watch: Related Video Guides
We've Never Seen MiniMax H3 This Fast Before!
ComfyUI MiniMax H3: Best Video Generation Workflows (Ep29)
What Is pi-H3? pi-Flow v2 Distillation & Decoding Without a Decoder
pi-H3 (Lakonik/pi-H3), developed by researchers at Stanford University and Luma AI, is a 2-step and 4-step distilled adapter suite for MiniMax H3 that synthesizes 768p video with synchronized stereo audio without running a video VAE decoder. By pairing data-free pi-Flow v2 distillation with Decoding Without a Decoder (DWD), it removes the multi-second VAE decode bottleneck.
In standard latent video diffusion pipelines, even aggressive step distillation leaves a stubborn latency floor: the 3D spatio-temporal VAE decoder still consumes 4.0s to 12.6s on an H100 GPU to upsample latents back into RGB frames. Each MiniMax H3 spatial-temporal token encodes a 4x32x32x3 pixel patch (12,288 scalar values), which exceeds twice the DiT hidden dimension of 5,376. A naive linear projection head collapses high-frequency edges and introduces motion blur.
To solve this without restoring the full 24-block Sol-H3-VAE decoder, pi-H3 1.0 introduces a lightweight 8-block transformer refiner with windowed attention, initialized from 8 of the 24 Sol-H3-VAE decoder blocks and tuned end-to-end. Unlike the convolutional DWD refiner tested in pi-H3 0.9—which suffered from high VRAM spikes and spatial aliasing—the windowed transformer refiner delivers sharper fine-detail motion while keeping VRAM bounded.
Adapter Variants, FP8 W8A8 Quantization & ComfyUI INT8 ConvRot
The Hugging Face release publishes four Diffusers adapters alongside INT8 ConvRot quantized checkpoints built specifically for ComfyUI workflows. All adapters support text-to-video, image-to-video, and first-and-last-frame conditioning while retaining the stereo audio pathway.
| Adapter / Checkpoint | Sampling Steps | Video Output Path | Max Raw Timestep | Target Runtime |
|---|---|---|---|---|
pi_h3_2step_dwd_adapter | 2 | DWD Transformer Refiner | 0.93 | Diffusers / LakonLab v0.3 |
pi_h3_4step_dwd_adapter | 4 | DWD Transformer Refiner | 0.96 | Diffusers / LakonLab v0.3 |
pi_h3_2step_dwd_adapter_int8_convrot.safetensors | 2 | DWD + INT8 ConvRot | 0.93 | ComfyUI-piFlow |
pi_h3_4step_dwd_adapter_int8_convrot.safetensors | 4 | DWD + INT8 ConvRot | 0.96 | ComfyUI-piFlow |
pi_h3_2step_adapter / 4step_adapter | 2 / 4 | Standard VAE Decoder | 0.93 / 0.96 | Diffusers (Baseline) |
For production serving, pi-H3 quantizes all DiT linear blocks and the text encoder to FP8 W8A8, keeping Adaptive Layer Normalization (AdaLN) and output projection layers in BF16. Attention uses Sol-Attn executed on cuDNN Block-Sparse Attention (BSA), avoiding the MXFP8 boundary-block exclusions required by Sol-H3.
Keyframe Conditioning Still Uses the VAE Encoder
While DWD removes the video VAE decoder during generation, image-to-video and first-last-frame conditioning still invoke the VAE encoder once to project input keyframes into MiniMax H3 latent space.
End-to-End Benchmarks on NVIDIA B200 and H100 GPUs
Measured end-to-end on a single NVIDIA B200 GPU (median of 7 requests covering text encoding, denoising, DWD pixel reconstruction, RGB conversion, and stereo audio decoding), pi-H3 generates 1344x768 24fps video faster than real time.
| Pipeline Configuration | GPU Hardware | 5.2s Clip (768p) | 10.1s Clip (768p) | 15.1s Clip (768p) | Speedup vs Sol-H3 |
|---|---|---|---|---|---|
| pi-H3 2-Step DWD | 1x NVIDIA B200 | 3.813 s | 9.161 s | 18.581 s | 2.4x – 2.7x |
| pi-H3 4-Step DWD | 1x NVIDIA B200 | 7.304 s | 17.562 s | 36.407 s | 1.2x – 1.4x |
| Sol-H3 4-Step + Sol-H3-VAE | 1x NVIDIA GB200 | 9.475 s | 24.309 s | 44.958 s | 1.0x (Baseline) |
On a single NVIDIA H100 80GB (batch size 1, 768p 5s), pi-H3 2-step DWD completes denoising in 6.1s with 0.0s video decoder latency (6.2s total vs 9.9s for PDMD 2-step + H3 VAE). At 4 steps on H100, pi-H3 finishes in 12.0s total versus 12.6s for Sol-H3 and 13.0s for LightX2V + LightVAE-Lite.
# Install LakonLab v0.3 with Sol-Attn CUDA extras
git clone https://github.com/Lakonik/LakonLab.git && cd LakonLab
uv pip install -e ".[sol]"
# Run 2-step DWD inference from Hugging Face weights
python scripts/infer_pi_h3.py \
--adapter Lakonik/pi-H3 \
--variant pi_h3_2step_dwd_adapter \
--steps 2 --max-raw-t 0.93 --fp8Integrating pi-H3 into Smoke Monkey Agent Workflows
Because 2-step pi-H3 renders a 5.2-second 768p clip in 3.81 seconds, multimodal agents inside Smoke Monkey Harness can treat video synthesis as a synchronous tool call rather than a minutes-long batch queue. Developers expose the LakonLab Diffusers pipeline behind an OpenAI-compatible HTTP wrapper or local MCP tool, allowing coding and QA agents to synthesize visual test fixtures, inspect stereo audio alignment, and publish verified assets directly to Cloudflare Pages.
Frequently Asked Questions
Q:How does pi-H3 generate video without a VAE decoder?
pi-H3 uses Decoding Without a Decoder (DWD): at the final denoising step, an 8-block windowed transformer refiner taps the DiT hidden features (dimension 5,376) and predicts the 12,288 pixel values per 4x32x32x3 token directly in RGB space, bypassing the 24-block Sol-H3-VAE decoder.
Q:What changed between pi-H3 0.9 and pi-H3 1.0?
Released on November 21, 2026, pi-H3 1.0 replaced the original convolutional DWD refiner—which caused spatial aliasing and high VRAM usage—with a faster 8-block windowed transformer refiner initialized from Sol-H3-VAE decoder blocks, improving 2-step temporal coherence.
Q:Which quantization format does pi-H3 use for ComfyUI vs Diffusers?
The Diffusers pipeline via LakonLab v0.3 uses FP8 W8A8 quantization across all DiT blocks and the text encoder with BF16 AdaLN/output layers, while ComfyUI-piFlow ships dedicated INT8 ConvRot safetensors adapters (pi_h3_2step_dwd_adapter_int8_convrot.safetensors).
Q:How fast is pi-H3 compared to Sol-H3 on 768p video?
On a single NVIDIA B200 GPU generating 1344x768 24fps stereo-audio video, pi-H3 2-step DWD finishes a 5.2s clip in 3.813s (2.49x faster than Sol-H3's 9.475s) and a 10.1s clip in 9.161s (2.65x faster than Sol-H3's 24.309s).
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.