Repository navigation
Studio: disclose required assets before media downloads - #12387
Conversation
Resolve conflicts with unslothai#12370: keep main's combined model plus required assets size in the Hub and pickers, route the GGUF card's disclosure through mediaPage, and drop the picker-only missing-assets status.
The backend contract is that a load falls back to its own inline download when the plan is unavailable (offline, older backend, Hub hiccup). Refusing the load there blocked already-downloaded image, video and TTS models offline. Download-only picks still report the failure.
… plan fallback Use calc(...*var(--ui-space-scale,1)) for the dialog's fixed lengths, update the video plan-bypass test to the pipeline-only predicate, and add source tests that keep the offline plan-failure fallback on the images, video and audio pages.
Resolve conflicts with unslothai#10150: keep its load snapshot (family override) passed to the non-hub load, with this PR's pipeline-only bypass.
|
Review record for #12387, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#314. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
Read confirmAssets through a ref so stage keeps its empty dependency list, which the staged-download contracts in test_model_picker_contracts.py pin.
…irmed Confirming the missing-files dialog on a load pick now stages the files and loads the model, as before this change, instead of leaving the user to pick it again. The "will not load" note stays on the Hub download dialog only. The image cancel/retry Playwright test accepts the disclosure and asserts it appeared.
Asking inside the shared staged-download queue raised the modal whenever a queued plan reached the front, minutes after the pick, and stalled the Images download queue (playwright_image_download_queue.py). The media pages already show the full model plus required-files size on each picker row and list required assets in the Downloads panel with cancel, so they go back to main's staging and the dialog stays on the Hub Download button, the path that started a GGUF without its required files.
Problem
A media GGUF download advertises only the checkpoint size, then loading can silently download several more GB of required files. Expanding a local quant can also change its displayed size after dependency metadata arrives. After accepting the new asset flow, the Hub must keep showing progress for the complete operation.
Changes
Validation
npm run typecheck).Draft scope / follow-ups
This uses the existing image/video and native-audio planners; it is not universal dependency handling for chat/vision GGUFs or training. The repository-only audio planner is deliberately not used for Hub GGUF selections. Some local pipeline load paths remain unchanged. Backend dependency selection, shared-asset deletion, and memory requirements are unchanged.
Queued asset rows still identify their source repository as “Required assets”; clearer component labels are a possible follow-up. Mock pages, local fixtures, screenshots, packaging work, and desktop binaries are excluded from this PR.
Before / after
Model Hub,
unsloth/Qwen-Image-2512-GGUF(BF16), clicking Download. BEFORE (merge basea76ac47c8): the 41 GB transfer starts at once. AFTER (1e5fcaa49): the disclosure dialog shows 40.9 GB model files plus 4.9 GB required files (decoder and configuration 253.8 MB, text encoder 4.7 GB), 45.8 GB in total, and Cancel starts nothing.