Skip to content

Studio: fix the audio model selector's list, labels and search - #13517

Merged
shimmyshimmer merged 11 commits into
unslothai:mainfrom
Etherll:fix/studio-audio-model-selector
Oct 13, 2026
Merged

shimmyshimmer merged 11 commits into
unslothai:mainfrom
Etherll:fix/studio-audio-model-selector

Conversation

@Etherll

@Etherll Etherll commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The trigger read "Voice cloning- GGUF" because the flex span dropped the leading space of " - ". The separator is now its own span, and a GGUF suffix that only repeats a name already ending in -GGUF is dropped.
  • Sub-1B rows showed "0.6B 600.0M". 600.0M was not classed as a param token, so a second chip appeared. <n>M now counts as a param, so there is one chip.
  • Quant chips show BF16 instead of bf16. The quant keys themselves are unchanged.
  • The search placeholder reads "Search models" when the picker also searches community models.

Loaded state

  • Speak, Edit and the other non-Transcribe pages did not mark the loaded row or quant. They now take the loaded model and quant from /inference/status, including custom-folder GGUFs that report a file stem, and the closed selector shows the loaded quant.
  • The "open Speak" footer action always went to Speak. It now opens the page where the loaded model runs.

Recommended listing

  • Recommended on audio pages paged through the whole unsloth listing in the background looking for audio rows. It now requests only the page's tasks.
  • The Trending/Recent sort did nothing on audio, since the listing is umbrella and vendor rows. Audio pages no longer show it, and the fit-on-device toggle moved into the format menu.
  • The MLX format filter is hidden on task pickers (Audio, Images, Video) when not on a Mac. A remembered MLX choice falls back to All.

Search

  • Search matched repo ids, so "audio" or "gguf" hit every bundled audio.cpp-gguf folder row. Rows now match on what they display, and folder rows match on their folder name.
  • The empty state appeared before the community search finished and ignored its errors. It now waits for both searches and shows a community search failure with a retry.

Remembered and recent models

  • A page's remembered model survived deletion and was offered again. Deleting a model (or the audio.cpp package that holds it) now clears it once the refreshed inventory confirms it is gone, and a remembered Hub repo the inventory no longer lists is not offered.
  • Recent recorded every selection, including models that never loaded. It now records only models that loaded.

Runnable rows

  • The bare audio.cpp-gguf repo 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.
  • Qwen3-ASR had two identical rows (the llama.cpp repo and the bundled folder), and one had a Vision badge. The llama.cpp row now carries a llama.cpp tag, and Vision badges are hidden in pickers scoped to audio.

Edit page and Hub link

  • DotTTS-Edit was missing on the Edit page because an edit-keyword filter meant for image models also ran on audio. That filter now applies only outside audio pickers.
  • Search Hub from an audio page opened the Hub's Audio filter with no task filter, so it listed unrelated audio models. The link now passes the page's tasks as audioTask, and they stay applied while the Audio filter is on, including for a typed search.

Testing

cd studio/frontend
npm test              # 11812 pass, 0 fail
npm run catalog:check # all assertions passed
npm run typecheck     # clean
npm run i18n:check    # clean
npm run build         # ok
  • ESLint on the changed files reports no new findings compared with the base.
  • Each changed or new test file fails on main and passes on this branch.
  • Ran a CPU-only before/after Unsloth Studio pair (main vs this branch) with Playwright scenes.

Screenshots

Before (merge base 4e8888c) and after (0ee95c8), CPU-only Unsloth Studio on Linux. Scenes 1 and 6 mock /api/inference/status as Qwen3-TTS-12Hz-0.6B-Base Q8_0 loaded, so no model had to run.

Audio model selector before and after

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).

Audio model selector, before and after

- 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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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 ⚠️ Failed 2026-10-13T15:36:54.651572Z a9942b5 New commits
ℹ️ 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.

@danielhanchen danielhanchen self-assigned this Oct 13, 2026
# Conflicts:
#	studio/frontend/tests/audio-picker-policy.test.ts
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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

@codex review

@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: 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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 pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 13, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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".

# Conflicts:
#	studio/frontend/tests/audio-page-policy.test.ts
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@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: 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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@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: 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()}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 13, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 13, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 13, 2026
@unslothai unslothai deleted a comment from shimmyshimmer Oct 13, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 13, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@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: 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}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to sample tokens
ℹ️ 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

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@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: 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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).
@shimmyshimmer
shimmyshimmer merged commit 76b4e2f into unslothai:main Oct 13, 2026
danielhanchen added a commit that referenced this pull request Oct 13, 2026
…nking merges (#13640)

main is 0.8 KB transfer over the startup budget. Measured commit by
commit, six merges since b8d76e1 added 2.9 KB raw / 1.4 KB transfer
with the chunk count unchanged (largest: #13517, 0.9 KB transfer).
Raise the budget by that growth so main's margin stays where it was.
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.

4 participants