Instructions to install FastVideo for NVIDIA CUDA GPUs.
- OS: Linux or Windows WSL
- Python: 3.10-3.12
- CUDA 12.8
- At least 1 NVIDIA GPU
Recommended default: use uv for faster and more stable environment setup.
Please follow the documentation to install uv. After installing uv, create a new environment using:
# (Recommended) Create a new uv environment. Use `--seed` to install `pip` and `setuptools`.
uv venv --python 3.12 --seed
source .venv/bin/activateYou can also create a Python environment using Conda.
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc# Create and activate a Conda environment
conda create -n fastvideo python=3.12 -y
conda activate fastvideouv pip install fastvideoAlso optionally install FlashAttention:
uv pip install flash-attn --no-build-isolation -vpip install fastvideoAlso optionally install FlashAttention:
pip install flash-attn --no-build-isolation -vgit clone https://github.com/hao-ai-lab/FastVideo.git && cd FastVideoBasic installation:
uv pip install -e .Alternative with Conda environment:
pip install -e .uv pip install flash-attn --no-build-isolation -vAlternative with Conda environment:
pip install flash-attn --no-build-isolation -vWe also have prebuilt docker images with FastVideo dependencies pre-installed: Docker Images
If you're planning to contribute to FastVideo please see the following page: Contributor Guide
- NVIDIA GPU with CUDA 12.8 support
- 40GB GPU memory each for 2 GPUs with lora
- 30GB GPU memory each for 2 GPUs with CPU offload and lora
- Multiple high-memory GPUs recommended (e.g., H100)
If you encounter any issues during installation, please open an issue on our GitHub repository.
You can also join our Slack community for additional support.