FastVideo is an open-source framework for accelerating large video diffusion model.
|
|
| Get 8X diffusion boost for Mochi with FastVideo |
🤗 FastMochi | 🤗 FastHunyuan
FastVideo currently offers: (with more to come)
- FastHunyuan and FastMochi: consistency distilled video diffusion models for 8x inference speedup.
- First open video DiT distillation recipes based on PCM.
- Scalable training with FSDP, sequence parallelism, and selective activation checkpointing, with near linear scaling to 64 GPUs.
- Memory efficient finetuning with LoRA, precomputed latents, and precomputed text embeddings.
Change Log
2024/12/17:FastVideov0.1 is released.
🔧 Installation
The code is tested on Python 3.10.0, CUDA 12.1 and H100.
./env_setup.sh fastvideo
🚀 Inference
We recommend using a GPU with 80GB of memory. To run the inference, use the following command:
FastHunyuan
# Download the model weight
python scripts/huggingface/download_hf.py --repo_id=FastVideo/FastHunyuan --local_dir=data/FastHunyuan --repo_type=model
# CLI inference
sh scripts/inference/inference_hunyuan.sh
You can also inference FastHunyuan in the official Hunyuan github.
FastMochi
# Download the model weight
python scripts/huggingface/download_hf.py --repo_id=FastVideo/FastMochi-diffusers --local_dir=data/FastMochi-diffusers --repo_type=model
# CLI inference
bash scripts/inference/inference_mochi_sp.sh
Distillation
Please refer to the distillation guide.
Finetuning
Please refer to the finetuning guide.
Development Plan
Acknowledgement
We learned and reused code from the following projects: PCM, diffusers, and OpenSoraPlan.
Metadata
Release files for flashvideo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flashvideo-0.1.0.tar.gz | 138.1 kB | Without provenance | Details for flashvideo-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flashvideo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for flashvideo-0.1.0-py3-none-any.whl |
Total release size: 304.5 kB
Release files / flashvideo-0.1.0.tar.gz
| Download URL | flashvideo-0.1.0.tar.gz |
|---|---|
| Size | 138.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58d9e9073d1d96c74f6e8e80e63e36e43448179b82e5cf29d5da2a04dd83e1fc
|
|
BLAKE2b-256 checksum How to use checksums |
f215623f0680198584fe49148c66a4ce81553a48ac223f05bce88e6d3b5faf35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.13
|
Release files / flashvideo-0.1.0-py3-none-any.whl
| Download URL | flashvideo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 166.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38d7960aa31459ad5a535867e251b129bd650728fc941a1688bf7bb81b833ed1
|
|
BLAKE2b-256 checksum How to use checksums |
f335e88d4b32fbf79a63c82a5116a4d58c1d16cba657456e860820df16e96973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.13
|
Security for flashvideo 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.