LTX-2.5 22B Alpha-Gen — fp8, LoRA fused
A single-file build of the LTX-2.5 22B distilled transformer with the IC-LoRA Alpha-Gen 0.9 fused in and the large Linear layers stored as fp8. It is made for alpha matting from a reference video, as used by the LTX Alpha matting model in the Sammie-Roto 2 panda fork (lukaszomasta/Sammie-Roto-Panda).
It saves you building this yourself, which needs about 65 GB of gated downloads (bf16 transformer, LoRA and the Gemma 4 text encoder), about 32 GB of RAM and two build steps.
Not an official Lightricks release. It is a modified Derivative of LTX-2.x, distributed under the LTX-2.x Community License. Organizations with annual revenue of USD 10M or more need a paid license from Lightricks.
Files
| File | Size | What it is |
|---|---|---|
ltx-2.5-22b-distilled-alpha-gen-0.9-fp8-fused.safetensors | 21.9 GiB | Transformer with the Alpha-Gen LoRA fused in, fp8 Linears |
empty_prompt_embeddings.safetensors | 12 MB | The empty text prompt, pre-encoded, so the 24 GiB Gemma 4 text encoder is never needed |
LICENSE-2_x | The LTX-2.x Community License Agreement, with Attachment A | |
tools/ | The scripts that built both files, to reproduce or audit them | |
SHA256SUMS | Checksums: sha256sum -c SHA256SUMS |
You also need ltx-2.5-video-vae-bf16.safetensors and ltx-2.5-audio-vae-bf16.safetensors from Lightricks/LTX-2.5. They are not modified, so they are not mirrored here.
Modifications (LTX-2.x Community License, Section 3.3)
These files were changed from Lightricks' originals as follows:
- Transformer. Built from
ltx-2.5-22b-distilled-transformer-bf16.safetensorsandltx-2.5-22b-ic-lora-alpha-gen-0.9.safetensorswithtools/build_ltx_fp8_fused.py:- All 480 LoRA deltas,
(B × 1.0) @ A, were added to the base weights in fp32. - The 2,592 weights and biases that LTX-2's own
fp8_castpolicy converts at load time (transformer_blocks.*to_q,to_k,to_v,to_out.0,ff.net.0.proj,ff.net.2) are stored asfloat8_e4m3fn(a plain cast, no scales). No value exceeded the fp8 range. - Every other tensor, every key name and the original checkpoint metadata (model config and license) are unchanged. The build is recorded in the
ltx_alpha_fusedmetadata key.
- All 480 LoRA deltas,
- Embedding.
empty_prompt_embeddings.safetensorsis the output of LTX-2.5's prompt encoder (gemma4-12b-with-proj-ltx-2.5-bf16.safetensorsplus the transformer's embeddings connector) for the empty prompt"". It was made withtools/encode_ltx_empty_prompt.py. - Code. Built with LTX-2 at commit
be6d6d0(v1.4.2 + 2 commits).
Quality
Measured against the unfused bf16 transformer + LoRA (with LTX-2's runtime fp8 cast), on a 25-frame clip at 576p:
- Mean absolute matte difference: 0.5–0.7 / 255; 99th percentile: 7–8 / 255.
- Soft edge pixels: 2.7 / 255 on average.
- Frame-to-frame stability, including across batch crossfades: unchanged.
Rounding happens once instead of twice: at runtime LTX-2 fp8-casts first, then fuses the LoRA and rounds again.
Use
With Sammie-Roto (panda fork). Put both .safetensors files and the two VAEs in checkpoints/ltx_alpha/, then choose LTX Alpha on the Matting tab. Sammie finds the fused file automatically.
With LTX-2 directly. Load it as the transformer with no LoRAs and the fp8-cast quantization policy. The pipeline normally reads the reference downscale factor from the LoRA's metadata; with the LoRA fused in, take it from this file instead:
import json
from safetensors import safe_open
from ltx_core.quantization.fp8_cast import build_policy
from ltx_pipelines.ic_lora import ICLoraPipeline
from ltx_pipelines.utils.model_paths import ModelPaths
transformer = "ltx-2.5-22b-distilled-alpha-gen-0.9-fp8-fused.safetensors"
pipeline = ICLoraPipeline(
model_paths=ModelPaths.from_split(
transformer_path=transformer,
video_vae_path="ltx-2.5-video-vae-bf16.safetensors",
audio_vae_path="ltx-2.5-audio-vae-bf16.safetensors",
),
spatial_upsampler_path="",
loras=[],
device="cuda",
quantization=build_policy(transformer),
)
with safe_open(transformer, framework="pt") as f:
record = json.loads(f.metadata()["ltx_alpha_fused"])
pipeline.reference_downscale_factor = int(record["lora_reference_downscale_factor"])
The constructor still builds Gemma's prompt encoder. To avoid that, replace it with one that returns the cached embedding, as sammie/ltx_alpha.py in the Sammie fork does. Run with prompt="" and skip_stage_2=True; stage 1 renders at half the requested height and width.
Hardware. Tested on an RTX 4060 8 GB with 62 GB RAM (transformer streamed from RAM; 5.1 GiB VRAM peak at 992×576, 49 frames). GPUs with 30 GiB or more can keep the whole model on the GPU.
License
The files in this repository other than tools/ are a Derivative of LTX-2.x and are distributed exclusively under the LTX-2.x Community License Agreement. Section 4 and Attachment A apply in full to anyone who uses or redistributes them, including all use restrictions and acceptable-use policies. If you pass these files on, you must include the license and these notices. Organizations with annual revenue of USD 10M or more must obtain a paid commercial license from Lightricks before any use other than a Non-Commercial Purpose.
The embedding is the output of the Gemma 4-based text encoder that Lightricks distributes with LTX-2.5 (gemma4-12b-with-proj-ltx-2.5), so it is covered by the LTX-2.x license above. Gemma 4 itself is released under the Apache 2.0 license, which places no restrictions on outputs.
The scripts in tools/ are part of the Sammie-Roto fork and are licensed under GPL-3.0.
LTX-2 and LTX-2.5 are by Lightricks. The Alpha-Gen IC-LoRA is by Lightricks. This repository is not affiliated with or endorsed by Lightricks.