Repository navigation
Studio: open audio models on their Audio page - #12816
Conversation
Music and separation picks from the chat picker, Run in the Hub inspector and a click on an audio row in Loaded Models now open the Audio page on the workflow that runs the model, instead of loading it into Chat or opening Chat, which refuses it. The chat picker routes text-to-audio and audio-to-audio picks only when the Audio page runs them: a separation GGUF, a native music family, or a GGUF published for the audio runtime. MusicGen, Stable Audio and other runtimes' GGUFs keep the existing refusal toast. The Hub uses the same gate and leaves the shared audio.cpp repo and filesystem rows as they were. Loaded Models labels audio rows by workflow (Music, Separation, Voice conversion) and reads the audio runtime as GGUF.
|
@codex review |
Clicking an audio model's Loaded Models row always sent the Audio page to the model's first workflow. With a model that runs several (Speak and Edit, say) and the page on another of them, the click switched the tab and would stop a generation running there. The row now keeps every workflow the model runs and only names one when the page is on a workflow the model does not run.
|
@codex review |
A downloaded non-GGUF speech model on a host without a non-GGUF runtime (a Mac, for one) now showed Run, which opened the Audio page only for it to refuse the model. Such a row keeps the Hub's previous behaviour; GGUFs still open the Audio page.
|
@codex review |
This reverts c584de4. Gating the Audio Run on the chat runtime check hid a working Run for audio models the Audio page does run without it: MiniMax Music 3 on CUDA (its Hub tags mark it unsupported for chat) and the native CPU speech models on hosts without a GPU. Where the Audio page cannot load the checkpoint, it already refuses the pick with a message before loading anything, as it does for the same pick from the chat model picker.
|
@codex review |
|
Picking a music or separation GGUF in the chat model picker now opens the Audio page on Create music or Separate audio. Run in the Hub opens the same page for a downloaded audio.cpp model, and the Loaded Models row for an audio model opens Audio on its workflow instead of Chat. What changed
Checked in a CPU-only Studio, same backend, only the frontend build swapped. On Before: Codex review requested at 04:48 UTC on |
|
None of the red checks here look caused by this PR (the run was created at 04:48 UTC):
|
…12835) test_a_closed_request_cancels_the_fetch returned 499 and then drained the fetch pool with no-ops before reading what the fake fetch saw. Idle workers finish those no-ops while the fetch's own thread may not have recorded anything yet, so a loaded CI worker read an empty dict (KeyError 'cancelled' on #12816, which does not touch the browser route). The fake fetch now sets an event when it is done and the test waits on that.
|
Review record for #12816, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#498. 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
|
…listing's file" This reverts commit c215a31.

Summary
Audio models picked from the chat model picker, run from the Hub inspector, or clicked in Loaded Models now open the Audio page on the workflow that runs them. Before, the chat picker loaded music and separation models into Chat, the Hub had no Run for audio.cpp models, and Loaded Models sent every audio row to Chat, which refuses audio models.
Changes
audioPickIsRoutablenow gatestext-to-audioandaudio-to-audiopicks to what the Audio page actually runs.audio-to-audioroutes only for the separation audio type.text-to-audioroutes for a native music family, or for a GGUF that the audio runtime's header classifier tagged, that is a local checkpoint, or that carries audio.cpp evidence in its id, base model, tags or library. MusicGen, Stable Audio, ComfyUI and sa3.cpp GGUFs, codecs and speech enhancers still get the refusal toast, whose copy now says "audio model" instead of "speech model".text-to-audioandaudio-to-audiotoAUDIO_GEN_TASKSand marks a downloaded GGUF whose inventory task istext-to-audiowithtaskFromGgufArch, since only the audio runtime's header classifier assigns that task to a GGUF. The/audiosearch it builds moved intoaudioPickSearchinfeatures/audio/route-search.tsso the Hub can reuse it.audioWorkflowForPickmapsaudio-to-audioto the Separate workflow.hubModelRunsOnAudioPage) and navigates to/audiowith that search. It hides the llama.cpp memory estimate for these models. The shared audio.cpp repo and filesystem rows with no Hub id keep their existing behavior./audio?workflow=<id>on click, and reports the GGUF audio runtime as "GGUF" instead of "Transformers". It reads the workflow fromstatus.audio_workflowsand falls back to the audio type for backends that do not send it. Dictation sidecars still open the Voice settings tab, and Whisper in the chat slot still opens Chat.Testing
Run in
studio/frontendon 7ccf3fc + this commit:npm run typecheck npm run i18n:check npm run build npm run biome:check npm testtypecheck,i18n:checkandbuildpass. Biome reports no new errors compared to the base.npm test: 10581 of 10583 pass. The two failures (tests/color-themes.test.ts:96andtests/find-in-page.test.ts:1404) also fail on the base commit.audio-picker-policy,audio-handoff-intent,hub-media-run-gate,loaded-models-sources,hub-runtime-boundaryandmodel-picker-partial-downloadstests cover the gate, the separate workflow mapping,audioPickSearch, the Hub Run gate (including the audio.cpp repo and filesystem rows), and Loaded Models targets and labels.audio-cpp/Yue2-3B-GGUFq8_0 in the chat picker lands on Audio > Create music and loads the model. On base it stays on Chat.HTDemucs-GGUFas its own repo) lands on Audio > Separate audio and/api/inference/loadreturns 200. On base it stays on Chat.Screenshots
Base
7ccf3fcb2(left) vs this branch (right), each Studio on its own install with an isolated Hugging Face cache holding onlyaudio-cpp/Yue2-3B-GGUFQ8_0.The Hub inspector for the downloaded Yue2 checkpoint: no Run on base, Run on this branch.
After clicking Run: base stays on the Hub; this branch opens Audio > Create music, and
/api/inference/statusreportsaudio-cpp/Yue2-3B-GGUFloaded asaudiocpp_musicwith workflows["music"].