Skip to content

Studio: seed LTX-2.5 fp8 / int8 loads from hosted pre-quantized DiTs - #13516

Merged
danielhanchen merged 2 commits into
mainfrom
studio-ltx25-prequant
Oct 13, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
studio-ltx25-prequant

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

LTX-2.5 fp8 and int8 loads on the Diffusers pack (Lightricks/LTX-2.5-Diffusers) now take the DiT from the hosted unsloth/LTX-2.5-FP8 instead of quantizing the 38 GB bf16 transformer at load, the same way Qwen-Image-2.1 and LTX-2.3 do.

  • fp8 resolves LTX-2.5-FP8.safetensors (19.1 GB).
  • int8 resolves LTX-2.5-INT8-ConvRot.safetensors (25.1 GB, block-Hadamard rotation at group 256, recorded in the file's metadata), or LTX-2.5-INT8.safetensors with UNSLOTH_DIFFUSION_INT8_CONVROT=0. ltx-2.5 joins the families whose int8 runs ConvRot by default. Quantizing at load stays plain int8.
  • Only pack loads seed a hosted DiT; the pack's transformer/ is the distilled DiT the files were built from (revision da0b690960026eab794b8ceaf841233cf7064478). Single-file loads are unchanged.
  • If the repo cannot be reached, the load quantizes at load as before.
  • Catalog: the existing LTX-2.5 group gains the unsloth/LTX-2.5-FP8 alias and the DiT parameter count, and on a host that runs a dense quant the pack row reads "Fast FP8", as the image rows do.

Accuracy

Same-seed comparison against the bf16 DiT, T2V and I2V, seeds 42 and 7, 1280x704, 121 frames, 8 + 3 steps:

File LPIPS mean / max PSNR mean / min
INT8-ConvRot 0.265 / 0.449 20.2 / 16.8 dB
FP8 0.366 / 0.518 17.6 / 11.6 dB
INT8 0.385 / 0.632 17.4 / 13.9 dB

For scale, the bf16 compiled-vs-eager difference on LTX-2.5 is already LPIPS 0.38 (the euler-ancestral two-stage recipe amplifies bf16 rounding), so every file sits at or below that floor, and ConvRot is clearly below it. The hosted FP8 and INT8 files render bit-identical clips to quantizing at load, so they add no error over the existing path.

Testing

  • New tests/test_video_ltx25_prequant.py: 29 passed on this branch, 11 of them fail on main.
  • tests/test_video*.py, tests/test_diffusion_prequant*.py, tests/test_diffusion_transformer_quant*.py (CUDA hidden): 2694 passed, 96 skipped, 0 failed.
  • npm run catalog:check: all assertions passed.
  • Real Hub load, no local mirror, B200 capped to 48 GiB: the int8 load fetched LTX-2.5-INT8-ConvRot.safetensors from the repo, logged "fingerprint verified (480 of 480 quantized weights)", "installed convrot_hadamard_v1 on 480 linears at group 256" and "skipping the runtime quantise", and rendered the default 121-frame T2V clip (41.6 GB card peak).
  • Load time with warm caches: bf16 17.8 to 18.8 s, hosted FP8 17.5 to 23.0 s, INT8-ConvRot 18.1 to 19.9 s, so the gain is the download (19.1 or 25.1 GB instead of 38.0 GB) and the skipped bf16 staging, not load speed. Server VRAM after load / peak while rendering: bf16 43.9 / 51.7 GiB, fp8 26.3 / 34.0 GiB, int8 31.9 / 39.7 GiB.

Not covered: GPUs other than B200, torchao versions other than 0.18, and offloaded plans other than the 48 GiB cap above.

LTX-2.5 fp8 and int8 loads on the Diffusers pack (Lightricks/LTX-2.5-Diffusers) now take the DiT from
unsloth/LTX-2.5-FP8 instead of quantizing the 38 GB bf16 transformer at load:

- fp8 resolves LTX-2.5-FP8.safetensors.
- int8 resolves LTX-2.5-INT8-ConvRot.safetensors (block-Hadamard rotation, group 256, recorded in the
  file's metadata), or LTX-2.5-INT8.safetensors with UNSLOTH_DIFFUSION_INT8_CONVROT=0. Quantizing at
  load stays plain int8: LTX-2.5 has no runtime ConvRot spec.
- Keyed on the pack only (prequant_variant_repos). The single-file release, local folders and forks
  never seed it, and the loader refuses the files for any other base.
- The plan prices the hosted DiT at its file size (fp8 19.06 GB, int8 25.11 GB).
- Video catalog: an "LTX-2.5" group for the pack, shown as "LTX-2.5 (Fast FP8)" on hosts that run the
  dense quant, aliased to the prequant repo id.

The repo is not published yet. Until it is, the Hub listing 404s, the plan keeps the dense
transformer shards, and the load quantizes at load exactly as before.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T03:03:48.943423Z 53626d9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 53626d925e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit df55fc4 into main Oct 13, 2026
@danielhanchen
danielhanchen deleted the studio-ltx25-prequant branch October 13, 2026 03:05
danielhanchen added a commit that referenced this pull request Oct 13, 2026
#13520 and #13516 merged files that are not a fixed point of the
ruff-format-with-kwargs hook, so tests/test_formatter_fixed_point.py
fails on main and in every PR's Repo tests (CPU, rest). Output of
scripts/run_ruff_format.py only; no code changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant