Lightricks/LTX-2 là dự án tích hợp AI trên GitHub với 9.1k sao, viết chủ yếu bằng Python. Official Python inference and LoRA trainer package for the LTX-2 audio–video generative model.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
LTX-2 is the first DiT-based audio-video foundation model that contains all core capabilities of modern video generation in one model: synchronized audio and video, high fidelity, multiple performance modes, production-ready outputs, API access, and open access.
🚀 Quick Start
Clone the repo
git clone https://github.com/Lightricks/LTX-2.git
cd LTX-2
Install the dependencies. The natten extra is the fastest backend for the diffusion video VAE below, and is Linux + CUDA only -- on Windows and macOS it is skipped automatically and decoding falls back to a Triton or eager implementation, so the same command works everywhere (see neighborhood attention backends)
That is roughly 66 GiB. The CLI keeps the repository's folder layout under --local-dir, which is why the paths below include diffusion_models/, vae/ and so on.
If you get a 401/403, accept the model terms on Hugging Face and log in with a Read token (fine-grained tokens need the "read gated repos" scope enabled).
Generate
uv run python -m ltx_pipelines.distilled \
--transformer-path models/ltx-2.5/diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors \
--text-encoder-path models/ltx-2.5/text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors \
--video-vae-path models/ltx-2.5/vae/ltx-2.5-video-vae-bf16.safetensors \
--audio-vae-path models/ltx-2.5/vae/ltx-2.5-audio-vae-bf16.safetensors \
--spatial-upsampler-path models/ltx-2.5/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors \
--num-frames 121 \
--seed 42 \
--output-path output.mp4 \
--prompt "A medium close-up shot features a Caucasian man with a beard, wearing a green and white baseball cap without any letters on the front, and a light blue shirt over a white t-shirt. He is positioned in the center of the frame, looking intently directly at the camera, his eyes focused on camera. His facial expression is one of deep concentration, with his brow slightly raised. As he looks straight at the camera, a quick sniff sound is heard, and then he speaks with a deep male voice and a satisfied tone, saying, 'I think it's so good.' The camera remains static throughout, maintaining a shallow depth of field, which keeps the man in sharp focus while the background is softly blurred, showing a beige wall behind him. After a brief pause, another short, audible sniff is heard. The man then continues to speak, his voice maintaining the same quality, as he states, 'So good. So good.' He elaborates further, emphasizing his point with a final statement, 'This got to be, it's got to be the best tool I've ever seen.'"
In cases of GPU memory constraints, consider --quantization fp8-cast --offload {cpu, disk}. See additional flags.
This uses the distilled model and pipeline for fast results. For better quality or other capabilities, see Models and Pipelines.
Full Model List
LTX-2.5 is the recommended model, and what the Quick Start uses. Its weights are published as one file per component, so you download only the parts your pipeline needs.
Download from the LTX-2.5 HuggingFace repository:
Transformer (choose and download one of the following)
ltx-2.5-22b-dev-transformer-bf16.safetensors - Download - the full model; used by the guided two-stage pipelines
ltx-2.5-22b-distilled-transformer-bf16.safetensors - Download - runs in far fewer steps; what DistilledPipeline, ICLoraPipeline and DubItPipeline expect
Text Encoder - Gemma 4 12B, fine-tuned for LTX, with the text projection bundled in; required by every pipeline. It is bundled with the model, so no separate Gemma download is needed. Google's stock Gemma 4 release is not a substitute: loading checks the encoder's version against the one the checkpoint was trained with (gemma4-12b-ltx-v1)
Video VAE (choose and download one of the following)
ltx-2.5-video-vae-bf16.safetensors - Download - diffusion decoder (NADiffusionDecoder); improved quality at the cost of longer decode time and more VRAM. Fastest with the natten extra, and falls back to Triton or eager neighborhood attention without it
ltx-2.5-video-vae-conv-bf16.safetensors - Download - convolutional decoder; lighter and needs no extra dependencies
Audio VAE - required by the pipelines that generate or decode audio
ltx-2.5-audio-vae-bf16.safetensors - Download
Spatial Upscaler - required by the two-stage pipeline implementations in this repository
Distilled LoRA - required by the two-stage pipeline implementations that run the full model in stage 1 (all except DistilledPipeline, ICLoraPipeline and DubItPipeline)
Detailing IC-LoRA - optional; the 2x spatial detailing LoRA for DFRPipeline's refinement stage (--detailing-lora). It lives in its own repository, LTX-2.5-22b-IC-LoRA-Pixel-Spatial-Upscaler
Duration Head - optional; lets you omit --num-frames and have the clip length predicted from the prompt
ltx-2.5-duration-head-bf16.safetensors - Download
Legacy: LTX-2.3
Every pipeline in this repository also runs on LTX-2.3. Its checkpoints are single files bundling
the transformer, VAEs and text projection, with the Gemma 3 text encoder downloaded separately.
Files are not interchangeable between the two models, and a LoRA only works with the model it was
trained on.
See LTX-2.3 models for the full list.
Available Pipelines
DistilledPipeline - Fastest inference with 8 predefined sigmas (recommended)
DFRPipeline - Detail-fidelity rendering: generated keyframes and a spatial detailing pass, with optional temporal 2x/4x refinement
TI2VidTwoStagesPipeline - Production-quality text/image-to-video with 2x upsampling
TI2VidTwoStagesHQPipeline - Same two-stage flow as above but uses the res_2s second-order sampler (fewer steps, better quality)
TI2VidOneStagePipeline - Single-stage generation for quick prototyping
ICLoraPipeline - Video-to-video and image-to-video transformations (uses distilled model.)
KeyframeInterpolationPipeline - Interpolate between keyframe images
A2VidPipelineTwoStage - Audio-to-video generation conditioned on an input audio file
RetakePipeline - Regenerate a specific time region of an existing video
HDRICLoraPipeline - Video-to-video with HDR IC-LoRA output (linear float via LogC3 inverse decode, suitable for EXR export and tonemapping)
DubItPipeline - Dub-It: rephrasing while matching speaker identity and lip movements (distilled model, single IC-LoRA, two stages).
Native HDR / EXR — standard pipelines accept EXR stills and EXR-frame folders with --hdr {SRGB_LINEAR,ACESCG,ACESCCT} and write half EXR frames plus a BT.2020/HLG master. See HDR Support.
⚡ Optimization Tips
Use DistilledPipeline - Fastest inference with only 8 predefined sigmas (8 steps stage 1, 4 steps stage 2)
Enable FP8 quantization - Enables lower memory footprint: --quantization fp8-cast (CLI) or quantization=QuantizationPolicy.fp8_cast() (Python). Fp8-cast should be used with bf16 checkpoints, it shall downcast them on the fly. On Hopper+ GPUs with native FP8 support, use --quantization fp8-scaled-mm for FP8 scaled matrix multiplication. Fp8-scaled-mm should be used with fp8 checkpoints.
Install attention optimizations - On datacenter Blackwell GPUs (B200), install FlashAttention 4 manually: uv pip install 'flash-attn-4==4.0.0b9' (this specific revision is the one we have verified against torch 2.9.1+cu128; newer betas have known issues on consumer Blackwell). On Hopper GPUs, install the FlashAttention 3 wheel. On other CUDA GPUs, PyTorch SDPA is used automatically. An installed backend is selected automatically at runtime; forcing a specific one is a Python-API option (AttentionFunction.FLASH_ATTENTION_3/FLASH_ATTENTION_4), not a CLI flag.
Use gradient estimation - Reduce inference steps from 40 to 20-30 while maintaining quality (see pipeline documentation)
Skip memory cleanup - If you have sufficient VRAM, disable automatic memory cleanup between stages for faster processing
Choose single-stage pipeline - Use TI2VidOneStagePipeline for faster generation when high resolution isn't required
✍️ Prompting for LTX-2
When writing prompts, focus on detailed, chronological descriptions of actions and scenes. Include specific movements, appearances, camera angles, and environmental details - all in a single flowing paragraph. Start directly with the action, and keep descriptions literal and precise. Think like a cinematographer describing a shot list. Keep within 200 words. For best results, build your prompts using this structure:
Start with main action in a single sentence
Add specific details about movements and gestures
Describe character/object appearances precisely
Include background and environment details
Specify camera angles and movements
Describe lighting and colors
Note any changes or sudden events
For additional guidance on writing a prompt please refer to https://ltx.io/blog/prompting-guide-for-ltx-2
Automatic Prompt Enhancement
LTX-2 pipelines support automatic prompt enhancement via an enhance_prompt parameter.
🔌 ComfyUI Integration
To use our model with ComfyUI, please follow the instructions at https://github.com/Lightricks/ComfyUI-LTXVideo/.
📦 Packages
This repository is organized as a monorepo with three main packages:
ltx-core - Core model implementation, inference stack, and utilities
ltx-pipelines - High-level pipeline implementations for text-to-video, image-to-video, and other generation modes
ltx-trainer - Training and fine-tuning tools for LoRA, full fine-tuning, and IC-LoRA
Each package has its own README and documentation. See the Documentation section below.
📚 Documentation
Each package includes comprehensive documentation:
LTX-Core README - Core model implementation, inference stack, and utilities
LTX-Pipelines README - High-level pipeline implementations and usage guides
LTX-Trainer README - Training and fine-tuning documentation with detailed guides
Lightricks/LTX-2 thuộc nhóm AI Tools trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về Lightricks/LTX-2 ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Lightricks/LTX-2 là nguồn chính thức.
Lightricks/LTX-2 có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho Lightricks/LTX-2. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
Lightricks/LTX-2 là gì?
Lightricks/LTX-2 (Lightricks/LTX-2) là dự án Python trên GitHub. Theo mô tả gốc: Official Python inference and LoRA trainer package for the LTX-2 audio–video generative model.
Lightricks/LTX-2 so với các dự án AI Tools khác thế nào?
Lightricks/LTX-2 được TopGit xếp vào nhóm AI Tools, với 9.1k sao GitHub và viết bằng Python. Xem trang chủ đề AI Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao Lightricks/LTX-2 được xếp vào nhóm AI Tools?
TopGit xếp Lightricks/LTX-2 vào nhóm AI Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "generative-ai", "ltx", "ltx-2"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về LTX-2?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về LTX-2.