Repository navigation
advertise a diffusion GGUF pick's base companions in the picker - #8289
mahiatlinux wants to merge 31 commits into
Conversation
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f9b1300be2
ℹ️ 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".
A quant row was sized from the GGUF repo alone, so an unsloth/Qwen-Image-Edit-2511-GGUF BF16 pick advertised 40.87 GB and then fetched 57.73 GB: the base repo's text encoder, VAE, tokenizer and configs were never named. The gap scales the wrong way, and at Q2_K (7.47 GB) the unadvertised companions are more than twice the advertised number. DiffusionDownloadPlanResponse gains companion_bytes, derived by a validator from the entries rather than computed in each planner, so DiffusionBackend, SdCppBackend and VideoBackend cannot disagree and both /images/download-plan and /video/download-plan carry it. Entries carry gguf_bytes so the split is per file: an LTX-2.3 pick reads its VAEs and text projections out of the same unsloth/LTX-2.3-GGUF entry as the checkpoint, and charging that entry to the checkpoint would advertise 3.5 GB of companions as free. ModelSelector takes resolveCompanionBytes through a context, so the eight GgufVariantExpander call sites are untouched. The Images and Video pages supply it from the same plan and Advanced values their staging uses. Chat supplies none and the LLM picker is unchanged. getGgufFit still reads size_bytes: it judges what the denoiser needs resident, and disk bytes would invent OOM rows. Cache-aware, since it rides the entries _stage already drops for a warm repo, so a base on disk leaves the row showing the quant's own size.
Codex was right that a repo's companions are not constant across its quants. h3_text_encoder_filename pairs a -Q2_ transformer with the Q2 Qwen3-VL encoder and every other quant with the Q4 one, sd_cpp_text_encoders_for swaps the FLUX.2-klein 9B encoder for the 4B default, and ltx23_extras_files keys its VAEs and text projections on the checkpoint variant. One sample answer added to every row misreported whichever tier it did not come from, by multiple GB. The picker now sends the filenames it is displaying to a new /images/companion-sizes and /video/companion-sizes, which plan each candidate exactly as the load will run it and answer a filename -> bytes map. Only the first candidate carries the precision check, since that verdict never reads the filename, and the rest run four at a time so an expander resolves in about the time one row would. A candidate whose plan fails is omitted rather than reported as 0, so its row keeps the size it already had. The sd.cpp and video planners now drop repos the cache already serves whole, as the diffusers planner does in _stage. Without it the advertised size charged again for the VAEs and text encoders an earlier quant fetched, and the panel listed assets the user already had. sd.cpp reads its sizes from model_info rather than get_paths_info so one call answers both the sizes and the commit a cache hit has to match.
f9b1300 to
83dacba
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 83dacbafd4
ℹ️ 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".
Three follow-ups from review. _te_prequant_hub_files and _denoiser_prequant_hub_files had info.sha in hand and discarded it, so their repos never reached the shas map and the new cached-repo filter could not drop them: _files_already_cached returns no hits without a revision by design. A pre-cast encoder or pre-quantized denoiser already on disk stayed in the plan, was charged to the row, and was preflighted for space it did not need. Both helpers now record the commit through one _record_plan_sha helper. The picker keyed a stored answer on the filenames alone. Changing precision or memory mode hands it a new resolver but the same rows, so the previous settings' totals kept satisfying the freshness check while the replacement was in flight, and a click could stage tens of GB the row never advertised. The key now carries the resolver identity. Collapsing an expander only suppressed the setState; the request itself ran on. On the 63-quant LTX repo that leaves the backend planning every candidate against the Hub for a listing nobody is waiting for. The effect now aborts, and the signal reaches both companion-sizes routes, matching the variant listing above it.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16d2cc0d31
ℹ️ 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".
Two follow-ups from review. Sizing an expander planned every candidate independently, and each plan listed the checkpoint repo and the base repo again: about 126 model_info calls for the 63 quants of unsloth/LTX-2.3-GGUF, enough to exhaust the Hub rate limit and fail the downloads that follow. The semaphore bounded concurrency, never volume. plan_metadata.shared_plan_metadata scopes one listing per repo to the batch through a context variable, so the planners keep their signatures and a caller that does not opt in still goes to the Hub every time. The first candidate already runs alone, so it warms the listings the rest read. An unreachable Hub does not raise: the planners answer with an empty best-effort plan so the load can still fall back to its own inline pull. The batch recorded that floor as a companion size of 0, which is the endpoint contract inverted, and the row then advertised the GGUF alone for a pick that fetches multi-GB companions inline. Plans now carry sizing_failed, set where each planner swallows the error, and a candidate carrying it is omitted so its row keeps the size it already had.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ad5fdbce4
ℹ️ 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".
Two follow-ups from review, both on last round's work. Aborting the fetch closes the client request and nothing else: FastAPI runs the handler to completion on an ASGI disconnect, so the abort added for the picker stopped no server-side work at all. Both companion-sizes routes now take the Request and the batch checks is_disconnected after the semaphore, where a queued candidate has not started yet. A plan already in flight still finishes; nothing further is scheduled. plan_model_info deliberately left failures uncached so one transient miss could not decide the batch. The cost is that an offline or rate-limiting Hub is retried once per candidate, which is 63 slow failures for an LTX expander instead of a prompt answer. Failures are now remembered and re-raised for the batch: each candidate reports no size, which is what a retry would have reached anyway. Nothing is remembered outside shared_plan_metadata.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 549cb74a40
ℹ️ 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".
Two follow-ups from review. An LTX-2.3 or MiniMax-H3 checkpoint shares one entry with its companions, and the cached-repo filter is all-or-nothing, so a second quant of the same family kept that entry whole for the sake of one missing GGUF and was charged again for the VAEs, connectors and encoder the first quant had already fetched. Retained entries keep their whole file list, which the scoped job key is matched on, but are now sized from _files_missing_from_live_root. That probe is for sizing only: _files_already_cached still decides what to stage and stays all-or-nothing, because a set split across the two roots is complete in neither. A retained entry is pinned to hub_cache_dir(), so the live root is exactly what it will transfer, and any doubt over-advertises. Rows also stayed clickable while the sizing batch ran, showing the GGUF-only number, so a pick made in that window staged the full plan: the advertised versus downloaded gap this change exists to close. useCompanionBytes now reports pending, and a row with no size yet shows an ellipsis and cannot be selected. A downloaded quant costs nothing more and stays clickable throughout.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 033efd4ef9
ℹ️ 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".
…ing share Four follow-ups from review. A row waited on the batch and exempted anything already downloaded. Both were wrong. downloaded covers the checkpoint alone, so a GGUF fetched from the Hub page has its companions missing, and loadOrStage skips the plan entirely for an already-downloaded pick and fetches them inline. The batch can also come back without a given filename, because a candidate the Hub would not size is omitted by contract, and the row then read that absence as zero companions. Both now resolve the same way: a row waits on its own entry in the map, whatever the batch or the cache says. _assert_base_repo_accessible called HfApi().model_info directly, outside the batch cache, so an open base still cost one uncached lookup per row: about 63 redundant probes for an LTX expander. It goes through plan_model_info now, and its verdict is a property of the repo, not the candidate. The diffusers planner kept a partially cached base entry whole and summed every file, so an interrupted pull, or configs another model had already fetched, were advertised as fresh download bytes. It now sizes from _files_missing_from_live_root like the sd.cpp and video planners. The split-root test moves with it: the list stays whole for job adoption, and the bytes are what the pinned load will actually refetch.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ce8d42261
ℹ️ 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".
_run_load pre-downloads the checkpoint before _resolve_checkpoint_path can be reached, so unpinning that one changed nothing on its own, and the LTX-2.3 extras loader had the same gap. Both now reuse the other root. That makes all six video fetch sites agree with the download plan, which drops a repo either root serves whole: without it the picker advertised no transfer after a cache-folder change and the load then pulled the checkpoint or the extras into the live root anyway. Pinned with a test over the sources rather than a behavioural one. The defect has been the same three rounds running, always a call site nobody updated, and only reading every call catches the next one.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4a4445321
ℹ️ 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".
Two follow-ups from review. Candidates plan on worker threads sharing one cache dict, so two racing the same key both passed the membership check. That duplicated the Hub call, and once failures became cacheable the loser's error could land on top of the winner's listing and omit every row that needed it. Each key now has a single producer through a slot the others wait on, with the event set in a finally so a producer that dies cannot strand them. _resolve_checkpoint_path fetched the pre-cast encoder with a bare hf_hub_download, pinned to one root, while the plan drops that repo when either root serves it whole. A checkpoint the picker reported as no transfer was then downloaded again at load. It goes through the shared helper with reuse_other_cache_root now, like every other fetch the filter judges.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 75221d6eab
ℹ️ 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".
_files_already_cached probed the recorded commit alone, so a snapshot fetched under an explicit revision with no refs/main read as cached. Nothing here can open that: every resolver, including the denoiser twin's _cached_in_root, goes through refs/main. The entry was dropped, the picker advertised no transfer, and the load pulled the multi-GB file inline. Both probes must now hit. The pinned one is freshness, since a republished repo leaves refs/main on the superseded blob; the unpinned one is reachability. Fixed here rather than by threading a revision through each fetch, because the mismatch is one rule about what "cached" means and every caller wants the same answer. Erring toward staging costs nothing: hf_hub_download returns the pointer without a transfer.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ef40ce380
ℹ️ 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".
| resolved = DiffusionDownloadPlanResponse(**plan) | ||
| return None if resolved.sizing_failed else resolved.companion_bytes |
There was a problem hiding this comment.
Mark name-guessed LTX plans as incomplete
For an LTX-2.3 GGUF whose repo and filename omit the 2.3/2_3/23b markers, this accepts the video plan as a complete size even though _pick_looks_like_ltx23() classifies it as LTX-2.0 and omits the 2.3 connector, VAE, and vocoder assets. Such renamed checkpoints are supported because the actual loader identifies 2.3 from the GGUF header in is_ltx23_checkpoint(), then downloads those omitted assets inline, so the picker understates the selection by multiple companion files. Inspect the available header while sizing or set sizing_failed when the name heuristic cannot establish the version.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not taking this one. The gap is real but both remedies cost more than it does. Setting sizing_failed when the name cannot establish the version marks every ordinary LTX-2.0 pick unsizable, since 'cannot establish' is the default for any unmarked name, so the common case loses its size to protect a renamed one. Reading the header while sizing means a range request per candidate, which is exactly what _pick_looks_like_ltx23 exists to avoid and what the batch cache work has been removing. The residual is a renamed 2.3 checkpoint understating by its extras, which is the behaviour the plan's own docstring already accepts: under-guessing falls back to the loader pulling them, as it did before this PR. Published unsloth repos carry the marker in every filename.
|
Reviewed this end to end. The shape is right and the derivation holds up: I could not get the three planners to disagree, and the mirror substitution sizes the repo the fetch actually resolves to. Two things I want to change before this goes in, one of them a real regression, plus a coverage gap on the sd.cpp half. I merged 1. An unreachable or rate limited Hub makes every quant row permanently unselectableThis is the one blocker. Real planner, Hub down: Every candidate of that repo answers the same way, so the route replies So on an offline host, or against a Hub that is rate limiting (the 63-quant case The asymmetry is also arbitrary from the user's side: a chunk whose Minimal change I would make, in try {
const answered = await resolve(repoId, chunk, controller.signal);
for (const name of chunk) {
const value = answered?.get(name);
if (typeof value === "number" && Number.isFinite(value)) {
sizes.set(name, value);
}
// Answered is answered. A row with no size falls back to the checkpoint figure it
// showed before any of this, which is what the load will pull from cache anyway;
// leaving it blocked makes an offline or rate-limited Hub unpickable.
blocked.delete(name);
}
} catch {
for (const name of chunk) blocked.delete(name);
}If you would rather keep the block for a single unplannable row inside an otherwise healthy batch, then release only when the whole chunk came back empty. Either is fine by me. What is not fine is the current state, where the picker can be bricked by a 429. I did not push this one, since it reverses a policy you documented deliberately in 2. The sd.cpp planner half has no regression coverageI reverted each fix one at a time and ran the tests that claim to guard it. Every backend fix that has a test is genuinely guarded. The gaps are all on one side.
F7 needs a note, because it is the pattern I have been burned by twice this week. My first revert of it set The four not-caught rows on sd.cpp are the real gap. F16 matters more than it looks now that finding 1 is on the table: F3 I am not worried about. The diffusion checkpoint entry is always a single file, so 3. The frontend tests assert source text, not behaviourAll nine tests in I understand why: the test runner is 4. On the three specific things I set out to checkThe derivation. It cannot be overridden. One note to save someone a bad afternoon later: this only works because Nothing mutates The Cached companions. Correct, and it is the part I most expected to find broken. Gated-base mirror substitution. Right. One residual, a question rather than a finding: the sizes for that entry still come from the vendor listing, 5. Test runsOn my merge of All 5 failures and all 15 errors are pre-existing and unrelated. I checked out The suites this PR actually touches, on the merged tree: Frontend: 6. What I pushedThe merge of Fixed in Your base also predated #8281 and #8304, so the merge takes the One heads up: |
|
Follow-up, and it changes what I would do with this PR. Please read this before spending time on the conflicts. The PR is unmergeable right now, and no CI can run at allZero check runs on the head. A Why it went dirty: #8036 landed, and it ships this feature
That PR is 4331 insertions across 32 files, and its second bullet is the problem this PR exists to fix:
class DiffusionDownloadPlanResponse(BaseModel):
entries: List[DiffusionDownloadPlanEntry] = ...
total_bytes: int = Field(0, description = "Sum of the remaining download entries, 0 when ready or unknown")
required_bytes: int = Field(0, description = "Full declared footprint of every file the load requires, including cached files")
checkpoint_bytes: int = Field(0, description = "Declared size of the selected checkpoint within required_bytes")
const totalBytes = checkpointBytes + companionBytes;
...
{formatBytes(checkpointBytes)} model + {formatBytes(companionBytes)} required assetswith The 43 conflict hunks across 12 files are not merge noise, they are two implementations of one feature meeting. I checked the pieces I thought might still be unique to this PR, and most of them are not:
What does look genuinely unique to this PR:
What I would doI would not resolve these conflicts. Reconciling two independent 2000-line implementations of the same feature through a 43-hunk merge is how both end up half-applied, and the merge would also have to decide between two rewrites of My suggestion is to branch fresh off current Either way it is your call and I am happy with either. I just did not want you to resolve 43 hunks first and find out afterwards. Everything in my previous comment still holds as a measurement of this branch's own logic, but note the numbers there were taken against Sorry for the collision. Two PRs converging on the same picker row in the same week is on us for not spotting the overlap earlier, not on you. |
The picker skipped companion sizing for a local GGUF path. Only the checkpoint is on disk: the base branch in download_plan is independent of whether repo_id is local, so a local pick whose family resolves a remote base still stages its text encoder and VAE. The row showed the checkpoint alone, and because a local pick also reads as downloaded, loadOrStage went straight to the load and fetched those companions inline. The existing local-path test pins _resolve_base_repo to the local directory, so it never covered this. Added one for the local checkpoint with a remote base.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3b74fdd466
ℹ️ 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".
_h3_te_quant_hub_files listed the hosted quantized conditioner without handing its commit back, and both cache probes need one, so a 27 GB artifact already on disk was retained and charged. The generic encoder and denoiser helpers were given shas_out earlier and this one was missed each time. It also goes through plan_model_info now, so an expander stops re-listing that repo once per candidate.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 43d09b9d25
ℹ️ 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".
| h3_te_repo, h3_te_files = self._h3_te_quant_hub_files( | ||
| self._h3_te_quant_scheme_verified(fam, text_encoder_quant, base, hf_token), api | ||
| self._h3_te_quant_scheme_verified(fam, text_encoder_quant, base, hf_token), | ||
| api, | ||
| shas, |
There was a problem hiding this comment.
Reuse the fallback cache in the H3 conditioner loader
When Studio's cache folder changes and the hosted MiniMax-H3 conditioner exists only in the import-time cache root, recording its SHA here lets _drop_cached_entries omit the roughly 27 GB artifact, and _fetch_h3_te_quant successfully finds that fallback copy. However, the subsequent load_h3_quantized_text_encoder call in video_minimax_h3_te.py:338-340 resolves the artifact again with cache_dir but without reuse_other_cache_root=True, so it downloads the file into the live root despite the plan advertising no transfer (or fails offline and falls back to the omitted dense encoder). Make the actual conditioner loader reuse the other cache root as well.
Useful? React with 👍 / 👎.
| const companionQueryFilenames = useMemo( | ||
| () => (displayVariants ?? []).map((variant) => variant.filename), | ||
| [displayVariants], |
There was a problem hiding this comment.
Size collapsed single-quant rows before enabling them
When On Device has exactly one cached GGUF and “Show all quantizations” is off, renderDownloadedGgufRow returns renderSoleQuantGgufRow instead of mounting this expander, so this new companion query never runs. That row still displays only variant.size_bytes at pickers.tsx:3655-3659 and marks the pick downloaded; if the GGUF was obtained without its diffusion/video base, clicking it bypasses the download plan and fetches the missing multi-GB companions inline. Apply companion sizing to the collapsed sole-quant row too, or keep it expanded until its full size is known.
Useful? React with 👍 / 👎.
| repo, files, shas.get(repo) | ||
| ).issuperset(files): | ||
| continue | ||
| missing = DiffusionBackend._files_missing_from_live_root(repo, files, shas.get(repo)) |
There was a problem hiding this comment.
Count fallback-root hits for per-file H3 assets
When MiniMax-H3's two component files are split across the live and import-time cache roots, this calculation charges every file absent from the live root even though _run_load_h3_native resolves each requested file independently with reuse_other_cache_root=True at video.py:1175-1184. No bytes transfer in that case, but the plan advertises the fallback-root VAE as a new multi-GB download and can fail the disk preflight unnecessarily. For native H3 entries, calculate missing files across both roots rather than applying the live-root snapshot rule used by diffusers bases.
Useful? React with 👍 / 👎.
|
superseded by merged #8036 |
Closes #8234.
The bug
A quant row is sized from the GGUF repo alone. The base repo the load cannot run without is never
named, so the number the user agrees to and the number that lands on disk differ by the whole text
encoder.
unsloth/Qwen-Image-Edit-2511-GGUF, BF16:The gap scales the wrong way. At
Q2_K(7.47 GB) the unadvertised companions are more than twicethe advertised number, so the rows also compare wrongly against each other.
The total was already computed, one call before any byte moves:
loadOrStagefetches/images/download-planat pick time and hands its entries straight to the download manager. It wassimply never shown.
What changes
companion_byteson the plan response, derived.DiffusionDownloadPlanResponsegains theshare of
total_bytesthat is not the picked checkpoint. Amodel_validatorderives it from theentries rather than each planner computing its own, so the three that build this shape
(
DiffusionBackend,SdCppBackend,VideoBackend) cannot disagree, and a carried value can neverdrift from the rows the Downloads panel lists. Both
/images/download-planand/video/download-planreturn this model, so one field covers both pages and no new route appears.Counted per file, not per repo. Entries carry
gguf_bytes: of an entry'sbytes, the pickedcheckpoint's own share. They differ whenever companions live in the picked repo, which is not
hypothetical: an LTX-2.3 pick reads its VAEs and text projections out of the same
unsloth/LTX-2.3-GGUFentry as the checkpoint (LTX23_EXTRAS_REPO), and charging that whole entryto the checkpoint would advertise 3.5 GB of companions as free.
The row adds it.
ModelSelectortakes an optionalresolveCompanionBytes, provided through acontext so the eight
GgufVariantExpandercall sites are untouched. The Images and Video pagessupply it, built from the same plan and the same Advanced values their staging uses, so a row and
the Downloads panel report one number. Chat supplies none, the hook answers 0, and the LLM picker
is byte-identical. A local path stages nothing, so it is not asked.
The memory verdict does not move.
getGgufFitstill readsv.size_bytes. It judges what thedenoiser needs resident, and folding a text encoder's disk bytes into it would mark quants OOM that
run fine.
Result
Cache-aware, because it rides the entries and
_stagealready drops a repo the cache serves whole.A base on disk yields
companion_bytes == 0and the row falls back to the quant's own size, whichis what the panel would fetch.
Note on #8232
On current
mainthe BF16 row above reads ~98.6 GB rather than 57.73 GB, because a GGUF pick stillstages the dense
transformer/. That is honest: it is whatmaindownloads today. #8232 fixes thatseparately and the figure drops to 57.73 GB with no change here.
Tests
The companion assertion went into the existing partial-cache and LTX-2.3 plan tests rather than
cloning their fixtures. Added one plan test for the per-file split, one route test that the derived
field survives the response, and one picker test that the row includes companions while the fit
badge does not.
video-download-plan-payload.test.tsis re-anchored onloadOrStage. It sliced from the firstgetVideoDownloadPlanin the file, which is now the picker's sizing call, so it would have assertedabout a call that stages nothing.
724 backend tests pass (diffusion, video, sd.cpp, both route modules, gated-base, compat-preflight),
ruff clean, frontend typecheck and full unit suite pass. No GPU paths are touched, so nothing was
skipped for hardware.