Skip to content

Studio Hub: distinguish cached diffusion assets from an incomplete base-model download (#10696) - #10709

Closed
Souravrajvi0 wants to merge 5 commits into
unslothai:mainfrom
Souravrajvi0:feat/companion-prefetch-inventory-cd29
Closed

Souravrajvi0 wants to merge 5 commits into
unslothai:mainfrom
Souravrajvi0:feat/companion-prefetch-inventory-cd29

Conversation

@Souravrajvi0

Copy link
Copy Markdown
Contributor

Fixes #10696

When a quantized diffusion GGUF prefetches VAE and text-encoder weights from its base pipeline repository without downloading the denoiser, Studio Hub no longer labels that base repo as a partial download with Continue.

Changes

  • Split download incompleteness from companion prefetch in cached model inventory
  • Add companion_prefetch and cached_components fields on cached model rows
  • Keep load safety unchanged: capabilities still block standalone pipeline load
  • Hub UI shows Cached assets with component details and an explicit Download action instead of Partial / Continue
  • Truly interrupted downloads still use the existing partial-download state

Validation

  • Backend: test_cached_models_scan_marks_a_companion_only_pipeline_partial
  • Frontend: tests/companion-prefetch-inventory.test.ts

…slothai#10696)

When a quantized diffusion GGUF caches VAE and text-encoder weights from
its base pipeline repo without the denoiser, inventory now exposes
companion_prefetch and cached_components instead of marking the row partial.
Load safety is preserved via capabilities while the Hub UI shows Cached
assets with an explicit Download action rather than Partial / Continue.

@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: 44d6c99ab6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

pre-commit-ci Bot and others added 2 commits September 10, 2026 09:24
Propagate cached-assets state into Discover rows, let live downloads
supersede companion-prefetch cache rows, exclude missing-payload snapshots
from companion-prefetch classification, and prefer runnable local copies
over cached companion assets during inventory resolution.
@danielhanchen

Copy link
Copy Markdown
Member

Confirmed the companion-only prefetch path in studio/backend/hub/services/models/cache_inventory.py still folds a missing denoiser into partial, and that your change keeps standalone pipeline load blocked. Will get this reviewed.

Souravrajvi0 and others added 2 commits September 10, 2026 16:13
Resolve conflicts with comment-volume PRs on main while keeping the
companion-prefetch inventory split (companion_prefetch/cached_components
fields and load_blocked semantics unchanged).
@danielhanchen

Copy link
Copy Markdown
Member

Thank you for the PR and for the careful write-up! This has been superseded by #11644, which fixed #10696 and was merged on 2026-09-26.

#11644 takes the same approach: partial stays true so a denoiser-less pipeline still cannot be loaded, and a new companion_prefetch flag tells the Hub that a base repo only holds the text encoder / VAE a GGUF borrowed. The On Device list and detail pane no longer show Partial / Continue for those rows, the card offers a plain Download of the full model, and a genuinely interrupted download keeps Partial / Continue. It also excludes these rows from the Discover grid's on-device and partial counts.

The only part of this PR not on main is the cached_components list and the "Cached assets" label naming each component. If you would like that, a small follow-up PR on top of current main would be welcome. Closing this one since the branch now conflicts with the merged fix.

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.

Studio Hub: distinguish cached diffusion assets from an incomplete base-model download

2 participants