NVlabs/FastGen
NVIDIA FastGen: Fast Generation from Diffusion Models
What it solves
FastGen addresses the slow generation speeds typically associated with diffusion models. It provides a framework to "distill" or compress large, complex models into smaller, faster versions that can produce high-quality images, videos, and audio in significantly fewer steps.
How it works
Built on PyTorch, the framework acts as a central hub for various acceleration and distillation techniques. It allows users to train models using methods like trajectory matching and distribution matching. The framework is designed to be agnostic to the specific network architecture or data type, meaning it can be applied to a wide range of existing models (such as FLUX or Wan) and modalities (like image-to-video or video-to-video) through a flexible configuration system.
Who it’s for
It is designed for researchers and developers working on generative AI who need to optimize models for faster inference. It is particularly useful for those looking to implement large-scale training (20B+ parameters) or those who need to integrate custom architectures and datasets into a standardized, high-performance training pipeline.
Highlights
- Supports diverse generation tasks including text-to-image, image-to-video, and multimodal video+audio.
- Includes a wide library of distillation methods like DMD2, flow maps, and self-forcing.
- Scales to large models using distributed training tools like DDP and FSDP2.
- Provides integration with ComfyUI for interactive, real-time testing of student models.
- Highly modular design allows for easy addition of new network architectures and custom datasets.
Related
- Project
- Project
- Project
- Project
- Project