Repository navigation
Studio: Hub Run refuses audio models that neither Audio nor Chat can run - #13812
Conversation
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. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ 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: 2e9f0c26d3
ℹ️ 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".
| !speechGgufIsUndecodable({ | ||
| isGguf: true, | ||
| id, | ||
| baseModel: model.baseModel, | ||
| tags: model.tags, | ||
| }) |
There was a problem hiding this comment.
Honor header-classified CSM before the GGUF exemption
For a chat-eligible cached Hub GGUF whose header identifies model.audioType as "csm", but whose renamed repo, base model, and tags do not contain a csm segment, speechGgufIsUndecodable returns false and this library exemption sends Run to Chat even though llama.cpp cannot decode it. Fresh evidence beyond the previously fixed named-CSM case is the header-derived audioType, which SelectedModelView carries but this check discards; test it before applying the exemption so renamed CSM checkpoints cannot unload the resident model and then fail.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this one: a CSM GGUF renamed so that no id, base model or tag names it is a rare corner, and it already reached Chat this way on main. Named CSM GGUFs, the realistic case, are refused.
|
@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: f7b02f8813
ℹ️ 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".
| (!library || LLAMA_CPP_GGUF_LIBRARIES.has(library)) && | ||
| !speechGgufIsUndecodable({ |
There was a problem hiding this comment.
Restrict the speech GGUF exemption to supported codecs
For a cached Llasa GGUF tagged text-to-speech with libraryName: "transformers" (or no library metadata), this exemption returns before the Audio routability check, so hubModelRunsOnAudioPage is false while hubAudioRunRefused is also false and Hub Run still opens Chat. The shared policy in audio-picker-policy.ts:120-131 explicitly excludes Llasa because its XCodec2 output cannot be decoded, so this recreates the unload-then-fail behavior the gate is meant to prevent; require evidence of a supported speech codec rather than treating the container library as decoder evidence.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Keeping this as is: the exemption is deliberate. Speech GGUFs on a llama.cpp stack keep main's Chat Run because chat reads the codec vocabulary only at load; requiring codec evidence up front would refuse Orpheus fine-tunes named for no family (e.g. freddyaboulton/3b-fr-ft-research_release-Q4_K_M-GGUF), which speak in Chat today. A Llasa GGUF loads in llama.cpp there exactly as on main, so nothing regresses.
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ 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: Didn't find any major issues. Swish! Reviewed commit: ℹ️ 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". |
|
pre-commit.ci run |
…refuse # Conflicts: # studio/frontend/scripts/check-bundle-budget.ts
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ 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 were main's test comment trim (unslothai#13844) against this PR's test changes, plus the bundle budget. Each test keeps this PR's code with main's shorter comments and docstrings; the budget keeps main's unslothai#13812/unslothai#13446 notes and adds this PR's measured growth against 50b9dea (+1,475 B raw / +279 B transfer) on top of main's limits.
Fixes #13775
Summary
In the Model Hub, clicking Run on a downloaded speech or music model that the Audio page cannot run opened it in Chat instead. Chat cannot load these models either. For example, NVIDIA's own
nvidia/magpie_tts_multilingual_357mGGUF (architecturemagpietts) failed in Chat with "The installed llama.cpp does not recognise this GGUF's model architecture", after it had already unloaded the current chat model. Theopenbmb/VoxCPM2safetensors went to Chat the same way.The chat model picker already refuses these picks with a toast: " is not an audio model Unsloth can run yet. The Audio page lists the families it supports." Hub Run now does the same thing. It shows that toast and stays on the Hub, rather than opening Chat.
Changes
hubAudioRunRefusedinfeatures/hub/lib/model-run-selection.tsreturns true for a Hub-backed model whose task istext-to-speech,text-to-audiooraudio-to-audiowhenhubModelRunsOnAudioPageis false. It uses the same task resolution as the Audio handoff (taskForMediaPick+hubAudioTask).handleRuninhub-page.tsxchecks it before the chat handoff.text-to-speechGGUF is not refused if its Hub library istransformersorgguf, or if it lists no library. Chat loads those GGUFs through llama.cpp and reads an Orpheus-style codec vocabulary at load time, so a fine-tune whose name matches no supported family, such asfreddyaboulton/3b-fr-ft-research_release-Q4_K_M-GGUF, still speaks in Chat as it does on main. NVIDIA's Magpie GGUF listsnemoas its library and is refused. CSM GGUFs are refused whatever library they list, because llama.cpp has no CSM decoder (speechGgufIsUndecodable).scripts/check-bundle-budget.ts: raises the startup budget by this PR's measured growth: 82 B transfer, and 0 B raw against42735fcf2.mainhad 0 B raw spare, and the same tree builds 6,770,921 or 6,770,972 B raw in two checkouts, so raw is raised to cover the 6,612.3 KB that staging CI read.audio-cpp/MiniMax-Music3-GGUFandMagpieTTS-Multilingual-357M-GGUF, plus Orpheus, Whisper and the separation GGUFs.Testing
Run in
studio/frontend:npm test: 12292 / 12292 pass.npm run typecheck: passes.npm run bundle:checkon this branch merged with main02d9ea35a: within budget (0.1 KB transfer, 0.1 KB raw to spare).tests/tray-server-status.test.ts(fails on mainffa8fc3b9without this PR), and the diffusion backend tests from Studio diffusion: learned activation peaks, OOM retry in group offload setup, pinned GGUF host copies, tied-weight groups #13724 on staging.tests/hub-media-run-gate.test.ts. It covers the refused models (Magpie NeMo GGUF, a CSM GGUF, an ACE music GGUF that is not built for audio.cpp, VoxCPM2 safetensors, MusicGen) and the ones that must not be refused (MiniMax Music 3 GGUF, Orpheus, an Orpheus fine-tune GGUF named for no family, a GGUF with no library, a chat LLM, a NeMo ASR model, an untagged row, a filesystem row).I also ran both sides with Playwright, each Studio built from its own tree. Both used one HF cache holding
nvidia/magpie_tts_multilingual_357m(f16 GGUF),openbmb/VoxCPM2andaudio-cpp/MiniMax-Music3-GGUF, and both had a CUDA GPU visible:nvidia/magpie_tts_multilingual_357m/chatrun settings; Load fails with the llama.cpp architecture erroropenbmb/VoxCPM2/chatrun settingsaudio-cpp/MiniMax-Music3-GGUF/audio?workflow=music/audio?workflow=music(unchanged)The Audio page lists are the same on both sides:
Screenshots
Same cache on both sides: main on the left, this PR on the right. Each shot was taken after clicking Run in the Hub inspector.
nvidia/magpie_tts_multilingual_357m: main opens Chat run settings; this PR keeps the Hub open and explains why.openbmb/VoxCPM2: main opens Chat run settings; this PR keeps the Hub open and explains why.