LTX-2.5 是一个开放权重的基础世界模型,专为本地运行和微调而设计。其成熟的应用场景是:根据文本、图像和视频输入,生成同步、高保真的视频与音频;同时,它在机器人技术和物理 AI 等新兴领域的适用性也正在持续开发中。
完全掌控、随心定制 — 在您自己的基础设施上自主部署。没有按次生成的计费,没有按席位绑定的锁定,也没有强制性的 API 依赖。营收统计覆盖整个实体,包括受共同控制的子公司和关联公司。完整且具有约束力的条款请参阅 LICENSE。
LTX-2.5 以拆分式、Comfy 对齐套件的形式发布(每个组件对应一个 .safetensors 文件),而非单一整体文件。请将各 CLI 参数 / 加载器指向下方对应文件。
| 文件 | 说明 |
|---|---|
diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors | 蒸馏 DiT(bf16)。固定 8 步调度,CFG=1。 |
diffusion_models/ltx-2.5-22b-dev-transformer-bf16.safetensors | 完整 / 可训练 DiT(bf16)。 |
diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors | 蒸馏 DiT(Comfy int8 + convrot)。仅限 ComfyUI — 不适用于 ltx-pipelines / PyTorch。 |
diffusion_models/ltx-2.5-22b-dev-transformer-comfy-int8-convrot.safetensors | 完整 DiT(Comfy int8 + convrot)。仅限 ComfyUI — 不适用于 ltx-pipelines / PyTorch。 |
diffusion_models/ltx-2.5-22b-distilled-transformer-nvfp4.safetensors | 蒸馏 DiT(NVFP4)。适用于 ComfyUI,或搭配 --quantization nvfp4-prequant 参数用于 ltx-pipelines(Blackwell / ltx-kernels)。 |
| 文件 | 说明 |
|---|---|
text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors | Gemma4 文本编码器 + 投影层(bf16) |
text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors | 相同的文本编码器,Comfy int8 版本 — 仅限 ComfyUI |
vae/ltx-2.5-video-vae-bf16.safetensors | DiffVAE — 画质更优,但计算量更大 |
vae/ltx-2.5-video-vae-conv-bf16.safetensors | 卷积 VAE — 速度更快,内存占用更低 |
vae/ltx-2.5-audio-vae-bf16.safetensors | 音频 VAE + 声码器 |
loras/ltx-2.5-22b-distilled-lora-450-bf16.safetensors | 蒸馏 LoRA(用于 dev-transformer 工作流) |
model_patches/ltx-2.5-duration-head-bf16.safetensors | 省略 --num-frames 参数时自动推断时长 |
latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors | 2 倍空间超分模型,多阶段流水线必需 |
latent_upscale_models/ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors | 2 倍时间超分模型 |
无需本地安装,直接在 API Playground 中体验 LTX-2.5。
ltx-pipelines)本仓库中的权重为拆分格式(与 Comfy 对齐):每个组件对应一个 safetensors 文件。LTX-2 的 ltx-pipelines 包通过 --transformer-path、--text-encoder-path 等参数加载这些文件。
git clone https://github.com/Lightricks/LTX-2.git
cd LTX-2
uv sync
source .venv/bin/activatePython >= 3.12,CUDA >= 12.7,建议使用 PyTorch ~= 2.7。有关注意力后端和可选扩展,请参阅 仓库 README。
hf auth login
# LTX-2.5 distilled split pack
hf download Lightricks/LTX-2.5 \
diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors \
text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors \
vae/ltx-2.5-video-vae-bf16.safetensors \
vae/ltx-2.5-audio-vae-bf16.safetensors \
model_patches/ltx-2.5-duration-head-bf16.safetensors \
latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors \
--local-dir models/ltx-2.5uv 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 \
--duration-head-path models/ltx-2.5/model_patches/ltx-2.5-duration-head-bf16.safetensors \
--spatial-upsampler-path models/ltx-2.5/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors \
--prompt "A golden retriever running through a sunny meadow, cinematic lighting" \
--seed 42 \
--output-path output_distilled.mp4省略 --num-frames 参数,让时长预测头根据提示词自动选择合适的视频长度(LTX-2.5 及以上版本)。也可以手动设置,例如 --num-frames 121(需满足 frames % 8 == 1)。宽度和高度必须能被 32 整除。
添加一个或多个 --image PATH FRAME_IDX STRENGTH 参数(帧索引 0 表示首帧条件约束):
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 \
--duration-head-path models/ltx-2.5/model_patches/ltx-2.5-duration-head-bf16.safetensors \
--spatial-upsampler-path models/ltx-2.5/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors \
--image path/to/first_frame.jpg 0 1.0 \
--prompt "The camera slowly dollies out as wind moves through the grass" \
--seed 42 \
--output-path output_i2v.mp4# Downcast bf16 transformer on the fly + CPU offload
...existing flags... \
--quantization fp8-cast \
--offload cpu使用 ltx-pipelines 加载 bf16 检查点。*-comfy-int8-convrot.safetensors 文件仅适用于 ComfyUI,不会被此 PyTorch 路径加载。
from ltx_pipelines.distilled import DistilledPipeline
from ltx_pipelines.utils.model_paths import ModelPaths
model_paths = ModelPaths.from_split(
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",
duration_head_path="models/ltx-2.5/model_patches/ltx-2.5-duration-head-bf16.safetensors",
)
pipe = DistilledPipeline(
model_paths=model_paths,
spatial_upsampler_path="models/ltx-2.5/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
)
# See packages/ltx-pipelines for __call__ args (prompt, seed, num_frames, images, ...).uv run python -m ltx_pipelines.distilled --help完整文档:ltx-pipelines 安装指南。
官方 LTX-2.5 工作流模板已随 ComfyUI 一同提供。完整说明请参阅:ComfyUI 集成。
兼容 Diffusers 的模型包位于 Lightricks/LTX-2.5-Diffusers —— 模型本身完全相同,仅采用了更贴合 Diffusers 生态的封装形式。
目前 diffusers 正式版尚未包含对 LTX-2.5 的支持,请从 main 分支安装:
pip install git+https://github.com/huggingface/diffusersimport torch
from diffusers import LTX2ImageToVideoPipeline, LTX2LatentUpsamplePipeline
from diffusers.pipelines.ltx2.latent_upsampler import LTX2LatentUpsamplerModel
from diffusers.pipelines.ltx2.utils import (
DEFAULT_NEGATIVE_PROMPT,
DISTILLED_SIGMA_VALUES,
STAGE_2_DISTILLED_SIGMA_VALUES,
)
from diffusers.utils import encode_video, load_image
MODEL_ID = "Lightricks/LTX-2.5-Diffusers"
# Stage 1 resolution; stage 2 runs at 2x this.
HEIGHT, WIDTH, NUM_FRAMES, FRAME_RATE = 544, 960, 121, 24.0
pipe = LTX2ImageToVideoPipeline.from_pretrained(MODEL_ID, dtype=torch.bfloat16)
pipe.enable_model_cpu_offload()
pipe.vae.enable_tiling() # stage 2 decodes at 2x
latent_upsampler = LTX2LatentUpsamplerModel.from_pretrained(
MODEL_ID, subfolder="latent_upsampler", dtype=torch.bfloat16
).to("cuda")
upsample_pipe = LTX2LatentUpsamplePipeline(vae=pipe.vae, latent_upsampler=latent_upsampler)
generator = torch.Generator("cuda").manual_seed(42)
shared = dict(
image=load_image("path/to/first_frame.jpg"),
prompt="The camera slowly dollies out as wind moves through the grass",
negative_prompt=DEFAULT_NEGATIVE_PROMPT,
frame_rate=FRAME_RATE,
guidance_scale=1.0,
audio_guidance_scale=1.0,
stg_scale=0.0,
audio_stg_scale=0.0,
modality_scale=1.0,
audio_modality_scale=1.0,
generator=generator,
return_dict=False,
)
stage_1_latents, audio_latents = pipe(
height=HEIGHT, width=WIDTH, num_frames=NUM_FRAMES,
sigmas=DISTILLED_SIGMA_VALUES, output_type="latent", **shared,
)
upsampled_latents = upsample_pipe(
latents=stage_1_latents, output_type="latent", return_dict=False
)[0]
# Stage 2 takes its size from the upsampled latents, so pass no height/width.
video, audio = pipe(
num_frames=NUM_FRAMES,
sigmas=STAGE_2_DISTILLED_SIGMA_VALUES,
latents=upsampled_latents,
audio_latents=audio_latents,
noise_scale=STAGE_2_DISTILLED_SIGMA_VALUES[0],
output_type="np",
**shared,
)
encode_video(
video[0],
fps=int(FRAME_RATE),
output_path="output_i2v_two_stage.mp4",
audio=audio[0].float().cpu(),
audio_sample_rate=pipe.vocoder.config.output_sampling_rate,
)num_frames % 8 == 1(1、9、17、…、121、…)结构清晰、细节丰富的提示词能显著提升生成效果。如需了解多镜头提示词及完整指南,请参阅 如何为 LTX-2 编写提示词。
dev 版 transformer 支持完全训练。您可以使用 LTX-2 Trainer 复现已发布的 LoRA 和 IC-LoRA。
根据我们的测试,绝大多数在 LTX-2.3 上训练的 LoRA 和 IC-LoRA 均可在 LTX-2.5 上直接使用,无需任何修改。但也有少量例外情况——请在生产环境使用前务必验证您的适配器。
@article{hacohen2025ltx2,
title={LTX-2: Efficient Joint Audio-Visual Foundation Model},
author={HaCohen, Yoav and Brazowski, Benny and Chiprut, Nisan and Bitterman, Yaki and Kvochko, Andrew and Berkowitz, Avishai and Shalem, Daniel and Lifschitz, Daphna and Moshe, Dudu and Porat, Eitan and Richardson, Eitan and Guy Shiran and Itay Chachy and Jonathan Chetboun and Michael Finkelson and Michael Kupchick and Nir Zabari and Nitzan Guetta and Noa Kotler and Ofir Bibi and Ori Gordon and Poriya Panet and Roi Benita and Shahar Armon and Victor Kulikov and Yaron Inger and Yonatan Shiftan and Zeev Melumian and Zeev Farbman},
journal={arXiv preprint arXiv:2601.03233},
year={2026}
}