Repository navigation
Studio: count companion assets in the Hub download size of image and video GGUFs - #12370
Conversation
|
Reached Codex review convergence at oobabooga#322. |
…ownloads Count only uncached companion files from the download plan's entries instead of required_bytes, which includes companions already in the cache and overstated the transfer by the full companion set (e.g. 24.3 GB shown for a 5.4 GB Run). Plan unkeyed variants (video families, whose companions differ per checkpoint) per file when selected, instead of applying one representative's companions to every row. Show companions on downloaded quants, including next to Run, since Run is what fetches them; partial quants keep their remaining size. Reuse plans for the card's lifetime instead of a five-minute module cache, so returning from Run re-plans, and format the total and its breakdown with one decimal so they add up.
|
Pushed e16b091 on top of the PR.
Checked in Unsloth Studio:
|
…try on older backends A plan flagged plan_failed now rejects, so the per-card plan cache drops it and a later rerun retries instead of keeping the checkpoint-only size until the card is reopened. An older backend omits the per-entry checkpoint flag; fall back to the entry's file list, as the Images and Video pages already do, so the GGUF is not counted as a required asset.
…ckpoint flags Entries keep a stable scoped file list, so a cached GGUF can be listed in an entry whose bytes are only same-repo companions; inferring the checkpoint from that list subtracted the whole model. Backends that predate the flag also predate checkpoint_bytes and required_bytes and cannot attribute bytes at all, so their plans add nothing.
|
Pushed two follow-ups from Codex review:
I declined one suggestion, with the reasons in the thread. When a GGUF is reused from an older snapshot and missing companions share its repo entry, the companion size is understated. That needs the diffusers planner, same-repo companions and a republish all at once, and in the worst case the row shows the plain GGUF size, as main does today. An exact fix needs a backend contract change. Codex review on |
The Hub shows only the GGUF file size for image and video models. Qwen-Image-2.1 Q5_K_M reads 5.4 GB, but Run then fetches about 19 GB of required assets (#11637).
The Images and Video pickers already include these assets through the host's download plan (#8036). This adds the same total to the Hub.
Fix
Screenshots
BEFORE: merge base
adbf205f17. AFTER: this branch. Both served on the same host.Hub quant menu for Qwen-Image-2.1-GGUF:

Selected quant's size tooltip:
Images picker's expanded quant rows:
Tests
Live A/B on Linux in headless Chromium, using the same backend code with GPUs hidden:
Qwen's 19 GB matches the base repo's encoder, VAE and processor. Opening the card sends one plan request. A separate CUDA plan call returned 23.41 GB, including an FP8 encoder and a cached INT8 transformer.
Scope