← Back to Leaderboard
LVchitect

Vchitect/Latte

Latent diffusion Transformer for training and generating video

View on GitHub ↗
LLM TrainerQuickstart ↓
Engineering Health (Methodology)
B · 55/100
Maintenance Activity
● Updated 3mo ago
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption17/25
Release Cadence6/20
License Clarity20/20
CLIGPULocal AI
Total Stars
★ 1,950
24h Growth
+0
7d Growth
+0
Forks
190

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Vchitect/Latte Star History (2023-10-27 - 2026-12-03) ALL-TIME STAR HISTORY (2023-10 – 2026-12) +1.9k in 1133d · avg +2/day 2.1k 1k 0 2023-10-27: ★ 12024-01-06: ★ 62024-03-16: ★ 9242024-05-25: ★ 1,3012024-08-03: ★ 1,5132024-10-12: ★ 1,6182024-12-21: ★ 1,7002025-03-01: ★ 1,7492025-05-10: ★ 1,7902025-07-19: ★ 1,8212025-09-27: ★ 1,8492025-12-06: ★ 1,8672026-02-14: ★ 1,8972026-04-25: ★ 1,9212026-07-04: ★ 1,9352026-09-12: ★ 1,9432026-12-03: ★ 1,950 ★ 1.9k 2023-10 2025-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Latte is a PyTorch research implementation of a latent diffusion Transformer for video. The Transformer denoises in latent space, and the VAE decodes the result into frames. The source tree separates model definitions (models/), diffusion code (diffusion/), data handling (datasets/), and experiment settings (configs/). Sampling lives in sample/; the standard PyTorch and Lightning training entry points sit at the repository root.

For application integration, Diffusers 0.30.0 or later can load Latte-1 through LattePipeline without using the native training entry points. The example replaces pipe.vae with AutoencoderKLTemporalDecoder from the same checkpoint's vae_temporal_decoder subfolder. That is a concrete component-level integration point; the native research workflow instead exposes launch scripts and YAML experiment configurations.

Key Capabilities & Differentiators

Latte-1 supports text-to-video and text-to-image through sample/t2v.sh and sample/t2i.sh. The Diffusers example uses 16 frames for video or one frame for an image; those values are demonstrated settings, not verified limits. The native sampler, sample/sample.py, exposes denoising steps and classifier-free guidance scale. Pretrained dataset checkpoints cover FaceForensics, SkyTimelapse, UCF101, and Taichi-HD, and sample/ffs_ddp.sh provides a distributed FaceForensics sampling example.

The released training entry points cover class-conditional and unconditional models. train_with_img.py adds joint video–image training, and both training paths have Lightning counterparts. The supplied 256×256 FaceForensics configuration is a concrete starting point for reproducing a training run. The text-conditioned checkpoints and inference scripts should not be taken as evidence of an end-to-end text-to-video training recipe. Dataset layout and evaluation procedures are in docs/datasets_evaluation.md.

Trade-offs & Limitations

Latte is most useful when you need control over model sampling, training settings, and dataset-level evaluation. Compared with a hosted video-generation API, it offers direct access to those controls but leaves environment setup, checkpoint management, GPU scheduling, and any serving layer to the adopter. For inference alone, the Diffusers path avoids importing the repository's training workflow. The 256×256 training example is a reproducible starting point, not evidence of output resolution or quality across all checkpoints.

This is a PyTorch video diffusion workload, so size the deployment using the target checkpoint, frame count, resolution, precision, and concurrency rather than a fixed VRAM estimate. Denoising steps also affect runtime. The CPU inference route exists, but the float16 example does not establish compatibility or practical throughput on a given CPU. Apache-2.0 covers repository code; checkpoint and dataset terms need separate review for production use or redistribution.

Hardware & Deployment Guide

Start locally with Conda and environment.yml. Use the Diffusers pipeline for Latte-1 inference or the repository scripts for native sampling. The text-to-video launcher fetches its checkpoints automatically. For a disconnected deployment, stage the necessary dependencies and model components and verify loading without network access. For CPU-only pretrained inference, remove cudatoolkit and pytorch-cuda from the environment file and check precision compatibility independently of the float16 example.

For multi-GPU experiments, launch train.py with torchrun and a YAML config such as configs/ffs/ffs_train.yaml, or submit slurm_scripts/ffs.slurm on a Slurm cluster. The Lightning entry points can detect available GPUs and use distributed training. The project milestones include the PixArt-α-initialized Latte-0 checkpoint in January 2024, Latte-1 in May 2024, and VideoSys support in June 2024. These are checkpoint and integration milestones, not versioned GitHub releases.

Model: A PyTorch latent diffusion Transformer for video, with a temporal VAE decoder option for Latte-1.
Text inference: Latte-1 supports text-to-video and text-to-image via shell launchers or Diffusers 0.30.0+.
Sampling controls: sample/sample.py exposes denoising steps and classifier-free guidance scale; DDP is available for batch sampling.
Training modes: train.py and train_with_img.py support class-conditional and unconditional training, with parallel Lightning entry points.
Research checkpoints: Pretrained weights cover FaceForensics, SkyTimelapse, UCF101, and Taichi-HD.
Cluster workflow: YAML configurations drive torchrun or Slurm jobs, including a 256×256 FaceForensics training example.
Best For

Researchers reproducing checkpoint baselines, testing joint video–image training, or integrating local Latte-1 inference into a Python workflow.

Skip If

You need a managed generation endpoint, a verified CPU throughput target, or a turnkey text-to-video training recipe.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIGPULocal AI
git clone https://github.com/Vchitect/Latte
cd Latte

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Vchitect/Latte.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Vchitect/Latte Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about Latte

How do I integrate Latte-1 into an existing Python inference pipeline?

Use Diffusers 0.30.0 or later and load maxin-cn/Latte-1 with LattePipeline.from_pretrained. The example uses video_length=16 for video and video_length=1 for images. To use the temporal VAE decoder, load AutoencoderKLTemporalDecoder from the checkpoint's vae_temporal_decoder subfolder and assign it to pipe.vae.

How much VRAM should I budget, and can I run without CUDA?

There is no verified minimum VRAM figure. Profile the exact checkpoint, frame count, resolution, precision, and concurrency you plan to use. The CPU setup for pretrained inference removes cudatoolkit and pytorch-cuda from environment.yml, but the CUDA-oriented float16 example should not be treated as a validated CPU configuration. Check dtype compatibility and measure runtime on the target host.

Can I use Latte commercially in a self-hosted deployment?

The repository code is Apache-2.0 and may be used commercially subject to that license, including applicable notice requirements on redistribution. Separately verify the terms for each model checkpoint and dataset you intend to use. For a self-hosted deployment, provision approved weights and dependencies ahead of time rather than relying on first-run downloads.

When is Latte a better fit than a managed video generator or an inference-only setup?

Use Latte for controlled experiments with supplied checkpoints, class-conditional or unconditional training, or joint video–image training. If you only need to generate clips and do not plan to maintain a model runtime, a managed service is a better operational fit. If you already deploy through Diffusers and only need Latte-1 inference, the pipeline is a smaller integration surface than the repository's training stack.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Vchitect/Latte? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Vchitect/Latte on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare