Instructions to use lightweight/MiniMax-H3-Pruned-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lightweight/MiniMax-H3-Pruned-full 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("lightweight/MiniMax-H3-Pruned-full", 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
Download processor/video_preprocessor_config.json from lightweight/MiniMax-H3-Pruned-full: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/lightweight/MiniMax-H3-Pruned-full/resolve/main/processor/video_preprocessor_config.json
- Command line
-
hf download hf://lightweight/MiniMax-H3-Pruned-full/processor/video_preprocessor_config.json
-
curl -L -o video_preprocessor_config.json https://huggingface.co/lightweight/MiniMax-H3-Pruned-full/resolve/main/processor/video_preprocessor_config.json
385 Bytes
| { | |
| "size": { | |
| "longest_edge": 25165824, | |
| "shortest_edge": 4096 | |
| }, | |
| "patch_size": 16, | |
| "temporal_patch_size": 2, | |
| "merge_size": 2, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "processor_class": "Qwen3VLProcessor", | |
| "video_processor_type": "Qwen3VLVideoProcessor" | |
| } |