Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: stop routing parakeet.cpp GGUFs as chat with a false llama.cpp update hint (#16273) (#16281)
Indrajit swain49262d6646f4
diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.pyindex 28e14da5e96..c8dd066da95 100644--- a/studio/backend/core/inference/llama_cpp.py+++ b/studio/backend/core/inference/llama_cpp.py@@ -503,6 +503,7 @@ from utils import gguf_names as _gguf_namesfrom utils.gguf_archs import (SPEECH_GGUF_ARCHS as _SPEECH_GGUF_ARCHS,is_audio_cpp_gguf_architecture,+ is_foreign_asr_gguf_architecture,is_speech_gguf_architecture,)@@ -20523,6 +20524,7 @@ class LlamaCppBackend:arch not in self._DIFFUSION_ARCHESand not is_speech_gguf_architecture(arch)and not is_audio_cpp_gguf_architecture(arch)+ and not is_foreign_asr_gguf_architecture(arch)and not getattr(self, "_gguf_header_parsed", False)):return None@@ -20535,6 +20537,13 @@ class LlamaCppBackend:"This is an audio GGUF (speech, music or transcription), which cannot run as ""a chat model. Open it from the Audio page instead.")+ if is_foreign_asr_gguf_architecture(arch):+ return (+ f"This is a '{arch}' speech-recognition GGUF (parakeet.cpp / LocalAI), which "+ "llama.cpp cannot load. Updating llama.cpp will not help. For Parakeet in "+ "Unsloth, open the Audio page and use the curated audio.cpp model "+ "(Parakeet-TDT-0.6B-v3-GGUF)."+ )if is_speech_gguf_architecture(arch):# Points at the Transformers build: the Audio page cannot list a speech GGUF either.return (@@ -21138,6 +21147,13 @@ class LlamaCppBackend:"This is an audio GGUF (speech, music or transcription), which llama-server ""cannot run as a chat/completion model. Open it from Unsloth's Audio page instead.")+ if is_foreign_asr_gguf_architecture(arch):+ return (+ f"'{arch}' is a speech-recognition GGUF for parakeet.cpp / LocalAI, which "+ "llama-server cannot run as a chat/completion model. Updating llama.cpp will "+ "not add support for it. For Parakeet in Unsloth, open the Audio page and use "+ "the curated audio.cpp model (Parakeet-TDT-0.6B-v3-GGUF)."+ )if is_speech_gguf_architecture(arch):# Name the build that runs it, not a page this file will not appear on.return (diff --git a/studio/backend/hub/services/models/cache_inventory.py b/studio/backend/hub/services/models/cache_inventory.pyindex e1d7b758a3e..f4481c3b8ba 100644--- a/studio/backend/hub/services/models/cache_inventory.py+++ b/studio/backend/hub/services/models/cache_inventory.py@@ -548,7 +548,14 @@ def _cached_row_companion(repo_id: str, snapshot: Optional[Path] = None) -> bool_AUDIO_ONLY_GGUF_TASKS = frozenset(- {"text-to-speech", "text-to-audio", "automatic-speech-recognition", "audio-to-audio"}+ {+ "text-to-speech",+ "text-to-audio",+ "automatic-speech-recognition",+ "audio-to-audio",+ # Foreign ASR GGUFs (parakeet.cpp): not chat, and no Unsloth page can load them (#16273).+ "speech-recognition-unsupported",+ })diff --git a/studio/backend/hub/services/models/catalog_classification.py b/studio/backend/hub/services/models/catalog_classification.pyindex e06c88e0f4e..2222f0651c9 100644--- a/studio/backend/hub/services/models/catalog_classification.py+++ b/studio/backend/hub/services/models/catalog_classification.py@@ -20,6 +20,7 @@ from utils import gguf_archs as _gguf_archsfrom utils.gguf_archs import (SPEECH_GGUF_ARCHS,is_audio_cpp_gguf_architecture,+ is_foreign_asr_gguf_architecture,is_speech_gguf_architecture,)from utils.paths.path_utils import file_contents_available_locally@@ -38,6 +39,7 @@ _SPEECH_GGUF_ARCHS = SPEECH_GGUF_ARCHS_SPEECH_TASK = "text-to-speech"# An audio.cpp GGUF of a kind Studio has no page for (separation, diarization, ...): not chat either._AUDIO_CPP_UNSUPPORTED_TASK = "audio-to-audio"+_UNSUPPORTED_ASR_TASK = "speech-recognition-unsupported"_UNSUPPORTED_DIFFUSION_TASK = "image-diffusion-unsupported"_H3_DENOISER_GGUF_PREFIXES = ("minimax_h3_fl2va", "minimax_h3_ref2va")_LOADABLE_MEDIA_GGUF_TASKS = frozenset({"text-to-image", _VIDEO_GEN_TASK})@@ -281,6 +283,8 @@ def _arch_to_task(arch: Optional[str], name_hints: tuple[Optional[str], ...] = (normalized = arch.lower()if is_audio_cpp_gguf_architecture(normalized):return _audio_cpp_classification(None, name_hints)[0]+ if is_foreign_asr_gguf_architecture(normalized):+ return _UNSUPPORTED_ASR_TASKif normalized == "qwen3" and any(_QWEN3_ASR_HINT.search(str(hint)) for hint in name_hints if hint):@@ -430,7 +434,7 @@ def _gguf_folder_task(if task == _SPEECH_TASK:if speech is None:speech = task- elif task == _UNSUPPORTED_DIFFUSION_TASK:+ elif task in (_UNSUPPORTED_DIFFUSION_TASK, _UNSUPPORTED_ASR_TASK):unsupported = unsupported or taskelif task is not None and fallback is None:fallback = taskdiff --git a/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.py b/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.pyindex be4bd4813b5..05c14c1717d 100644--- a/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.py+++ b/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.py@@ -383,6 +383,15 @@ def test_speech_arch_names_the_audio_page(tmp_path):assert "Images page" not in message+def test_a_parakeet_cpp_gguf_is_refused_without_blaming_llama_cpp(tmp_path):+ _, message = _refusal(tmp_path, arch = "parakeet", name = "parakeet-tdt-0.6b-q8_0.gguf")+ assert message is not None+ assert "parakeet" in message.lower()+ assert "updating llama.cpp will not help" in message.lower()+ assert "Parakeet-TDT-0.6B-v3-GGUF" in message+ assert "Images page" not in message++def test_every_name_the_video_preflight_imports_from_routes_still_resolves():"""Names the preflight imports from routes.models must resolve, or its broad except hides it."""import astdiff --git a/studio/backend/tests/test_llama_cpp_start_failure_classification.py b/studio/backend/tests/test_llama_cpp_start_failure_classification.pyindex 0d0db682516..4415e6bc2f3 100644--- a/studio/backend/tests/test_llama_cpp_start_failure_classification.py+++ b/studio/backend/tests/test_llama_cpp_start_failure_classification.py@@ -132,6 +132,16 @@ class TestUnsupportedNonDiffusionArchitecture:assert "updating llama.cpp" in msg.lower()assert "cannot be run" not in msg.lower()+ def test_a_parakeet_cpp_arch_does_not_blame_an_old_llama_cpp(self):+ """mudler/parakeet.cpp GGUFs must not get the 'update llama.cpp' toast (#16273)."""+ out = "error loading model: unknown model architecture: 'parakeet'"+ msg = _classify(out, "/models/parakeet-tdt.gguf", "mudler/parakeet-cpp-gguf")+ assert "parakeet" in msg.lower()+ assert "updating llama.cpp will not" in msg.lower()+ assert "Parakeet-TDT-0.6B-v3-GGUF" in msg+ assert "does not recognise" not in msg.lower()+ assert "Images page" not in msg+@pytest.mark.parametrize("arch",[diff --git a/studio/backend/utils/gguf_archs.py b/studio/backend/utils/gguf_archs.pyindex 35979ec91c9..4baae504d0d 100644--- a/studio/backend/utils/gguf_archs.py+++ b/studio/backend/utils/gguf_archs.py@@ -10,6 +10,9 @@ from typing import Optional# Architectures no Unsloth runtime can decode; all Hub spellings of CSM are listed.SPEECH_GGUF_ARCHS = frozenset({"llama-csm", "csm", "csm-tts", "mimi"})+# Foreign ASR GGUFs (e.g. mudler/parakeet.cpp). Not audiocpp, not llama.cpp; Studio cannot run them (#16273).+FOREIGN_ASR_GGUF_ARCHS = frozenset({"parakeet"})+# The Mimi vocoder GGUF puts a sentence in general.architecture; match the flag._VOCODER_MARKERS = ("--model-vocoder", "cannot be used as llm")@@ -24,6 +27,11 @@ def is_speech_gguf_architecture(architecture: Optional[str]) -> bool:return any(marker in normalized for marker in _VOCODER_MARKERS)+def is_foreign_asr_gguf_architecture(architecture: Optional[str]) -> bool:+ """Whether ``general.architecture`` names an ASR GGUF no Unsloth runtime can load (e.g. parakeet.cpp)."""+ return bool(architecture) and architecture.strip().lower() in FOREIGN_ASR_GGUF_ARCHS++DIFFUSION_IMAGE_GGUF_ARCHS = frozenset({"flux",diff --git a/studio/frontend/src/features/chat/api/chat-adapter.ts b/studio/frontend/src/features/chat/api/chat-adapter.tsindex 75ac5c7d8a3..30e65d2fdb8 100644--- a/studio/frontend/src/features/chat/api/chat-adapter.ts+++ b/studio/frontend/src/features/chat/api/chat-adapter.ts@@ -2886,6 +2886,7 @@ const NON_CHAT_TASKS: ReadonlySet<string> = new Set(["text-to-audio","audio-to-audio","automatic-speech-recognition",+ "speech-recognition-unsupported",]);// ollama is excluded: local_model_resolver.py skips its scanner. hermes is read-only, so included.diff --git a/studio/frontend/tests/chat-speech-model-not-adopted.test.ts b/studio/frontend/tests/chat-speech-model-not-adopted.test.tsindex 8f74934d426..2553072c9c5 100644--- a/studio/frontend/tests/chat-speech-model-not-adopted.test.ts+++ b/studio/frontend/tests/chat-speech-model-not-adopted.test.ts@@ -179,6 +179,7 @@ test("the auto-load sweep skips every task chat cannot answer", () => {"text-to-audio","audio-to-audio","automatic-speech-recognition",+ "speech-recognition-unsupported",]) {assert.ok(set.includes(`"${task}"`), task);}