MCPcopy Create free account
hub / github.com/NVlabs/LongLive

github.com/NVlabs/LongLive @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,140 symbols 4,183 edges 161 files ⚖ Apache-2.0 433 documented · 38% ● updated 5d ago★ 2,9471 open issues

Browse by type

⨍ Functions 963◇ Types & classes 175↳ Endpoints 2
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LongLive LongLive

LongLive Family

Agentic, Robotic, Transferable, Infra-native, Interactive Long Video Gen

Paper: Agentic LongLive Paper: Long-WAM Paper: LongLive-Plug Paper: LongLive 2.0 Paper: LongLive 1.0

Demo: Agentic LongLive Demo: Long-WAM Demo: LongLive-Plug Demo: LongLive 2.0 Demo: LongLive 1.0

Projects

Agentic LongLive overview video — watch on YouTube Agentic LongLive Asynchronous agentic memory for long video generation. Keep people, objects and places consistent over long interactive stories and robot videos, with an LLM memory agent running beside a real-time generator. Paper · Code · Project page · Video
Long-WAM overview video — watch on YouTube Long-WAM Long-context world-action models. Train and evaluate robot policies, generate robot videos, or deploy on YAM, Franka and Unitree G1. Paper · Code · Project page · Video
LongLive-Plug overview video — watch on YouTube LongLive-Plug Once-for-all distillation for video generation. Distill a capability once on a base model and reuse it across downstream models, without retraining. Paper · Code · Project page · Video
LongLive 2.0 overview video — watch on YouTube LongLive 2.0 An NVFP4 parallel infrastructure for long video generation. Train or serve long-video models fast, with NVFP4 quantization and sequence parallelism. Paper · Code · Project page · Video
LongLive 1.0 overview video — watch on YouTube LongLive 1.0 Real-time interactive long video generation. Type prompts and watch a long video appear in real time, steered as you go. Paper · Code · Project page · Video

Click a thumbnail to watch the overview video on YouTube.

Download one project

Each project is self-contained. Download only the project you need using partial clone and sparse checkout; the example below selects Long-WAM.

git clone --filter=blob:none --sparse --single-branch --branch main --depth 1 https://github.com/NVlabs/LongLive.git
cd LongLive
git sparse-checkout set Long-WAM
cd Long-WAM

For another project, replace Long-WAM in the last two commands with Agentic-LongLive, LongLive-Plug, LongLive2.0 or LongLive1.0. Only the selected project and shared root files are downloaded; no other project is required to run it, except that Agentic LongLive runs its LongLive-2.0 generator from LongLive2.0/ (git sparse-checkout set Agentic-LongLive LongLive2.0).

News

  • 🔥 [2026.11.25] The Agentic LongLive paper is available on arXiv and Hugging Face Papers.
  • 🔥 [2026.11.24] We release Agentic LongLive: an asynchronous LLM memory agent for real-time long video generation, with the full system on LongLive-2.0 and MiniMax-H3 generators, the LongStory-Online benchmark, robot-video memory and RL training of the memory planner. → Agentic-LongLive/ · Project page
  • 🔥 [2026.10.08] The Long-WAM paper is available on arXiv.
  • 🔥 [2026.10.07] We release Long-WAM: long-context world-action models, robot-video pretraining, benchmark training/evaluation and real-robot deployment demos. → Long-WAM/ · Project page
  • 🔥 [2026.09.28] We release LongLive-Plug training and inference code with four recipes covering CFG and few-step distillation. → LongLive-Plug/
  • 🔥 [2026.07.08] LongLive 2.0 supports FP8 inference. Please refer to here.

Earlier news

  • 🔥 [2026.06.01] We released LongLive-RAG, a general retrieval-augmented framework for long video gen.
  • 🔥 [2026.05.30] LongLive 2.0 now supports I2V AR teacher-forcing training and I2V DMD distillation for Wan2.2-TI2V-5B.
  • ⚡ [2026.05.25] We optimized the NVFP4 inference path with fused Triton RoPE/adaLN kernels, reduced KV-cache synchronization overhead, in-place quantized KV-cache updates, faster FP4 KV dequantization, pinned VAE transfers, and safer LoRA-before-quantization setup, improving overall throughput by 18.6%.
  • 🔥 [2026.05.13] We release LongLive 2.0, infra with NVFP4, parallelism and multi-shot for AR training, DMD distillation, and inference (⚡45.7 FPS).
  • 🔥 [2026.04.12] LongLive supports kv cache compression with TriAttention, with 50% KV reduction and no quality drop. Check it here
  • 🎉 [2026.01.27] LongLive is accepted by ICLR-2026.
  • 🔥 [2026.01.11] LongLive supports adapting LongLive's original RoPE into KV-cache relative RoPE and generates infinite long videos!
  • 🔥 [2025.11.03] We implement LongLive on linear attention model SANA-Video! Now SANA-Video can generate 60s interactive videos in real-time.
  • 🔥 [2025.09.29] We release Paper, this GitHub repo LongLive with all training and inference code, the model weight LongLive-1.3B, and demo page Website.

Agentic LongLive — Asynchronous Agentic Memory for Long Video Generation

A real-time video generator with a memory agent, running in parallel. A memory agent on its own GPUs reads the prompts as they arrive, keeps text and images for every person, object and place, and writes memory pictures into the generator's attention sink before each shot, so the video never waits. A small planner trained with RL decides what to remember.

⏱️ 14 min+

stories that keep the same people and image quality; LongLive-2.0 alone loses identity after 2 min

🎯 ≈0 drift

image quality, last minute vs. first: +0.002, vs. −0.089 for LongLive-2.0 alone

⚡ 34.3 FPS

full system on one 8×B200 node (BF16), 1.43× faster than real time

👍 98.8%

user votes for our persistent state vs. LongLive-2.0's built-in memory
  • Results: on LongStory-Online (25 stories, 857 shots, about 150 minutes of video) it raises LongLive-2.0's persistent-state accuracy by 26.3 points, identity by 44.9 and revisit consistency by 40.4.
  • No drift over long stories: LongLive-2.0 alone forgets the protagonist after about two minutes and its image quality decays over the story. With the agent, identity and image quality stay flat through 14-minute stories.
  • Memory costs almost nothing: the agent runs on its own GPUs and adds about 1% generation time (H100). LongLive-H3 with the agent also streams in real time (34.7 FPS, 1.45×, optimized kernels).
  • Generators: LongLive-2.0, LongLive-H3 and FastH3-Omni; robot videos with screenshot memory.
  • Release: full system with documented ablation switches, LongStory-Online benchmark and judge, RL training.
Live story (FastH3-Omni) Robot video: generator alone vs. with our agent
Agentic LongLive story Agentic LongLive robot

Checkpoints

The full system runs on public generators, LongLive-2.0-5B and FastH3-Omni (a few-step distillation of MiniMax-H3 released by FastVideo), and on open agent models (Qwen3.6-35B-A3B, FLUX.2-klein-4B). See checkpoints.

Model Use
LongLive-2.0-5B Real-time AR generator of the main LongStory-Online results
FastH3-Omni Few-step MiniMax-H3 generator with audio, used for the live demos
LongLive-H3 Few-step chunked-AR MiniMax-H3 generator used with the agent
Agentic-LongLive-Planner-Qwen3-8B (coming soon) RL memory planner (Qwen3-8B + GRPO LoRA, merged)

→ Paper · Code and quick start · Checkpoints · Project page

Long-WAM — Scaling the Context of World-Action Models

Long-context robot policies with streaming visual memory, built on LongLive 2.0 Robot video pretraining.

  • Benchmarks: LIBERO, RoboTwin 2.0, Domino, RoboCasa GR1 and RoboCasa365.
  • Inference: streaming IDM/COD, configurable Agentic API and image-to-video demos.
  • Deployment: RTX 5090, DGX Spark and AGX Thor runtime profiles; YAM, Franka and Unitree G1 interfaces.
Generated robot video YAM long-horizon task Unitree G1 cup stacking
Generated robot video YAM robot demo Unitree G1 robot demo

Checkpoin

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 620
Function 343
Class 174
Route 2
Enum 1

Languages

Python95%
C++5%

Modules by API surface

wan_5b/modules/vae2_2.py53 symbols
wan_5b/distributed/sp_training.py45 symbols
utils/dataset.py42 symbols
wan_5b/modules/vae2_1.py39 symbols
wan_5b/modules/t5.py37 symbols
wan_5b/modules/model.py32 symbols
wan_5b/modules/causal_model.py32 symbols
utils/quant.py27 symbols
wan_5b/modules/causal_model_sp_ulysses.py26 symbols
fouroversix/src/fouroversix/csrc/include/utils.h25 symbols
wan_5b/utils/fm_solvers.py22 symbols
utils/wan_5b_wrapper.py20 symbols

For agents

$ claude mcp add LongLive \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page