Raminy/LTX-2.5
LTX-2.5 · distilled two-stage · diffusers
LTX-2.5 distilled, run end to end through upstream `diffusers` (merged in PR #14447; this Space pins the merge commit). The recipe follows the code snippets on `Lightricks/LTX-2.5-Diffusers`, which are the source of truth for this demo.
What it runs
The recipe
Two-stage distilled generation, exactly as on the model card:
- Stage 1 —
LTX2Pipelineat half the target resolution, 8 steps onDISTILLED_SIGMA_VALUES, unguided,output_type="latent". - Upsample —
LTX2LatentUpsamplePipeline, ×2 spatial, no temporal. - Stage 2 — 3 steps on
STAGE_2_DISTILLED_SIGMA_VALUES, seeded from the upsampled video latent and the stage-1 audio latent atnoise_scale = STAGE_2_DISTILLED_SIGMA_VALUES[0]; size taken from the latents. - Decode — conv VAE (tiled) by default, or
LTX2VideoDiffusionDecodePipeline(denormalize=False)plus a by-handaudio_vae+vocoderaudio finish.
Unguided throughout (guidance_scale = audio_guidance_scale = 1.0): distillation folds guidance into the weights. One torch.Generator threads through both stages so stage 2 continues the noise stream. Image conditioning is center-cropped to the target aspect (smaller side 832) and re-compressed by the pipeline's built-in image_crf (18 for LTX-2.5). Auto length uses the merged num_frames=None + max_seconds duration-head API, capped at 15 s for ZeroGPU quota reasons.
