Instructions to use pdmd2026/pdmd_4NFE_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pdmd2026/pdmd_4NFE_lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-H3", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("pdmd2026/pdmd_4NFE_lora") prompt = "A man with short gray hair plays a red electric guitar." output = pipe(prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
PDMD 4-NFE LoRA for MiniMax-H3
This repository holds the LoRA adapter of a 4-step (4 NFE) student distilled from MiniMax-H3 with Projected Distribution Matching Distillation (PDMD). The same model is also available as full transformer weights in pdmd2026/pdmd_4NFE_full.
The adapter is applied to the transformer (MiniMaxH3Transformer3DModel) of the base model.
Every other component (VAE, audio VAE, schedulers, text encoder, processor) is unchanged and
comes from the base model.
Files
| file | bytes | description |
|---|---|---|
lora_model_0.safetensors |
1,383,680,592 | 312 LoRA pairs (624 tensors), rank 128, alpha 128, bf16 |
lora_model_0.safetensors.json |
95,196 | metadata: tensor keys and shapes |
Tensor keys have the form transformer.<module>.lora_A.weight / transformer.<module>.lora_B.weight,
where <module>.weight is the corresponding parameter of MiniMaxH3Transformer3DModel.
Fusing rule (also stored in the safetensors metadata):
W_base += lora_scale * (lora_B @ lora_A) # lora_scale = 1.0 (alpha / rank = 128 / 128)
Sample with 4 denoising steps using the base model's released scheduler configuration (shift 12 / 3).
Citation
@misc{wang2026pdmdprojecteddistributionmatching,
title={PDMD: Projected Distribution Matching Distillation for Video Diffusion Models},
author={Zimo Wang and Junkun Yuan and Angtian Wang and Haotian Yang and Canyu Zhang and Siyuan Yuan and Xingchang Huang and Bo Liu and Yizhi Wang and Yiding Yang and Chongyang Ma and Gordon Guocheng Qian},
year={2026},
eprint={2609.35768},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2609.35768},
}
- Downloads last month
- 185
Model tree for pdmd2026/pdmd_4NFE_lora
Base model
MiniMaxAI/MiniMax-H3