Text-to-Video
Diffusers
Safetensors
English
MotifVideoPipeline
image-to-video
video-generation
diffusion-transformer
Instructions to use Motif-Technologies/Motif-Video-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Motif-Technologies/Motif-Video-2B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Motif-Technologies/Motif-Video-2B", dtype=torch.bfloat16, device_map="cuda") prompt = "A vibrant blue jay perches gracefully on a slender branch, its feathers shimmering in the soft morning light. The bird's keen eyes scan the surroundings, capturing the essence of the tranquil forest. It flutters its wings briefly, showcasing the intricate patterns of blue, white, and black on its plumage. The background reveals a lush canopy of green leaves, with rays of sunlight filtering through, creating a dappled effect on the forest floor. The blue jay then tilts its head, emitting a melodious call that echoes through the serene woodland, adding a touch of magic to the peaceful scene." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add FP8 weight quantization guide to README
#9
by gkalstn0 - opened
Summary
- Add torchao
Float8WeightOnlyConfiginstructions to Memory-efficient Inference section - Reduces peak VRAM from ~19 GB to ~15 GB with
enable_model_cpu_offload() - Stores transformer weights in FP8 while keeping all computation in BF16 precision
Test plan
- Fresh venv with README pip install recipe + torchao
- 720p 121 frames 50 steps: VRAM confirmed ~15 GB (vs ~19 GB baseline)
- Video output quality verified
gkalstn0 changed pull request status to open
gkalstn0 changed pull request status to merged