Text-to-Video
Diffusers
Safetensors
MiniMax H3
video
audio
text-to-audio-video
distillation
dmd2
few-step
fastvideo
fasth3
preview
Run this model with HF Jobs
Run FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
[docs] fix FastH3 installation instructions
Browse files2 unmodified lines345678927 unmodified lines3738394041424344454647484950515253545556575859602 unmodified lineslicense_name: minimax-h3-communitylicense_link: LICENSEbase_model: MiniMaxAI/MiniMax-H3library_name: diffuserspipeline_tag: text-to-videotags:- text-to-video27 unmodified lines## Run with FastVideo```bashgit clone https://github.com/hao-ai-lab/FastVideo.gitcd FastVideouv venv --python 3.12source .venv/bin/activateUV_TORCH_BACKEND=cu130 uv pip install -e ".[fasth3]"``````bashFASTVIDEO_ATTENTION_BACKEND=FLASH_ATTN \python examples/inference/basic/basic_minimax_h3_t2v.py \--model-path FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree \--prompt "your prompt" \--steps 5```Five scheduler points execute the trained four transformer forwards. Adjust`--num-gpus` for your setup.## Scope2 unmodified lines345678927 unmodified lines3738394041424344454647484950515253545556575859606162636465666768692 unmodified lineslicense_name: minimax-h3-communitylicense_link: LICENSEbase_model: MiniMaxAI/MiniMax-H3library_name: fastvideopipeline_tag: text-to-videotags:- text-to-video27 unmodified lines## Run with FastVideoInstall [uv](https://docs.astral.sh/uv/getting-started/installation/), then usethe CUDA 13 / Blackwell path below. It selects FastVideo's published CUDAkernel wheel instead of compiling the kernel locally. See the[installation guide](https://hao-ai-lab.github.io/FastVideo/getting_started/installation/)for other platforms.```bashgit clone https://github.com/hao-ai-lab/FastVideo.gitcd FastVideouv venv --python 3.12 --seedsource .venv/bin/activateUV_TORCH_BACKEND=cu130 uv pip install \--no-sources-package fastvideo-kernel \-e ".[fasth3]"``````bashFASTVIDEO_ATTENTION_BACKEND=FLASH_ATTN FASTVIDEO_FA4=1 \python examples/inference/basic/basic_minimax_h3_t2v.py \--model-path FastVideo/FastVideo-FastH3-4-step-Preview-v1-Dense-DataFree \--prompt "your prompt" \--steps 5```Five scheduler points execute the trained four transformer forwards. Thedefault uses four GPUs; other supported GPU counts must divide H3's 56attention heads.## Scope
README.md+15-6