Skip to content

Studio: keep LTX-2.5's bf16 text encoder on an unset request - #14737

Merged
danielhanchen merged 3 commits into
mainfrom
fix/ltx25-te-default-bf16
Oct 25, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
fix/ltx25-te-default-bf16

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

#14000 flipped an unset LTX-2.5 text_encoder_quant from the bf16 Gemma 4 encoder to int8 ConvRot (video_ltx25.py ltx25_te_quant_scheme). Before that the code kept int8 opt-in on purpose: "LPIPS 0.310 vs bf16, above the 0.256 compile floor". The PR's own re-measurement is 0.270 mean / 0.484 max, still above that floor, and no quality gate was added for the new default.

The Studio UI sends nothing for "auto", so this is the default path for every LTX-2.5 load. It also does not get the claimed download or load saving yet: unsloth/LTX-2.5-FP8 does not have LTX-2.5-text_encoder-INT8-ConvRot.safetensors (checked today, repo head 7b40724f). So every unset load:

  • tries to fetch the missing file in the plan, and again in the encoder worker;
  • reads the full 23.9 GB dense encoder anyway;
  • quantizes it at load and runs int8.

Change

Tests

  • test_video_ltx25_te_int8.py::test_te_quant_tristate, ::test_budget_prices_the_int8_encoder
  • test_video_ltx25_te_hosted.py::test_unset_request_keeps_the_dense_encoder, ::test_int8_request_resolves_to_the_hosted_file, ::test_the_video_planner_stages_the_hosted_file
  • test_video_te_quant_default.py::test_ltx25_budgets_the_dense_peak_unless_the_hosted_encoder_applies
  • test_video_backend.py::test_plan_is_unchanged_when_no_text_encoder_quant_is_requested (it now prices LTX-2.5 at the bf16 table like every other family)

Against main, 5 of the updated tests fail and the explicit-int8 test passes. On this branch all of them pass. Also passing on this branch: test_video_ltx25.py, test_video_ltx25_prequant.py, test_video_unsloth_mirrors.py, test_diffusion_te_prequant.py, test_video_backend.py and the three LTX-2.5 encoder files (884 tests, CPU).

Not covered

The int8 ConvRot Gemma 4 encoder measured LPIPS 0.270 mean / 0.484 max
against bf16, above the 0.256 compile floor the code used to keep it
opt-in. Its hosted file is not published, so every unset load also read
the dense encoder, quantized it at load and probed the Hub for the
missing file. An unset request now keeps bf16 again; text_encoder_quant
int8 and UNSLOTH_LTX25_TE_INT8=1 still pick int8, none / off still pin
bf16.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-25T06:03:03.386758Z d7a8b40 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. Keep it up!

Reviewed commit: 4f8c10e57a

ℹ️ 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

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: d7a8b40701

ℹ️ 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 3422056 into main Oct 25, 2026
29 of 41 checks passed
@danielhanchen
danielhanchen deleted the fix/ltx25-te-default-bf16 branch October 25, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant