Skip to content

[Feature] pi-H3: 2/4-step MiniMax-H3 adapters with DWD direct pixel decoding (no video VAE decode) #2460

Backlog

Description

@Radu0120

Feature Summary

Support Lakonik/pi-H3, few-step adapters for MiniMax-H3 whose DWD variants predict video pixels directly at the last step and skip the video VAE decoder.

Detailed Description

pi-H3 ships 2-step and 4-step adapters for MiniMax-H3 (base: multimodalart/MiniMax-H3-Pruned), built from pi-Flow v2 few-step distillation plus DWD, Decoding Without a Decoder (arXiv:2611.22287). With the DWD adapters the video VAE only encodes the conditioning keyframes; the final frames come from a pixel head on the DiT. Audio still goes through the audio VAE.

Adapter Steps Output
pi_h3_2step_dwd_adapter 2 DWD pixel head
pi_h3_4step_dwd_adapter 4 DWD pixel head
pi_h3_2step_adapter 2 VAE decoder
pi_h3_4step_adapter 4 VAE decoder

The model card recommends the DWD adapters. All four support text, first-frame and last-frame conditioning.

From the safetensors headers, the DWD adapter is more than a LoRA:

  • 276 LoRA tensors on transformer_blocks.*
  • full (non-LoRA) adaln_proj weights for the blocks, and full weights for transformer_blocks.46 to .49
  • a new dwd_norm_out plus dwd_pixel_refiner: feature_expand (5376 -> 8192), 8 transformer blocks at width 2048 (attn.to_qkv, ff.w1/w2, scale1/scale2), 4 register_tokens, proj_out (2048 -> 3072) and a separate first_frame_proj_out (2048 -> 768)
  • the reference pipeline runs the refiner with variable-length windowed attention, then a small color_encoder.decode to RGB

The plain (non-DWD) adapters are 300 LoRA tensors plus full adaln_proj weights, so they may already be close to loadable, but they still pay the full VAE decode.

Expected usage would mirror the existing H3 path: load the adapter on top of an H3 diffusion model, set 2 or 4 steps (or a matching --sigmas preset like the HyperFlow ones), and have the DWD head produce the frames when its tensors are present.

Alternatives you considered

  • HyperFlow H3 Flash (already supported via --sigmas hyperflow-h3-flash-*): 4/6/8 steps, but still decodes through the video VAE.
  • Sol-H3-VAE (feat: support Sol-H3-VAE decoding for MiniMax-H3 #2317): makes the VAE decode about 2.3x faster but still runs a decoder.
  • Merging the plain pi-H3 adapter into the base weights offline: fewer steps, same decode cost.

Additional context

  • The same idea for Qwen-Image 2.1 is requested in [Feature] Qwen-Image-2.1-PixelHead - Faster VAE #2402 (PixelHead), where pi-H3 was linked as a related approach, so a shared "direct pixel readout on the final step" hook could serve both.
  • Reference implementation: LakonLab, docs at docs/piH3.md (MiniMaxH3DWDBlocks pipeline).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions