Repository navigation
Studio: fix the audio model selector's list, labels and search - #13517
Conversation
- Trigger subtitle keeps the " - " space and drops a repeated GGUF suffix - Rows show one param chip for sub-1B models (600.0M is a param token) - Audio pages mark the loaded row and quant from /inference/status - Recommended on audio pages lists only the page's tasks, has no no-op sort, and keeps the fit toggle in the format menu - Search matches what a row shows; audio.cpp folder rows match their folder - Empty search waits for, and reports, the community search - A deleted model is no longer offered as a page's last model - Recent only records models that actually loaded - The bare audio.cpp-gguf repo and its forks are not offered as runnable - The llama.cpp Qwen3-ASR rows carry a llama.cpp tag; no Vision badge on audio - DotTTS-Edit shows on the Edit page; Search Hub keeps the audio task - Audio search placeholder, BF16 casing, no MLX filter off Mac, and footers point at the page the loaded model runs
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…knows the llama.cpp ASR twins
…er shows the audio page's loaded quant
# Conflicts: # studio/frontend/tests/audio-picker-policy.test.ts
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a3caf6f3fb
ℹ️ 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".
| await throwIfNotOk(response); | ||
| discardDeletedModelInventoryHints(repoId, variant); | ||
| bumpInventoryVersion(); | ||
| notifyModelDeleted(repoId); |
There was a problem hiding this comment.
Emit deletion events for local model removals
For a remembered custom-folder/scanned GGUF that is no longer active, deleting its On Device row calls deleteLocalModel (api.ts:456-466), but the new deletion event is emitted only from deleteCachedModel here. Since rememberedModelUnavailable intentionally treats path-based memories as always offerable, the Audio page neither forgets nor hides that deleted path, and selecting it again attempts to load missing files. Emit the accepted-delete event from the local deletion path as well, using the row id/path that was remembered.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing here: local-path rows were never forgotten on delete before this PR either, and re-picking a removed path fails with the existing load error rather than loading wrong files. This PR scopes the forget behaviour to Hub cache deletes.
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
1 similar comment
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
# Conflicts: # studio/frontend/tests/audio-page-policy.test.ts
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff910409aa
ℹ️ 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".
| ): string[] { | ||
| if (!inventory.settled || inventory.error) return []; | ||
| return [...markers] | ||
| .filter(([, listedAtDelete]) => listedAtDelete !== inventory.available) |
There was a problem hiding this comment.
Track inventory refreshes instead of Set identities
When a cached delete overlaps any other download-state or inventory-hint update before the version-debounced inventory request completes, useHubInventory can allocate a new availableSet without receiving a newer server listing because cachedRows also depends on live download state. This reference-only test then retires the marker while the stale set still contains the deleted repo, so rememberedModelIsGone does not call forgetModel; after the actual refresh the marker is gone, and the persisted workflow memory can reappear if the repo is later downloaded again. The fresh evidence after the parent-key fix is this new reference comparison; retire markers using a source refresh generation or timestamp instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: retiring a marker early only means the remembered id is not forgotten, and the picker still hides a remembered Hub repo the settled inventory no longer lists, so nothing missing is offered; offering it again after a re-download is the intended behaviour.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d9c7326967
ℹ️ 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".
| if (!variant || !quantLabel || !/\.gguf$/i.test(variant.trim())) return variant; | ||
| const path = variant.trim().replace(/\\/g, "/"); | ||
| const cut = path.lastIndexOf("/") + 1; | ||
| return `${path.slice(0, cut)}${quantLabel(path.slice(cut)).toUpperCase()}`; |
There was a problem hiding this comment.
Preserve full GGUF variant keys when decoding status
When an audio GGUF stores its quant only in a parent directory (Q4_K_M/model.gguf) or uses a bpw-qualified key (model-IQ4_XS-3.53bpw.gguf), this basename-only conversion produces Q4_K_M/MODEL or IQ4_XS, while the picker rows are keyed as Q4_K_M and IQ4_XS-3.53bpw by gguf_variant_key (studio/backend/hub/utils/gguf.py:782-794). ggufVariantsMatchForPicker therefore never marks the selected quant Loaded, and the trigger displays the wrong variant. Fresh evidence after the prior filename fix is that the backend explicitly supports quant-only subdirectories and bpw modifiers, neither of which the new conversion preserves; resolve the echoed filename with the same full-path variant-key rules.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: the common file-name echo is now mapped; quant-only parent directories and bpw-suffixed file names are rare for audio GGUFs, the effect is only the Loaded tick and trigger text, and those layouts read no worse than the raw file name did before.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d9c7326967
ℹ️ 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".
| triggerLabelClassName="text-ui-14 @[68rem]:text-ui-16" | ||
| task={HUB_TASKS_BY_MODE[mode]} | ||
| // Separate runs audio-to-audio models, which the speak picker's tasks leave out. | ||
| hubTask={pageWorkflow === "separate" ? "audio-to-audio" : undefined} |
There was a problem hiding this comment.
Scope Hub searches to the current audio workflow
When Search Hub is opened from Text to Speech, Clone, Edit, or Convert, this leaves hubTask undefined, so handleBrowseHub falls back to the mode-wide HUB_TASKS_BY_MODE.speak array (text-to-speech plus text-to-audio). The Hub page does not apply selectorRowFilter, so a Text to Speech search still includes music/text-to-audio rows; provide a workflow-specific task override for the non-Separate workflows as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: before this PR the link opened the Audio filter with no task at all, so speech pages narrowing to text-to-speech plus text-to-audio is strictly tighter; Speak's own picker uses the same two tasks, and only Separate needed an override because its models fell outside them.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d9c7326967
ℹ️ 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".
| id: string, | ||
| inventory: { settled: boolean; error: boolean; available: ReadonlySet<string> }, | ||
| ): boolean { | ||
| return HUB_REPO_ID_RE.test(id) && rememberedModelIsGone(id, inventory); |
There was a problem hiding this comment.
Hide missing audio.cpp folders after marker retirement
When deletion of the audio.cpp package overlaps an unrelated live download-state update before the refreshed inventory response, availableSet can acquire a new identity while still containing the stale package, so settledDeleteMarkers spends the delete marker early. This fallback then recognizes only exact owner/repo IDs, while the remembered runnable model is audio-cpp/audio.cpp-gguf/<folder>; after the real settled listing drops the package, the deleted folder therefore remains the page's remembered selection. Fresh evidence relative to the prior marker thread is that the missing-Hub-repo fallback cited in the rebuttal cannot match these three-segment package model IDs; include isAudioCppFolderId(id) in this unavailable check (whose existing gone predicate already understands the package root), or retire markers using an actual inventory refresh generation.
Useful? React with 👍 / 👎.
…l-selector Conflict in studio/frontend/src/features/audio/audio-page.tsx imports only: keep useHubInventory (remembered-model delete tracking) and main's useInventoryVersion (Transcribe STT refresh).
Summary
Unsloth Studio users reported on Discord that the model selector on the Audio pages showed wrong labels, offered models that can't run, ignored its sort, and matched almost every row on common searches. This fixes the problems found in the 2026-10-12 audit of those reports. The audio-cpp umbrella's On Device rows, Transcribe eject and umbrella downloads are handled in sibling PRs.
Changes
Labels
-GGUFis dropped.600.0Mwas not classed as a param token, so a second chip appeared.<n>Mnow counts as a param, so there is one chip.BF16instead ofbf16. The quant keys themselves are unchanged.Loaded state
/inference/status, including custom-folder GGUFs that report a file stem, and the closed selector shows the loaded quant.Recommended listing
unslothlisting in the background looking for audio rows. It now requests only the page's tasks.Search
audio.cpp-gguffolder row. Rows now match on what they display, and folder rows match on their folder name.Remembered and recent models
Runnable rows
audio.cpp-ggufrepo and its forks or mirrors were offered as runnable models. The package root can't load as one model, so it is no longer offered.llama.cpptag, and Vision badges are hidden in pickers scoped to audio.Edit page and Hub link
audioTask, and they stay applied while the Audio filter is on, including for a typed search.Testing
mainand passes on this branch.Screenshots
Before (merge base 4e8888c) and after (0ee95c8), CPU-only Unsloth Studio on Linux. Scenes 1 and 6 mock
/api/inference/statusas Qwen3-TTS-12Hz-0.6B-Base Q8_0 loaded, so no model had to run.Audio model selector, before and after (maintainer run)
Merge base (left) vs this PR at
ab465ab3d(right), two isolated Unsloth Studio installs, no model loaded, Text to Speech picker on Recommended. The search placeholder reads "Search models" and the Trending sort is gone from the audio listing; the parameter chips also take the curated sizes (Orpheus TTS 3B reads 3.3B).