Skip to content

Studio: LTX-2.5 GGUF quants (unsloth/LTX-2.5-GGUF) - #13573

Merged
danielhanchen merged 10 commits into
mainfrom
studio-ltx25-gguf
Oct 13, 2026
Merged

danielhanchen merged 10 commits into
mainfrom
studio-ltx25-gguf

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Hooks the new unsloth/LTX-2.5-GGUF quants into Studio. That repo has the LTX-2.5 DiT, with its text connectors, as GGUF files from Q2_K to BF16, plus Unsloth Dynamic UD-Q*_K_XL files, for both checkpoints. The layout matches unsloth/LTX-2.3-GGUF: dev files at the root and distilled files under distilled/.

  • Backend. The ltx-2.5 family now points gguf_repo at unsloth/LTX-2.5-GGUF. The VAEs, upsampler and Gemma 4 encoder still come from the pack. The file name picks dev or distilled through the existing ltx25_is_dev, so a dev file gets 30 steps / CFG 3 and a distilled file gets the 8 + 3 two-stage recipe. The message for an unsupported LTX version also names the GGUF repo.
  • Catalog. The GGUF repo is added as a third artifact on the existing LTX-2.5 row, next to the Diffusers pack and the single-file DiT. It carries totalParams (21.0B) so the row keeps its size offline. catalog:check now asserts that the GGUF repo id finds the LTX-2.5 group and never 2.3.
  • Status text. After a GGUF video load, transformer_quant used to say "dense bf16 DiT loaded". It now says a GGUF DiT is loaded and its quantized weights are used as is.

Testing

  • tests/test_video_ltx25_gguf.py (new, 30 tests):

    • routing for every file name in the repo;
    • dev vs distilled defaults from the file name;
    • recognising an LTX-2.5 GGUF header.

    On the base, 2 of these fail (the repo is not wired in); on this branch all pass.

  • New test_video_backend.py assertion for the GGUF status text: fails on base, passes here.

  • npm run catalog:check: all assertions passed. model-catalog and video-model-defaults frontend tests: 28 passed.

  • Every file in the repo was loaded and rendered through VideoBackend, and through ComfyUI's LTX-2.5 template via ComfyUI-GGUF. The BF16 GGUF renders bit-identical to the bf16 safetensors on both.

Picker before / after

unsloth/LTX-2.5-GGUF in the Model Hub picker, main (left) vs this PR (right). The dev checkpoint at the repo root now reads <quant> · dev next to the · distilled rows, so a bare quant no longer reads as the distilled default. A bare repo id now defaults to distilled/ltx-2.5-22b-distilled-UD-Q4_K_XL.gguf (was the root dev UD-Q4_K_XL), matching ComfyUI's distilled LTX-2.5 templates.

LTX-2.5 GGUF picker rows, before and after

- ltx-2.5 family: gguf_repo = unsloth/LTX-2.5-GGUF (dev DiT at the root, distilled under distilled/,
  static and UD-Q*_K_XL quants). Routing already keys off the file name and header, so every planned
  file resolves to ltx-2.5 on the Lightricks/LTX-2.5-Diffusers base with its variant defaults
  (distilled 8 + 3 two-stage at CFG 1, dev 30 steps at CFG 3).
- The unsupported-release message names the GGUF repo beside the pack.
- Model catalog: an LTX-2.5 video group (the bf16 pack plus the GGUF repo), its own group apart from
  2.3; catalog check asserts both directions.
- tests/test_video_ltx25_gguf.py: routing and defaults for all 22 planned names, offline validation on
  the pack base, 2.3 vs 2.5 by file, a synthetic GGUF with the planned header (arch ltxv, bare keys,
  model_version 2.5.0) read as ltx-2.5 even when renamed, picker row keys and default rank.
… of dense bf16

A GGUF video load reported resolved.transformer_quant as 'not engaged (dense bf16 DiT loaded)', although the
DiT runs on the file's own quantized weights. The reason now says so for model_kind gguf; other loads are
unchanged. Test on the existing GGUF status case.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@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 ⚠️ Failed 2026-10-13T14:29:13.458422Z 20f2a03 New commits
ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d32b6817ab

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

),
// DiT + text connectors as GGUF quants (dev at the repo root, distilled under distilled/); the pack stays the
// base for the VAEs, encoder and upsampler. 21.0B is every tensor of the single-file DiT the quants are cut from.
gguf("unsloth/LTX-2.5-GGUF", { totalParams: 21_004_025_600 }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Distinguish the dev GGUF variants from distilled

When this artifact is expanded, it mixes root-level dev files with distilled/ files, but the generic picker presents root variants as bare quant names and marks the root UD-Q4_K_XL as recommended; after selection, the catalog trigger still identifies the group as “LTX 2.5 distilled (GGUF).” A user following the recommendation therefore silently loads the dev checkpoint, which _ltx25_dev_load runs with the 30-step/CFG 3 single-stage recipe instead of the advertised distilled 8+3-stage/CFG 1 recipe. Separate or explicitly label the dev and distilled workflows so experiments do not run a different checkpoint and schedule than the UI reports.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 55ca24e: the root rows of unsloth/LTX-2.5-GGUF now read " · dev" on every listing path (Hub, cache, partial, merged, local folder), and a bare repo id defaults to distilled/ltx-2.5-22b-distilled-UD-Q4_K_XL.gguf on every resolver (dce3815), matching ComfyUI's distilled LTX-2.5 templates.

Comment thread studio/backend/core/inference/video.py Outdated
Comment on lines +7743 to +7744
else "not engaged (GGUF DiT loaded; its quantized weights are used as is)"
if kind == "gguf"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not describe BF16 GGUF weights as quantized

The newly curated repository includes a BF16 GGUF variant, but this branch applies to every GGUF load and reports that its “quantized weights are used as is.” For the BF16 file the DiT is dense bf16, so the resolved precision audit becomes factually incorrect. Base the wording on the selected GGUF quant label, or describe the checkpoint precision generically without claiming all GGUF weights are quantized.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 27d6fdf: the reason now names the loaded file's quant ("GGUF DiT (BF16) loaded; the file's own weights are used as is") instead of calling them quantized, with a BF16 GGUF test beside the Q4_K_M one.

pre-commit-ci Bot and others added 4 commits October 13, 2026 10:26
- ltx-2.5 family: gguf_default_subdir = "distilled". ComfyUI's LTX-2.5 templates and the family
  defaults (8 + 3 two-stage at CFG 1) are the distilled DiT's, so a bare repo id now means
  distilled/ltx-2.5-22b-distilled-UD-Q4_K_XL.gguf. Hub files are unchanged; dev stays selectable
  by its own keys.
- hub.utils.gguf.default_gguf_scope: one rule for which rows a bare id may default to (the repo's
  configured subdirectory when it has rows there, else the root rows, else everything). The
  /gguf-variants default, _match_variant(None, ...), local_model_resolver, the media index and the
  two ModelConfig auto-select paths all go through it, so every surface names the same file.
- LTX-2.3 and every other repo have no subdirectory configured and keep the root default.
- Tests: the bare-id default on every surface for 2.5 (either listing order, dev-only fallback),
  explicit dev variants still resolve to dev, LTX-2.3 and a non-video repo unchanged; source
  checks in test_gguf_variant_rows follow the new spelling.
The GGUF reason said the DiT's "quantized weights are used as is", but unsloth/LTX-2.5-GGUF also
ships a dense BF16 GGUF. The reason now names the loaded file's quant, the same token the status
reports as gguf_variant ("GGUF DiT (Q4_K_M) loaded", "GGUF DiT (BF16) loaded"), without claiming
quantized weights. Test for a BF16 GGUF next to the existing Q4_K_M case.
- unsloth/LTX-2.5-GGUF keeps the dev DiT at the repo root and the distilled DiT under distilled/.
  The distilled rows already read "<quant> · distilled", but the dev rows showed a bare quant, so
  "UD-Q4_K_XL" could pass for the distilled default under the "LTX 2.5 distilled" entry.
- VideoFamily.gguf_root_label ("dev" for ltx-2.5) and hub.utils.gguf.gguf_root_label: every listing
  (Hub, cache snapshot, partial download, merged snapshots, local folder) labels root rows of that
  repo "<quant> · dev". The repo is read from the id or from a models--org--repo path segment, so a
  listed snapshot directory resolves too (the default-subdirectory rule reads the same helper).
- The default and recommended pick is distilled/...UD-Q4_K_XL (previous commit); LTX-2.3 and plain
  repos keep bare root rows.
- Test: dev / distilled labels for every planned quant, 2.3 and an unlisted repo unchanged, and a
  cached snapshot listed by directory.
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 13, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 55ca24e811

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

pre-commit.ci run

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: d46a75c4a3

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

The formatter wraps one pick_best_gguf(_default_variant_candidates(...)) call across lines, so the source
check counts with a regex that allows whitespace inside the call.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65c0a843af

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

Comment on lines +326 to +330
for segment in reversed(re.split(r"[/\\]", text)):
if segment.startswith("models--"):
parts = segment[len("models--") :].split("--", 1)
return "/".join(parts) if len(parts) == 2 and all(parts) else None
return text

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recognize curated GGUF repos copied to local folders

When a user opens a regular local clone such as /models/unsloth/LTX-2.5-GGUF, _repo_id_of returns the entire absolute path rather than the trailing unsloth/LTX-2.5-GGUF; only Hugging Face models--... cache paths are decoded. Consequently default_gguf_subdir and gguf_root_label do not recognize the curated repo, so the local variants endpoint recommends the root dev checkpoint and leaves its row as a bare quant even though the catalog describes this group as distilled. The fresh evidence beyond the earlier fixed comment is that list_local_gguf_variants and the local response path pass these absolute directory strings here, so non-cache local folders still silently select the 30-step dev workflow instead of the distilled default.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 4f3d3f7. default_gguf_subdir and gguf_root_label now also try the trailing org/repo of a plain local path through _repo_id_candidates, so a curated repo copied to an ordinary folder such as /models/unsloth/LTX-2.5-GGUF (or a Windows path) keeps the distilled default and the "· dev" root labels, while HF cache paths still decode from their models--org--repo segment. Unrelated folders and bare names keep the root default. Covered by a test that lists a local clone and checks the default subdirectory, the labels and the unrelated cases.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 4f3d3f7ae7

ℹ️ 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 c35052e into main Oct 13, 2026
@danielhanchen
danielhanchen deleted the studio-ltx25-gguf branch October 13, 2026 14:29
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