Skip to content

Studio: show newly downloaded quants of a loaded GGUF in the model picker - #15233

Merged
shimmyshimmer merged 5 commits into
mainfrom
studio-loaded-quant-list
Oct 26, 2026
Merged

shimmyshimmer merged 5 commits into
mainfrom
studio-loaded-quant-list

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Studio: show newly downloaded quants of a loaded GGUF in the model picker

Problem

Load a GGUF model, then download another quant of the same repo: the new quant does not show up in the chat model picker until the model is ejected.

On the Recommended tab a loaded model moves into a "Loaded" row at the top and its curated row is hidden. That loaded row only re-selected the running quant on click and never opened a quant list, so the repo's other quants (including ones downloaded after the load) had no row to appear in. Ejecting brought the curated row back, which is why they seemed to appear only after an unload.

Fix

A loaded hub GGUF row now opens the same quant list as the curated row it replaces (sizes, fit, downloaded and loaded markers, settings and delete actions). Picking a quant from it loads that quant as before. Local-path GGUFs and non-GGUF loaded rows keep their old click-to-select behavior.

On Device chevron

An On Device GGUF row that holds several quants now shows a chevron in the section headings' chevron column (right when closed, down when open, the same glyph and size), so it reads as expandable. Its whole right gutter toggles the list on click, so the chevron is not a dead spot; the row itself keeps the keyboard. A repo with a single quant keeps its one-click row with the quant chip and no chevron, and no chevron is drawn while that check is still running, so a row never shows one and then drops it.

Verification

  • npm run typecheck, npm test (13,941 pass, 0 fail), npm run build.
  • On Device with Nemotron (two quants) and orpheus (one quant): only Nemotron draws the chevron; its centre matches the heading chevron's x to the pixel, and clicking it opens and then closes the quant list.
  • New regression test in loaded-gguf-quant-marker.test.ts; the expander counts in on-device-dot-and-header-alignment.test.ts go up by one for the new list.
  • Isolated Studio on CPU with NVIDIA-Nemotron-3.5-Bolt-E4B-GGUF loaded at UD-Q2_K_XL and UD-IQ2_M downloaded afterwards: on main, clicking the loaded row shows no quants; with this change it opens the quant list with UD-Q2_K_XL marked loaded and UD-IQ2_M marked downloaded.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T11:34:44.412347Z 365a2ad Manual request
🔒 Security Review ✅ Completed 2026-10-25T09:16:56.369918Z dc87858 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: dc87858726

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: dc87858726

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 25, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: a1136985a4

ℹ️ 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".

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 25, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 365a2ad326

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member

Repo tests (CPU, studio) has one failure from this PR. The other seven come from main: the skip-guard one is fixed by #15270, and the six ORPO tokenizer ones clear once #15262 lands.

tests/studio/test_model_picker_contracts.py:3146: in test_a_multi_quant_parent_row_still_has_no_gear
E   AssertionError: the multi-quant parent row lost the spacer that stands in for a gear

It passes on main. The renderDownloadedGgufRow change in pickers.tsx drops the aria-hidden="true" spacer the parent row uses in place of the gear button, so the row's columns no longer line up with the single-quant rows. Either keep that spacer, or update the contract if the new layout aligns another way.

The (Python 3.13, g-r) red here is the Vulkan def-order guard fixed by #15261, plus a one-off test_startup_deadline_counts_engine_silence[False] timing failure that passes on main. Both should clear on a re-run against current main.

@shimmyshimmer
shimmyshimmer merged commit 2563513 into main Oct 26, 2026
36 of 39 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-loaded-quant-list branch October 26, 2026 02:52
danielhanchen added a commit that referenced this pull request Oct 26, 2026
…ugh its aliases (#15319)

## Problem

`Repo tests (CPU, studio)` is red on main since #15233, so every PR
based on it fails the same check (for example #15306 and #15307):

```
tests/studio/test_model_picker_contracts.py::test_a_multi_quant_parent_row_still_has_no_gear
E   AssertionError: the multi-quant parent row lost the spacer that stands in for a gear
```

#15233 replaced the empty gutter spacer on an On Device multi-quant
parent row with a chevron in the same column, wrapped in
`ROW_ACTIONS_PINNED_CLASS`, which is `cn(ROW_ACTIONS_CLASS,
"opacity-100")`. The guard only accepted the literal name
`ROW_ACTIONS_CLASS`, so it read the renamed reference as a missing
gutter. Bisected locally: the test passes at 61cfbaa and fails from
2563513 (#15233) onwards.

## Product or test

The product is fine. What the guard protects is that the parent row has
no gear, because `playwright_model_config.py` finds gears by their
accessible name (`Inference settings for ...`) and reads "no gear" as
"this row expands". The new chevron is an `aria-hidden` button with no
label, so the driver still sees no gear. The test was too literal.

## Fix

- The gutter is matched through `ROW_ACTIONS_CLASS` and every constant
whose definition is built from it, read from `pickers.tsx` itself, so a
future alias does not reopen this. A new test checks that reader (it
finds at least one alias on main, and ignores a `ROW_ACTIONS_*` constant
that does not build on the gutter class).
- The check now reads the expandable branch of the parent row. Before,
the partial-repo branch's row-menu gutter also satisfied it, so removing
the gutter from the branch that expands still passed.
- New: that branch must not contain an `aria-label`, since a labelled
control there is what would break the driver's inference.

## Verification

- `tests/studio/test_model_picker_contracts.py`: 202 passed on main's
source (1 failed before this change).
- Sabotage, each run against main's `pickers.tsx` with one edit:
- gutter class removed from the expandable branch: fails (passed with
the old guard)
  - `<ModelLoadSettingsAction />` added to that gutter: fails
- the chevron button given `aria-label="Inference settings for x"`:
fails
- The guard also passes against the pre-#15233 `pickers.tsx`
(61cfbaa).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants