hao-ai-lab/FastVideo
GPU framework for video post-training and accelerated inference
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
FastVideo puts post-training and inference in the same Python repository. fastvideo/ houses the core package, while fastvideo-kernel/ is the separate kernel tree. The inference path starts with VideoGenerator.from_pretrained(...) and submits prompts through generate_video(...). At num_gpus=1, the worker stays in-process and loads weights once; distributed inference can use sequence parallelism.
The package uses setuptools, requires Python 3.10+, and declares transformers>=5.15.0 and scipy>=1.14.1. The Transformers floor is tied to vision interpolation for the MiniMax-H3 Qwen3-VL encoder and architecture mapping for LTX-2.5’s packed Gemma 4 encoder. Attention is selectable at runtime: FASTVIDEO_ATTENTION_BACKEND=VIDEO_SPARSE_ATTN selects VSA when its kernels are installed. Interactive streaming sits in a separate app: apps/dreamverse/ ships dreamverse-server and a web UI.
Key Capabilities & Differentiators
Post-training covers video, image, and text preprocessing, full and LoRA fine-tuning for supported video DiTs, DMD2 stepwise distillation, and Self-Forcing for causal distillation. FSDP2, sequence parallelism, and selective activation checkpointing support larger training runs. Sparse distillation recipes live in examples/distill/; the reported >50× speedup applies to denoising, not to total generation time or every model.
The CLI and Python API cover pretrained inference, with FastVideo/FastWan2.1-T2V-1.3B-Diffusers as a concrete text-to-video entry point. With the right checkpoint, FastH3 Omni combines a prompt with ordered image, video, and audio references to generate video and audio in eight fused forward passes. Kandinsky 6 adds text- and image-to-video with synchronized audio and video super-resolution up to 4×. These are model-specific capabilities, not a common feature set across checkpoints.
Trade-offs & Limitations
For straightforward generation with one supported checkpoint, a direct Diffusers pipeline is a simpler baseline. FastVideo is easier to justify when training and serving teams need to evaluate LoRA, distillation, sparse attention, and distributed inference together. The cost is a larger compatibility surface: check the exact model, device, precision, and attention backend combination rather than assuming that platform support implies support for every optimization.
Size for both VRAM and host RAM. On notebook-class machines with roughly 16 GB of host RAM, start with num_gpus=1: adding GPUs does not add host memory, and multiple workers can run out of it. Measure peak memory, output quality, and end-to-end latency at your target resolution, clip length, and concurrency before choosing a distributed configuration. The Apache-2.0 code license does not settle the terms for separately obtained weights or datasets.
Hardware & Deployment Guide
The package requires Python 3.10+, and the uv quick start uses Python 3.12 with UV_TORCH_BACKEND=cu126 for its CUDA 12 example and cu130 for CUDA 13. Match the PyTorch backend, driver, and optional kernels to the intended checkpoint and platform. For initial validation, use a supported single-GPU checkpoint and test generation through the Python API or CLI before enabling optional kernels or moving to distributed inference. Apple Silicon MLX and AMD ROCm have separate installation paths; do not assume CUDA feature parity.
The root includes docker/. Dreamverse specifically offers local GPU, self-hosted B200 over SSH, Docker, and serverless Modal deployment. The core generation path runs in your environment rather than requiring a hosted generation API. Release v0.2.0 added LongCat-Video Python API examples and LoRA extraction documentation, and fixed TurboDiffusion T2V/I2V configs. The supplied tree’s pyproject.toml declares 0.2.1, so pin the release tag or source revision when reproducing results.
VideoGenerator.from_pretrained(...) and generate_video(...) load a compatible checkpoint and generate video; one GPU uses an in-process worker.FASTVIDEO_ATTENTION_BACKEND=VIDEO_SPARSE_ATTN and requires VSA kernels.apps/dreamverse/ contains the dreamverse-server backend and a web UI, with Docker among the deployment options.Teams adapting or distilling open video models and benchmarking the resulting checkpoints on their own GPUs; also suitable for prototyping interactive generation with Dreamverse.
You only need a managed generation API or a simple single-checkpoint pipeline and do not want to maintain model-specific kernels or GPU runtime combinations.
Quick Start & Installation
uv venv --python 3.12 --seed source .venv/bin/activate # NVIDIA CUDA 12; use cu130 on CUDA 13 UV_TORCH_BACKEND=cu126 uv pip install fastvideo
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/hao-ai-lab/FastVideo.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about FastVideo
How should I integrate FastVideo into an existing Python application?
VideoGenerator.from_pretrained(...) to load a compatible checkpoint, then call generate_video(...) with a prompt. With num_gpus=1, the worker runs in the caller’s process and loads weights once. Use the CLI for shell-driven jobs, or evaluate the separate Dreamverse backend and web UI if you need interactive streaming.How much GPU memory and host RAM should I budget?
Can we self-host FastVideo commercially?
When is FastVideo a better fit than a direct Diffusers pipeline?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy