Instructions to use FastVideo/FastMochi-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/FastMochi-diffusers 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/FastMochi-diffusers", 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
| { | |
| "patch_size": 2, | |
| "num_attention_heads": 24, | |
| "attention_head_dim": 128, | |
| "num_layers": 48, | |
| "pooled_projection_dim": 1536, | |
| "in_channels": 12, | |
| "out_channels": null, | |
| "qk_norm": "rms_norm", | |
| "text_embed_dim": 4096, | |
| "time_embed_dim": 256, | |
| "activation_fn": "swiglu", | |
| "max_sequence_length": 256, | |
| "_class_name": "MochiTransformer3DModel", | |
| "_diffusers_version": "0.32.0.dev0" | |
| } |