State of open video generation models in Diffusers
Open video generation models such as HunyuanVideo, CogVideoX, LTX-Video, Mochi-1 and Allegro share a common architecture: T5-style text encoders, a DiT-based denoiser over 3D spatio-temporal tokens, a spatially and temporally compressing VAE, and a scheduler. Diffusers runs them in a few lines of code but they need a lot of memory, about 60 GB for HunyuanVideo at default settings. Benchmarks combining bitsandbytes/FP8 quantization, CPU and group offloading, VAE tiling and layerwise casting bring HunyuanVideo down to about 6.6 GB with little extra latency. Timestep and guidance distillation speed up generation, and the finetrainers repo supports LoRA fine-tuning.
Related posts
- Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Hugging Face hardMasterLTX-2.5 video-with-audio generation was ported to AWS Trainium3 via diffusers, cutting a 10-second clip from 5 min 20 s at 960×544 to 22–23 s at 2048×1024 on 32 of 64 NeuronCores, roughly matching LTX's paid API. The speedup came from tensor parallelism (TP-4) plus sequence parallelism (SP-8) via custom attention processors, compiling repeated blocks, fp32 GELUs, sizing shapes so attention hits the fast kernel, and large host-side fixes: running the pipeline on rank 0 only, CPU thread pinning, skipping prompt padding, and decoding video on the NeuronCores. A ~160-line JSON storyboard layer chains shots via from/to keyframes to keep subjects consistent, and the same setup was used to generate alternative continuations of robot camera footage as world-model data.
- A Dive into Text-to-Video Models
Hugging Face easyNoviceText-to-video generation is much harder than text-to-image because frames must stay spatially and temporally consistent, training compute is high, paired datasets are scarce and noisy, and a single caption cannot describe events unfolding over time. Research has moved through three waves: early GAN/VAE models (TGANs-C), transformer-based systems (Phenaki, NUWA, CogVideo, Make-A-Video) and current diffusion models (VDM, MagicVideo, Tune-a-Video, Text2Video-Zero, NUWA-XL). Most of these train on short clips and rely on sliding-window generation, which creates context gaps in longer videos. Datasets such as WebVid, HowTo100M and CelebV-Text are covered, along with how to run ModelScope and Text2Video-Zero through Hugging Face Diffusers and Spaces, including a short code example.
- Exploring Quantization Backends in Diffusers
Hugging Face mediumAdeptHugging Face Diffusers supports several quantization backends (bitsandbytes, torchao, Quanto, GGUF and native FP8 layerwise casting) that shrink large diffusion models such as Flux-dev, whose full BF16 pipeline needs about 31 GB. Benchmarks on an H100 put BnB 4-bit NF4 at about 12.6 GB after loading with no inference slowdown, while torchao and Quanto INT4 cut memory further but take roughly 109 seconds per image versus 12 seconds for BF16. Code examples apply PipelineQuantizationConfig to the transformer and T5 encoder, load pre-quantized GGUF files, and combine quantization with CPU offloading, group offloading and torch.compile. The 8-bit quality differences are usually hard to see, and NF4 is suggested as the best tradeoff.
- Diffusers welcomes Stable Diffusion 3.5 Large
Hugging Face mediumAdeptStable Diffusion 3.5 Large (8B) and a timestep-distilled Turbo variant are now usable in Diffusers. The architecture matches SD3 Medium except for QK normalization and dual attention layers in the MMDiT blocks. Code covers bf16 inference, few-step (4-8 step) Turbo generation without classifier-free guidance, NF4 quantization via bitsandbytes with CPU offload for consumer GPUs, and single-file checkpoint loading. LoRA fine-tuning on 24GB GPUs works with the existing SD3 DreamBooth script, combined with peft's k-bit training preparation.
- Diffusers welcomes FLUX-2
Hugging Face hardMasterFLUX.2 from Black Forest Labs is a new image generation and editing model, not a drop-in replacement for Flux.1. It uses a single Mistral Small 3.1 text encoder that stacks intermediate-layer outputs, bias-free DiT layers, shared AdaLayerNorm-Zero modulation, and fully parallel single-stream blocks with SwiGLU MLPs, shifting to 8 double-stream and 48 single-stream blocks in the 32B model. Running it unmodified needs over 80GB of VRAM. Diffusers code covers CPU offload (~62GB), Flash Attention 3, NF4 4-bit quantization (~20GB), a remote text encoder (18GB), group offloading (8GB VRAM), multi-image references, structured JSON prompting and LoRA fine-tuning.