aptech0081's picture
Upload README.md with huggingface_hub
c9e7391 verified
|
Raw
History Blame Contribute Delete
3.21 kB
---
license: apache-2.0
base_model:
- alibaba-pai/MiniMax-H3-Acc-LoRAs
- MiniMaxAI/MiniMax-H3
pipeline_tag: text-to-video
tags:
- comfyui
- lora
- minimax-h3
- video
- audio
- distillation
---
# MiniMax-H3 Acc LoRAs β€” ComfyUI conversion
ComfyUI-key repackaging of the **official
[alibaba-pai/MiniMax-H3-Acc-LoRAs](https://huggingface.co/alibaba-pai/MiniMax-H3-Acc-LoRAs)**
8-step PDD acceleration LoRAs for [MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3) β€”
full audio+video generation in **8 (or 4) sampler steps, CFG-free**.
**These are not plain LoRAs.** Each file carries a rank-64 trunk LoRA **plus** a Parallel
Decoding Distillation head bank (32 per-interval final-layer projections per modality,
[PDD β€” arXiv:2607.26004](https://arxiv.org/abs/2607.26004)). Loading them requires the
companion custom node pack:
➑️ **[Jalen-Brunson/ComfyUI-MiniMax-H3-PDD-Acc](https://github.com/Jalen-Brunson/ComfyUI-MiniMax-H3-PDD-Acc)**
(also loads the original alibaba-pai files directly β€” this repo just saves you the in-memory
conversion and gives you inspectable standard LoRA keys).
## Files
| File | Base trunk | sha256 |
|---|---|---|
| `minimax_h3_fl2va_pdd_acc_8step_comfyui.safetensors` | MiniMax-H3 **FL2VA** | `1dce71b9…5cda0ea` |
| `minimax_h3_ref2va_pdd_acc_8step_comfyui.safetensors` | MiniMax-H3 **Ref2VA** | `5531fa0d…bdc78a1` |
Put them in `ComfyUI/models/pdd_acc/`. Pair FL2VA with an fl2va UNET, Ref2VA with ref2va
(bf16 or int8-convrot builds both work).
## Usage (recipe is mandatory)
`UNETLoader β†’ MiniMaxH3SigmaShift (12/3) β†’ MiniMax H3 PDD Acc LoRA (Apply) β†’ BasicGuider (CFG 1.0)`,
sampler **euler**, sigmas = **the Apply node's sigmas output** (the trained PDD block
boundaries) into `SamplerCustomAdvanced`. Strengths 1.0, `nfe` 8 (4 is also official). Remove
other distill LoRAs (turbo); don't stack step-caching nodes. A ready-to-run workflow ships in
the node pack's `example_workflows/`.
## What was converted
Trunk LoRA renamed from diffusers to ComfyUI H3 keys (`diffusion_model.*.lora_A/B.weight`
+ `.alpha`, 258 modules):
- `to_q/to_k/to_v` β†’ `attn.qkv_proj`: concatenated `lora_A`, **block-diagonal** `lora_B`,
alpha Γ—3 (keeps the per-branch scale exactly 1.0)
- `ff.net.0.proj` β†’ `mlp.fc1`: SwiGLU `[value;gate]` β†’ `[gate;value]` `lora_B` row half-swap
- `to_out.0` β†’ `attn.out_proj`, `ff.net.2` β†’ `mlp.fc2`, `adaln_proj.linear` copied 1:1
(modulation layouts verified bit-identical between the two implementations)
- `token_refiner.refiner_blocks.N` β†’ `token_refiner.blocks.N`
The PDD head bank (`proj_out` [32,96,5376], `audio_proj_out` [32,32,5376] + biases) is kept
byte-for-byte unchanged. Conversion is verified **bit-identical** to what the node pack
computes in memory from the original files, and the converter CLI + 13-test suite live in the
GitHub repo. Full provenance (source file sha256, transform description) is embedded in each
file's safetensors metadata.
## Credits
All training credit to [alibaba-pai](https://huggingface.co/alibaba-pai) (Apache-2.0 release)
and the PDD authors (Shaul et al.); base model by
[MiniMaxAI](https://huggingface.co/MiniMaxAI). This repo is a format conversion only.