Repository navigation
Studio: keep LTX-2.5's bf16 text encoder on an unset request - #14737
Conversation
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.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Problem
#14000 flipped an unset LTX-2.5
text_encoder_quantfrom the bf16 Gemma 4 encoder to int8 ConvRot (video_ltx25.pyltx25_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-FP8does not haveLTX-2.5-text_encoder-INT8-ConvRot.safetensors(checked today, repo head7b40724f). So every unset load:Change
autorequest on LTX-2.5 resolves to bf16 again.text_encoder_quant=int8still picks int8 (hosted file when it resolves, else quantized at load).UNSLOTH_LTX25_TE_INT8=1makes an unset request int8, as before Studio: video families default to a hosted quantized text encoder #14000.=0keeps bf16, so anyone who set the Studio: video families default to a hosted quantized text encoder #14000 kill switch is unaffected.none/offand Speed=Off are unchanged. Other video families are not touched.Tests
test_video_ltx25_te_int8.py::test_te_quant_tristate,::test_budget_prices_the_int8_encodertest_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_filetest_video_te_quant_default.py::test_ltx25_budgets_the_dense_peak_unless_the_hosted_encoder_appliestest_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.pyand the three LTX-2.5 encoder files (884 tests, CPU).Not covered