Instructions to use H3-Tiny/MiniMax-H3-Tiny-17B-Pruned-FL2VA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use H3-Tiny/MiniMax-H3-Tiny-17B-Pruned-FL2VA with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("H3-Tiny/MiniMax-H3-Tiny-17B-Pruned-FL2VA", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
MiniMax-H3-Tiny-17B-Pruned-FL2VA
Part of H3-Tiny: structured pruning of MiniMax-H3 for joint video + audio generation. This checkpoint is the pruned version of the H3 transformer used for FL2VA (first + last frame to video + audio) and T2VA (text to video + audio).
๐งฉ Using ComfyUI? Get the single-file version of this checkpoint from MiniMax-H3-Tiny-ComfyUI.
| Parameters | 17.07B (transformer) |
| Made by | MiniMax H3 FL2VA / T2VA transformer (33.12B) with AdaLN rank 8 and 8 of its 50 transformer blocks removed. No training. |
| Workflows | FL2VA, T2VA |
| Sampling steps | 50 |
MiniMax H3 ships two transformers with the same architecture: one for Ref2VA and one shared by T2VA and FL2VA.
MiniMax-H3-Tiny-17B-Pruned-Ref2VA is pruned from the Ref2VA one; this
repository is pruned from the other with the same recipe, calibrated on FL2VA and T2VA samples. The depth search
removes the same blocks, [6, 7, 8, 9, 10, 11, 13, 15], for both transformers.
This repository holds the transformer only (diffusers layout: config.json + sharded safetensors). The text encoder,
VAEs and processors come from the official MiniMax H3 checkpoint in diffusers format.
Usage
git clone https://github.com/fuyi25/MiniMax-H3-Tiny && cd MiniMax-H3-Tiny && pip install -e .
hf download H3-Tiny/MiniMax-H3-Tiny-17B-Pruned-FL2VA --local-dir ckpt/H3-Tiny-17B-Pruned-FL2VA
# FL2VA: first + last frame
python scripts/infer.py --weights ckpt/H3-Tiny-17B-Pruned-FL2VA --base-model /models/MiniMax-H3 --workflow fl2va \
--image first.png --last-image last.png --num-frames 124 --out outputs/ \
--prompt "For the target video, at 0.00 seconds into the target video, <Picture 1> (from [Shot 1]) is fully referenced, and at 5.12 seconds into the target video, <Picture 2> (from [Shot 1]) is fully referenced.
integrated_multimodal_description: ..."
# T2VA: text only
python scripts/infer.py --weights ckpt/H3-Tiny-17B-Pruned-FL2VA --base-model /models/MiniMax-H3 --workflow t2va \
--prompt "integrated_multimodal_description: ..." --num-frames 124 --out outputs/
from h3tiny.pipeline import load_pipeline
pipe = load_pipeline("ckpt/H3-Tiny-17B-Pruned-FL2VA", "/models/MiniMax-H3", workflow="fl2va", device="cuda")
See the GitHub README for prompts, offloading, attention backends and the pruning scripts.
Contact
Questions and bug reports: GitHub issues or the Community tab here. For anything else, email Haoshuai Fu at fohoo@outlook.com.
License
These weights are Model Derivatives of MiniMax H3 and are distributed under the MiniMax H3 Community License Agreement; see NOTICE. Use of the weights must follow that agreement, including its territorial scope and acceptable-use policy.
H3-Tiny is an independent project and is not affiliated with or endorsed by MiniMax.
- Downloads last month
- 3,085
Model tree for H3-Tiny/MiniMax-H3-Tiny-17B-Pruned-FL2VA
Base model
MiniMaxAI/MiniMax-H3