Skip to content

Unsloth Studio / Desktop: show a cached image GGUF as Partial until Run has its text encoder and VAE - #12557

Merged
danielhanchen merged 7 commits into
unslothai:mainfrom
LeoBorcherding:fix/11637-companion-status
Oct 8, 2026
Merged

danielhanchen merged 7 commits into
unslothai:mainfrom
LeoBorcherding:fix/11637-companion-status

Conversation

@LeoBorcherding

@LeoBorcherding LeoBorcherding commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #11637.

#12370 made the Hub show the full download size for image GGUFs, but once the GGUF itself is cached the quant still reads On device. Run then fetches ~19 GB more for Qwen-Image-2.1, labelled only "Required assets" in the download manager.

Fix

  • The Hub quant row and the selected quant show Partial while Run would still download companions, with the size in the tooltip ("Model on device. 18.9 GB of required assets download on Run"). The GGUF still counts as cached for delete, pin and options.
  • Download manager rows name companion jobs with the existing assetLabel ("Encoder & decoder", "Text encoder"), falling back to "Required assets".

Tests

  • hub-media-download-footprint.test.ts: Partial while companions are pending, On device once they're cached or when there's no plan.
  • required-assets.test.ts: label for a diffusers layout, an unknown file set, and an old job with no file list.
  • Full frontend suite: 9981 pass (macOS, M5).

Screenshots

Hub model inspector for unsloth/FLUX.2-klein-4B-GGUF with only flux-2-klein-4b-Q2_K.gguf cached and the black-forest-labs/FLUX.2-klein-4B text encoder and VAE not on disk. Before = merge base 6a25e67, after = 53c27f8, two separate Studio installs on one cache.

Selected quant: "On device" becomes "Partial", with the companion size Run still has to download in the tooltip.

Selected quant, before vs after

Quant menu row: same change on the cached Q2_K row; the uncached BF16 row is untouched.

Quant menu row, before vs after

Downloading the quant with "Include required files" from the same card, then reading the tag without leaving the page. Before = the PR as first submitted (42fea5d), which kept the companion size it planned before the download; after = head (2f2a097), which re-plans when the downloads finish.

Download with required files, same card

Paired Studio UI regression on staging (merge base 6a25e67 vs head 2f2a097), auth, settings, model picker and route crawl journeys plus the Desktop app: no functional regression on ubuntu-latest (46 steps identical), macos-15 (39 identical) or windows-latest (40 identical). The remaining pixel diffs are page-load timing in the Desktop leg and a recipe left by an earlier journey on one macOS side, none on a surface this PR changes.

…on disk

A Qwen-Image-2.1 GGUF read as On device once the GGUF landed, then Run
fetched ~19 GB more under a bare "Required assets" label (unslothai#11637).

- Hub rows and the selected quant show Partial, with the companion size
  in the tooltip, while Run would still download companions.
- The download manager names companion jobs (Text encoder, Encoder &
  decoder) through the existing assetLabel, falling back to
  "Required assets".
@danielhanchen

Copy link
Copy Markdown
Member

Four reds on head 42fea5d1; two are this PR's and two came from main and are fixed there now.

This PR (both from the download panel's "Required assets" wording this PR changes):

  • Repo tests (CPU, studio): tests/studio/test_model_picker_contracts.py::test_staged_downloads_use_one_actionable_download_surface asserts '"Model file" : "Required assets"' is in the download manager source.
  • Chat UI Tests (extra): tests/studio/playwright_image_download_cancel_retry.py:497 asserts "Required assets" in panel_text and the panel no longer shows it.

If the new wording is intended, both checks need updating to it in this PR; if not, the panel lost a label it is expected to show.

Main (this run was queued before the fixes merged): test_studio_evaluated_unions_do_not_grow is fixed by #12556 and Frontend build + bundle sanity (over the startup budget) by #12560. A push after rebasing on main clears those.

@danielhanchen

Copy link
Copy Markdown
Member

Review record for #12557, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#535.

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 fb7c4e76f8 (this PR's 53c27f8f0)

chatgpt-codex-connector[bot] (on the mirror)

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: fb7c4e76f8

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror fb7c4e76f8 (this PR's 53c27f8f0).

This is the review as it stood at that commit. Anything pushed to this PR afterwards was not part of it.

@danielhanchen

Copy link
Copy Markdown
Member

Following up on the four reds from 42fea5d1:

Also on the branch: 3779025 re-plans companions when the inventory changes, so the Partial tag clears once the companions finish downloading from the same card instead of staying stale until a remount.

danielhanchen added a commit to Imagineer99/unsloth that referenced this pull request Oct 8, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 8, 2026
danielhanchen added a commit to Imagineer99/unsloth that referenced this pull request Oct 8, 2026
danielhanchen added a commit to Imagineer99/unsloth that referenced this pull request Oct 8, 2026
@danielhanchen
danielhanchen marked this pull request as ready for review October 8, 2026 10:38
@danielhanchen
danielhanchen self-requested a review as a code owner October 8, 2026 10:38
@danielhanchen
danielhanchen merged commit 8e2ab33 into unslothai:main Oct 8, 2026
danielhanchen added a commit that referenced this pull request Oct 8, 2026
…labels, add only the remaining-bytes size and the one-time note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Unsloth Studio / Desktop: Qwen-Image-2.1 shows as downloaded after the GGUF, then Run pulls another ~19 GB labelled only "Required assets"

2 participants