--- license: other license_name: minimax-h3-community-license-agreement license_link: https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE library_name: diffusion-single-file pipeline_tag: image-to-video base_model: - MiniMaxAI/MiniMax-H3 - Comfy-Org/MiniMax-H3 - WarmBloodAban/Minimax-h3_Singularity - Pika-Labs/Pika-H3-Flex - ZhengmingYu/DMAD tags: - comfyui - diffusion-single-file - minimax-h3 - ref2va - fl2va - hybrid - prism-v2 - bf16 - int8 - w6a8 - gptq - convrot - lora - audio-video-generation --- # CleanTie & HandTie — V2Sing Hybrid (MiniMax-H3 Ref2VA) Audio-safe **FL2VA × Singularity V2** Ref2VA checkpoints for ComfyUI (`cleantie` SFW base and `handtie` calibrated anatomy), with Hessian-calibrated **8-step turbo + INT8 attention** quant builds (`1.9–2.5×` faster than warm BF16, `~20%` faster than static INT8 ConvRot). > **Pick ONE checkpoint — do not double-stack.** > `_turbo_` files already have the 8-step LoRA baked in FP32. `handtie_` files already have the anatomy stack baked. --- ## Quick Pick - **Daily Driver (`_turbo_int8_minmaxxed`, `20.97 GiB`):** Hessian-calibrated INT8 ConvRot + `52×` INT8 attention. Fast high-fidelity drop-in (`1.92–2.46×` vs warm BF16) with cleaner color/prop lock and speech match than uncalibrated INT8. - **Smaller HQ (`_turbo_w6_g16_hq`, `19.20 GiB`):** Mixed W6 (`g=16`) + INT8 + `52×` INT8 attention (`2.06–2.36×` vs BF16, `1.76 GiB` lighter). Top SFW pixel/audio fidelity on `nightmarket_anime` (`21.13 dB`) & `midnight_store_male` (`22.43 dB` / `0.994` audio cos). - **Low-VRAM Experimental (`_turbo_w4w6_compact`, `14.17 GiB`):** Mixed W4/W6/INT8 + `52×` INT8 attention. Fastest/smallest (`2.32–2.75×` speed), **caveat:** visual structure holds well, but voice cloning drops (`0.645–0.933`) on some dialogue prompts. - **Unbaked Spines / Merging:** Grab `base` / `anatomy` (`_bf16` or `_int8_convrot`) and pair with `cleantie_PikaDMAD_audiosafe_8step_sep_fro99` (`0.85–1.0`). --- ## Checkpoints & LoRAs ### 8-Step Turbo Baked *(Standalone — No Turbo LoRA)* | Precision Tier | CleanTie (SFW) | HandTie (Anatomy) | Size | Notes | |---|---|---|---|---| | **INT8 MinMaxxed *(rec.)*** | [`turbo_int8_minmaxxed`](diffusion_models/cleantie_v2Sing_hybrid_base_turbo_int8_minmaxxed.safetensors) | [`turbo_int8_minmaxxed`](diffusion_models/handtie_v2Sing_hybrid_anatomy_turbo_int8_minmaxxed.safetensors) | `20.97 GiB` | Hessian GPTQ+STE + `52×` INT8 attn (`blocks.0,1,2,49` & refiner BF16) | | **W6 g16 HQ** | [`turbo_w6_g16_hq`](diffusion_models/cleantie_v2Sing_hybrid_base_turbo_w6_g16_hq.safetensors) | [`turbo_w6_g16_hq`](diffusion_models/handtie_v2Sing_hybrid_anatomy_turbo_w6_g16_hq.safetensors) | `19.20 GiB` | W6 `g16` (`qkv`/`fc1`) + INT8 (`out`/`fc2`) + `52×` INT8 attn | | **W4/W6 Compact *(exp.)*** | [`turbo_w4w6_compact`](diffusion_models/cleantie_v2Sing_hybrid_base_turbo_w4w6_compact.safetensors) | [`turbo_w4w6_compact`](diffusion_models/handtie_v2Sing_hybrid_anatomy_turbo_w4w6_compact.safetensors) | `14.17 GiB` | W4 (`qkv`/`fc1`), W6 (`out`, `47..48`), INT8 (`fc2`, `0,1,49`) + `52×` INT8 attn | | **INT8 ConvRot *(legacy)*** | [`turbo_int8_convrot`](diffusion_models/cleantie_v2Sing_hybrid_base_turbo_int8_convrot.safetensors) | [`turbo_int8_convrot`](diffusion_models/handtie_v2Sing_hybrid_anatomy_turbo_int8_convrot.safetensors) | `20.59 GiB` | Uncalibrated ConvRot (`blocks.0,1,49` BF16), stock attention | | **BF16** | [`turbo_bf16`](diffusion_models/cleantie_v2Sing_hybrid_base_turbo_bf16.safetensors) | [`turbo_bf16`](diffusion_models/handtie_v2Sing_hybrid_anatomy_turbo_bf16.safetensors) | `37.46 GiB` | Full precision | ### Unbaked Base Spines & Standalone Turbo LoRAs | Role | CleanTie / Shared | HandTie | Size | Use With | |---|---|---|---|---| | **Base Spine (INT8 ConvRot)** | [`base_int8_convrot`](diffusion_models/cleantie_v2Sing_hybrid_base_int8_convrot.safetensors) | [`anatomy_int8_convrot`](diffusion_models/handtie_v2Sing_hybrid_anatomy_int8_convrot.safetensors) | `20.59 GiB` | 14+ steps or pair with `PureTurbo sep_fro99` | | **Base Spine (BF16)** | [`base_bf16`](diffusion_models/cleantie_v2Sing_hybrid_base_bf16.safetensors) | [`anatomy_bf16`](diffusion_models/handtie_v2Sing_hybrid_anatomy_bf16.safetensors) | `37.46 GiB` | Merging / LoRA stacking | | **PureTurbo LoRA *(rec.)*** | [`PikaDMAD_8step_sep_fro99`](loras/cleantie_PikaDMAD_audiosafe_8step_sep_fro99.safetensors) | *(works on both)* | `1.47 GiB` | Any unbaked H3 base (`0.85–1.0`, `avg_r=158.5`, `>=99%` Fro energy) | | **PureTurbo LoRA (Full)** | [`PikaDMAD_8step_bf16`](loras/cleantie_PikaDMAD_audiosafe_8step_bf16.safetensors) | *(works on both)* | `3.57 GiB` | Unpruned source LoRA for merging | --- ## Recommended ComfyUI Settings - **Steps:** `8 steps` *(standalone on `_turbo_`, or base + PureTurbo @ `0.85–1.0`; MiniMax-H3 ships distilled, so there is no CFG slider to set)* - **Sampler / Scheduler:** `lcm` (or `euler`) + `beta_57` / `beta` / `simple` - **Flow Shift:** `shift_video = 12.0`, `shift_audio = 2.0–3.0` *(benchmarked at `12.0 / 2.5`)* - **Runtime Requirement:** Quantized checkpoints use ComfyUI `comfy-kitchen` (`int8_tensorwise` ConvRot, `w6a8_int8`, `asym_w4a8_int8`, and embedded `comfy_kitchen_int8` attention configs). Update ComfyUI & `comfy-kitchen` (`>= 0.2.41`) before loading. - **Long-form Chaining:** Built for [`ComfyUI-Hand-Tie-Clips`](https://github.com/sandpies/ComfyUI-Hand-Tie-Clips) multi-hop Ref2VA workflows. ---
RTX 5090 8-Step Ref2VA Benchmarks (vs BF16 Reference) Measured end-to-end in ComfyUI (`lcm`, `beta_57`, `shift 12.0 / 2.5`, `8 steps`, `73f` @ `480×640` / `640×480` across 5 scenes): | Checkpoint Tier | Layer Solve NRMSE | Speedup vs BF16 | Video Lat Cos | Audio Spec Cos | Notes | |---|---|---:|---:|---:|---| | **`int8_minmaxxed`** | `0.281–0.295%` (`2.7×` vs nat) | **`1.92–2.46×`** (`8.3–11.6s`) | `0.863–0.976` | **`0.953–0.980`** | Best ref color/prop lock (`MAE 6.17` vs `9.50` ConvRot on `ht_voice_strip`) | | **`w6_g16_hq`** | `0.569–0.592%` (`2.7×` vs nat) | **`2.06–2.36×`** (`8.9–10.6s`) | `0.903–0.978` | **`0.908–0.994`** | Best PSNR on `nightmarket_anime` (`21.1 dB`) & `midnight_store` (`22.4 dB` / `0.994` aud) | | **`w4w6_compact`** | `1.98–2.07%` W4 (`2.8×` vs nat) | **`2.32–2.75×`** (`8.1–10.1s`) | `0.862–0.962` | `0.645–0.933` | Visual coherence stays strong; voice similarity drops on some dialogue prompts | | `int8_convrot` *(legacy)* | Uncalibrated | `1.77–1.92×` (`10.4–13.2s`) | `0.914–0.972` | `0.923–0.987` | Occasional prop/furniture color shift; no embedded INT8 attention |
Under the Hood — Merge, Audio Protection & Hessian Quantization 1. **`cleantie` Spine (`FL2VA pruned` × `Singularity V2`):** - **Closed-form AdaLN alignment:** `Singularity V2` `time_embedder` projected onto `FL2VA`'s `adaln_t_table` via `float64` least-squares (`rel L2 = 2.1025e-05`). - **Modality-split AdaLN:** Visual `0.40 -> 0.85`, text `0.40 -> 0.60`, audio held conservative at `0.15`. - **Audio-safe backbone (`PRISM-v2`):** SVD denoised (`r=64`, `gamma=0.92..1.0`) + polar SLERP on `Q/V/out/fc1`; `K` pinned at `0.12`, `mlp.fc2` at `0.18 -> 0.10`, and `final_layer.audio_out` `0.90 FL2VA` with row norms locked to prevent speech shrinkage. 2. **Audio-Rebalanced PureTurbo (`Pika-H3-Flex Ref2VA` × `DMAD 8-step`):** - Depth-band audio rebalancing, `token_refiner` owned by Pika (`0.65`), late-block `(I - U_vid)` projection (`blocks 35..49`) orthogonalizing DMAD against FL2VA's visual subspace, and per-source SVD (`sep_fro99`, `>=99%` energy). 3. **`handtie` Anatomy Stack (FP32 Linear Sum on `cleantie` Base):** - `0.50 × 10Eros_beta7_nsfw_extract` (`blocks 0..49` + `token_refiner`) + `0.20 × S3_filtered_LoRA_2048_froextract_099` (`blocks 0..49`) + `0.30 × MysticXXX_MMH3-V5-ref2va` (`blocks 0..49` `mlp.fc1/fc2` only; `audio_patch_proj` & `final_layer.audio_out` skipped). 4. **Activation-Learned Quantization (`_hq` & `_compact`):** - Calibrated on modality-balanced rotated Hessians (`G_bal = E[(X H)^T (X H)]`) across 8-step Ref2VA trajectories (`cleantie`: 16 SFW items; `handtie`: 13 anatomy/voice/video/music items) using Cholesky-preconditioned GPTQ + 120-step analytic STE scale refinement and `52×` embedded `comfy_kitchen_int8` attention configs. 5. **Reproduce:** Merge script included at [`scripts/build_v2sing_hybrid.py`](scripts/build_v2sing_hybrid.py).
--- ## Credits & License - **Base architecture & weights:** [MiniMaxAI/MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3) & [Comfy-Org/MiniMax-H3](https://huggingface.co/Comfy-Org/MiniMax-H3) (`minimax-h3-community-license-agreement`) - **Ref2VA action backbone:** [WarmBloodAban/Minimax-h3_Singularity](https://huggingface.co/WarmBloodAban/Minimax-h3_Singularity) (`Singularity V2`, Apache 2.0) - **8-Step Turbo distillation:** [Pika-Labs/Pika-H3-Flex](https://huggingface.co/Pika-Labs/Pika-H3-Flex) & [ZhengmingYu/DMAD](https://huggingface.co/ZhengmingYu/DMAD) (`minimax-h3-community-license-agreement`) - **Anatomy donors (`handtie`):** `TenStrip/10Eros-Max` (`10Eros_beta7_nsfw_extract`), `S3` (`S3_filtered_LoRA_2048_froextract_099`), and `MysticXXX_MMH3-V5-ref2va` Released under the **MiniMax-H3 Community License Agreement**. Respect all upstream license terms when redistributing derivatives.