Repository navigation
Description
Git commit
Operating System & Version
Ubuntu 24.04 (Docker, nvidia/cuda:12.8.1-devel-ubuntu24.04 build), NVIDIA driver 595.91.07
GGML backends
CUDA (RTX 3060 12 GB)
Command-line arguments used
sd-server --diffusion-model ltx-2.5-22b-distilled-Q4_K_M.gguf \
--llm gemma4-12b-with-proj-ltx-2.5-Q4_K.gguf \
--vae ltx-2.5-video-vae-conv-bf16.safetensors --audio-vae ltx-2.5-audio-vae-bf16.safetensors \
--params-backend te=disk,diffusion=disk --max-vram 7 --diffusion-fa --vae-tiling --temporal-tiling \
--sigmas 1,0.99375,0.9875,0.98125,0.975,0.909375,0.725,0.421875,0 --steps 8 --cfg-scale 1.0 \
--sampling-method euler -t 1
Request (POST /sdcpp/v1/vid_gen): prompt A LEGO pirate ship being built brick by brick on a wooden table, bricks clicking, seed 11, fps 24, sample_method euler (also tried euler_a), txt_cfg 1.0, custom_sigmas = the distilled schedule above.
Steps to reproduce
Generate the prompt above with LTX-2.5 distilled at different sizes/frame counts (seed 11):
| Size | Frames | Result |
|---|---|---|
| 512×320 | 17 | follows the prompt (LEGO ship being built) |
| 512×320 | 25 | partly (LEGO, but a child dominates the shot) |
| 512×320 | 49 | two people eating, no LEGO |
| 768×512 | 25 | a man talking to the camera, no LEGO |
| 768×512 | 121 | a man playing guitar / a man talking |
What you expected to happen
A LEGO ship at every size, as with the reference implementation.
What actually happened
From about 25 frames on (prompt-dependent; other prompts such as a bar fight or a kitchen still work at 768×512×25) the text conditioning is effectively lost: the output is a generic "talking head" / people clip, and its composition is determined by the seed alone.
Reference comparison: ltx_pipelines.distilled from Lightricks/LTX-2 (e98f6d9), bf16, files from Lightricks/LTX-2.5 (49b093a3), same prompt, no prompt enhancer, A100 80 GB. With --width 1536 --height 1024 --num-frames 25 and --width 1024 --height 640 --num-frames 49 its stage 1 runs on exactly the 768×512×25 and 512×320×49 grids that fail here. Seeds 11, 12, 13: 6/6 follow the prompt (a LEGO ship on a table); CLIP similarity with the prompt 0.28–0.30, versus 0.07–0.13 for the sd.cpp outputs.
Ruled out on the sd.cpp side (same failing outputs):
--max-vram 7vs10(ltxav always runs in 50 segments): identical output- text encoder Q4_K vs Q8_0 vs the original bf16 safetensors: pixel-identical output
- transformer Q4_K_M vs Q8_0 (unsloth/LTX-2.5-GGUF): same composition
eulervseuler_a(eta 1, which the reference uses from 2.5 on): different clip, still no LEGO- without
--diffusion-fa: all frames white (f16 overflow), so not usable as a test
Reading the code side by side with ltx-core, the tokenizer (BOS, left padding to 1024), the per-token RMS + dual aggregate projection, the embeddings connectors with registers, the video RoPE (seconds, causal fix, middle of the patch) and the prompt AdaLN modulation of the text cross-attention look equivalent, so I could not locate the difference.
Logs / error messages / stack trace
No errors; -v shows ltxav text encoder: gemma 4, the prompt split into 16 tokens, ltxav using 50 segments.
Additional context / environment details
Example frames (reference vs sd.cpp) can be attached.
Activity