Skip to content

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.

Studio: whisper.cpp updates ride along with llama.cpp instead of opening the update card (#13862)

Daniel Hanb24c27d8ef7c
diff --git a/studio/backend/tests/test_combined_update.py b/studio/backend/tests/test_combined_update.py
index 4e1b41eca4b..ac006fde77a 100644
--- a/studio/backend/tests/test_combined_update.py
+++ b/studio/backend/tests/test_combined_update.py
@@ -322,15 +322,16 @@ def test_status_payload_is_exact_superset_of_legacy_fields(monkeypatch, tmp_path
assert st["update_component"] == "llama"
-def test_status_union_whisper_only_surfaces_update(monkeypatch, tmp_path):
- # llama current, whisper behind: the single item still shows an update.
+def test_status_whisper_only_release_waits_for_llama(monkeypatch, tmp_path):
+ # llama current, whisper behind: whisper.cpp alone never raises the update item.
_setup_llama(monkeypatch, tmp_path, installed = "b9518", latest = "b9518")
_setup_whisper(monkeypatch, tmp_path)
st = upd.get_update_status(force_refresh = True)
assert st["llama_update_available"] is False
- assert st["whisper"]["update_available"] is True
- assert st["update_available"] is True
- assert st["update_component"] == "whisper"
+ assert st["whisper"]["update_available"] is False
+ assert st["whisper"]["skip_reason"] == "waits_for_llama"
+ assert st["update_available"] is False
+ assert st["update_component"] is None
assert st["installed_tag"] == "b9518"
assert st["latest_tag"] == "b9518"
assert st["whisper"]["installed_tag"] == "v1.9.1-unsloth.1"
@@ -664,9 +665,8 @@ def test_apply_llama_only_when_whisper_current(monkeypatch, tmp_path):
assert job["phases"]["whisper"]["reason"] == "up_to_date"
-def test_apply_whisper_only_noops_llama(monkeypatch, tmp_path):
- # llama current + whisper behind: the same single apply runs, with the llama
- # phase a cheap already-matches no-op and the whisper phase doing the work.
+def test_apply_whisper_only_release_starts_no_job(monkeypatch, tmp_path):
+ # llama current + whisper behind: nothing to ride with, so the apply refuses as up to date.
_setup_llama(monkeypatch, tmp_path, installed = "b9518", latest = "b9518")
_setup_whisper(monkeypatch, tmp_path)
(tmp_path / "install_whisper_prebuilt.py").write_text("stub")
@@ -676,26 +676,60 @@ def test_apply_whisper_only_noops_llama(monkeypatch, tmp_path):
_patch_whisper_phase(monkeypatch, events)
res = upd.start_update()
- assert res["started"] is True, res
+ assert res["started"] is False, res
+ assert res["reason"] == "up_to_date"
+ assert events == []
+
+
+def test_a_failed_whisper_phase_can_be_retried_alone(monkeypatch, tmp_path):
+ # llama updated but whisper failed: llama is now current, and Retry must still reach whisper.
+ _setup_llama(monkeypatch, tmp_path, installed = "b9518", latest = "b9518")
+ _setup_whisper(monkeypatch, tmp_path)
+ (tmp_path / "install_whisper_prebuilt.py").write_text("stub")
+ failed = upd._flow.new_job()
+ failed.update(state = "error", phases = {"whisper": {"state": upd._flow.PHASE_ERROR}})
+ monkeypatch.setattr(upd, "_job", failed)
+
+ st = upd.get_update_status(force_refresh = True)
+ assert st["update_available"] is True
+ assert st["update_component"] == "whisper"
+ assert st["whisper"]["update_available"] is True
+
+ events = []
+ _patch_llama_installer(monkeypatch, on_start = lambda cmd: events.append("llama"))
+ _patch_whisper_phase(monkeypatch, events)
+ assert upd.start_update()["started"] is True
job = _wait_for_job()
assert job["state"] == "success", job
- assert events == ["whisper"] # the llama installer never ran
- # The legacy job-level to_tag means "llama tag"; a whisper-only round
- # leaves it unset so the UI never reports a llama update that never ran.
- assert job["to_tag"] is None
- assert job["phases"]["llama"]["state"] == "skipped"
- assert job["phases"]["llama"]["reason"] == "up_to_date"
+ assert events == ["whisper"]
+
+
+def test_apply_whisper_rides_with_audio(monkeypatch, tmp_path):
+ # llama current, whisper and audio.cpp behind: whisper updates in the audio.cpp round.
+ _setup_llama(monkeypatch, tmp_path, installed = "b9518", latest = "b9518")
+ _setup_whisper(monkeypatch, tmp_path)
+ (tmp_path / "install_whisper_prebuilt.py").write_text("stub")
+
+ events = []
+ _patch_llama_installer(monkeypatch, on_start = lambda cmd: events.append("llama"))
+ _patch_whisper_phase(monkeypatch, events)
+ _setup_audio(monkeypatch, events)
+
+ assert upd.start_update()["started"] is True
+ job = _wait_for_job()
+ assert job["state"] == "success", job
+ assert events == ["whisper", "audio"]
assert job["phases"]["whisper"]["state"] == "success"
- assert "Updated whisper.cpp to v1.9.2-unsloth.1." in job["message"]
def test_whisper_reload_never_raises_job_reload_flag(monkeypatch, tmp_path):
- # A whisper-only update that had to unload a warm sidecar reports
+ # A whisper update (riding with audio.cpp) that had to unload a warm sidecar reports
# reload_required on its phase, but the JOB flag stays down: the chat
# frontend resyncs (and clears the local checkpoint) off the job flag,
# which must mean "the llama server changed", not "the sidecar restarted".
_setup_llama(monkeypatch, tmp_path, installed = "b9518", latest = "b9518")
_setup_whisper(monkeypatch, tmp_path)
+ _setup_audio(monkeypatch, [])
(tmp_path / "install_whisper_prebuilt.py").write_text("stub")
def _whisper_phase(phase, set_progress):
@@ -1081,11 +1115,13 @@ def test_status_llama_keeps_the_card_name_over_audio(monkeypatch, tmp_path):
assert st["audio"]["update_available"] is True
-def test_status_whisper_keeps_the_card_name_over_audio(monkeypatch, tmp_path):
+def test_status_whisper_rides_beside_audio(monkeypatch, tmp_path):
_setup_llama(monkeypatch, tmp_path, installed = "b9518", latest = "b9518")
_setup_whisper(monkeypatch, tmp_path)
_setup_audio(monkeypatch, [])
- assert upd.get_update_status(force_refresh = True)["update_component"] == "whisper"
+ st = upd.get_update_status(force_refresh = True)
+ assert st["update_component"] == "audio"
+ assert st["whisper"]["update_available"] is True
def test_status_survives_audio_probe_failure(monkeypatch, tmp_path):
diff --git a/studio/backend/utils/llama_cpp_update.py b/studio/backend/utils/llama_cpp_update.py
index 902bc2b2515..863e98aeb12 100644
--- a/studio/backend/utils/llama_cpp_update.py
+++ b/studio/backend/utils/llama_cpp_update.py
@@ -330,7 +330,7 @@ def _whisper_chain_status(
def _merge_whisper_status(status: dict, *, force_refresh: bool = False) -> dict:
- """Fold the whisper sub-status into the llama payload: the llama update item is the single UI surface, so update_available becomes the union (llama behind OR whisper behind) while llama_update_available keeps the llama-only flag. All pre-existing top-level fields are preserved."""
+ """Fold the whisper sub-status into the llama payload: the llama update item is the single UI surface. whisper.cpp does not join the update_available union (it rides along, _settle_whisper_rider) while llama_update_available keeps the llama-only flag. All pre-existing top-level fields are preserved."""
status["llama_update_available"] = bool(status.get("update_available"))
plan = _whisper_chain_status(
force_refresh = force_refresh,
@@ -348,16 +348,30 @@ def _merge_whisper_status(status: dict, *, force_refresh: bool = False) -> dict:
"update_size_bytes": sub.get("update_size_bytes"),
"skip_reason": plan.get("skip_reason"),
}
- whisper_update_available = bool(plan.get("update_available"))
- if whisper_update_available:
+ status["update_component"] = "llama" if status["llama_update_available"] else None
+ return status
+
+
+def _whisper_retry_owed() -> bool:
+ """The last job's whisper phase failed, so its Retry may run whisper by itself."""
+ with _job_lock:
+ phases = _job.get("phases") or {}
+ return (phases.get("whisper") or {}).get("state") == _flow.PHASE_ERROR
+
+
+def _settle_whisper_rider(status: dict) -> dict:
+ """List a pending whisper.cpp release only beside a llama.cpp update, backend migration or audio.cpp update it can ride with, or for the Retry of a whisper phase that failed."""
+ whisper = status.get("whisper")
+ if not whisper or not whisper.get("update_available"):
+ return status
+ if status.get("update_available") or status.get("backend_migration_available"):
+ return status
+ if _whisper_retry_owed():
status["update_available"] = True
- status["update_component"] = (
- "llama"
- if status["llama_update_available"]
- else "whisper"
- if whisper_update_available
- else None
- )
+ status["update_component"] = "whisper"
+ return status
+ whisper["update_available"] = False
+ whisper["skip_reason"] = "waits_for_llama"
return status
@@ -372,7 +386,7 @@ def _audio_chain_status(*, force_refresh: bool = False) -> Optional[dict]:
def _merge_audio_status(status: dict, *, force_refresh: bool = False) -> dict:
- """Fold the audio.cpp sub-status in after whisper's: it joins the update_available union and names the component only when neither llama.cpp nor whisper.cpp is pending."""
+ """Fold the audio.cpp sub-status in after whisper's: it joins the update_available union and names the component only when llama.cpp is not pending."""
plan = _audio_chain_status(force_refresh = force_refresh)
if plan is None:
status["audio"] = None
@@ -397,7 +411,8 @@ def get_update_status(*, force_refresh: bool = False) -> dict:
"""Report whether an update is available plus the job state. This is the single main update item: llama.cpp drives it and the whisper and audio.cpp phases are folded in (_merge_whisper_status, _merge_audio_status). force_refresh bypasses the 24h release cache for an explicit "check now"."""
status = _llama_only_status(force_refresh = force_refresh)
status = _merge_whisper_status(status, force_refresh = force_refresh)
- return _merge_audio_status(status, force_refresh = force_refresh)
+ status = _merge_audio_status(status, force_refresh = force_refresh)
+ return _settle_whisper_rider(status)
def get_update_changelog(
@@ -1291,6 +1306,8 @@ def _run_claimed_job(phases: list[dict]) -> None:
def _start_llama_job(backend_request: Optional[str] = None) -> dict:
"""Shared body of start_update() and start_backend_switch()."""
+ # Read before the claim replaces the previous job.
+ whisper_retry = _whisper_retry_owed()
if not _claim_operation(backend_request):
with _job_lock:
return {
@@ -1360,6 +1377,16 @@ def _start_llama_job(backend_request: Optional[str] = None) -> dict:
# audio.cpp ships its own ggml, so a backend switch never touches it.
audio_plan = (_audio_chain_status() or {}) if backend_request is None or migration else {}
audio_spec = audio_plan.get("phase")
+ if (
+ backend_request is None
+ and llama_spec is None
+ and audio_spec is None
+ and whisper_spec is not None
+ and not whisper_spec.get("repair")
+ and not whisper_retry
+ ):
+ # whisper.cpp rides along with a llama.cpp or audio.cpp update and never runs a job by itself.
+ whisper_spec = None
if llama_spec is None and whisper_spec is None and audio_spec is None:
# Nothing to run: answer with the llama refusal so the existing reasons (local_link / up_to_date / already_selected / ...) keep their meaning.
refusal = llama_plan["refusal"]
diff --git a/studio/frontend/src/components/llama-update-banner.tsx b/studio/frontend/src/components/llama-update-banner.tsx
index cd68879e71f..e0d3efbb6f9 100644
--- a/studio/frontend/src/components/llama-update-banner.tsx
+++ b/studio/frontend/src/components/llama-update-banner.tsx
@@ -192,16 +192,10 @@ export function LlamaUpdateBanner({
const [shownChannels, setShownChannels] = useState<
readonly NotificationChannel[]
>([]);
- const due: UpdateComponentFlags = {
- llama: useNotificationDue("llama"),
- whisper: useNotificationDue("whisper"),
- audio: useNotificationDue("audio"),
- };
- const muted: UpdateComponentFlags = {
- llama: useNotificationFrequency("llama") === "off",
- whisper: useNotificationFrequency("whisper") === "off",
- audio: useNotificationFrequency("audio") === "off",
- };
+ const llamaDue = useNotificationDue("llama");
+ const audioDue = useNotificationDue("audio");
+ const llamaMuted = useNotificationFrequency("llama") === "off";
+ const audioMuted = useNotificationFrequency("audio") === "off";
const [detailsVersion, setDetailsVersion] = useState<string | null>(null);
const [skipped, setSkipped] = useState<{
key: string;
@@ -215,6 +209,19 @@ export function LlamaUpdateBanner({
enabled,
onReloadRequired: resyncInferenceStatusAfterServerModelChange,
});
+ // whisper.cpp rides along with llama.cpp and audio.cpp; it opens the card only to retry its own failed phase.
+ const whisperRetry =
+ status?.job.state === "error" && status.job.whisperFailed;
+ const due: UpdateComponentFlags = {
+ llama: llamaDue,
+ whisper: whisperRetry,
+ audio: audioDue,
+ };
+ const muted: UpdateComponentFlags = {
+ llama: llamaMuted,
+ whisper: !whisperRetry,
+ audio: audioMuted,
+ };
const migrationPending = Boolean(status?.backend_migration_available);
const listed = updateBannerComponents({
diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.ts
index 114ca816d13..a03fed4a35f 100644
--- a/studio/frontend/src/features/settings/settings-search.ts
+++ b/studio/frontend/src/features/settings/settings-search.ts
@@ -27,7 +27,6 @@ export const SETTINGS_SEARCH_INDEX: Record<SettingsTab, TranslationKey[]> = {
"settings.general.notifications.sectionTitle",
"settings.general.notifications.showUnslothUpdates",
"settings.general.notifications.showLlamaUpdates",
- "settings.general.notifications.showWhisperUpdates",
"settings.general.notifications.showAudioCppUpdates",
"settings.general.previewSharing.sectionTitle",
"settings.general.previewSharing.enableLabel",
diff --git a/studio/frontend/src/features/settings/tabs/general-tab.tsx b/studio/frontend/src/features/settings/tabs/general-tab.tsx
index b0a8b695a04..429ea9e5e9a 100644
--- a/studio/frontend/src/features/settings/tabs/general-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/general-tab.tsx
@@ -724,17 +724,6 @@ export function GeneralTab() {
label={t("settings.general.notifications.showLlamaUpdates")}
/>
</SettingsRow>
- <SettingsRow
- label={t("settings.general.notifications.showWhisperUpdates")}
- description={t(
- "settings.general.notifications.showWhisperUpdatesDescription",
- )}
- >
- <NotificationFrequencySelect
- channel="whisper"
- label={t("settings.general.notifications.showWhisperUpdates")}
- />
- </SettingsRow>
<SettingsRow
label={t("settings.general.notifications.showAudioCppUpdates")}
description={t(
diff --git a/studio/frontend/src/hooks/use-llama-update-check.ts b/studio/frontend/src/hooks/use-llama-update-check.ts
index 6448c268224..10ef2bfdee3 100644
--- a/studio/frontend/src/hooks/use-llama-update-check.ts
+++ b/studio/frontend/src/hooks/use-llama-update-check.ts
@@ -40,6 +40,7 @@ export interface LlamaUpdateJob {
finished_at: string | null;
// The chained phase installing right now, when the backend reports phases.
runningPhase: "llama" | "whisper" | "audio" | null;
+ whisperFailed: boolean;
}
export interface ComponentOffer {
@@ -104,6 +105,9 @@ function parseJob(value: unknown): LlamaUpdateJob {
started_at: typeof job.started_at === "string" ? job.started_at : null,
finished_at: typeof job.finished_at === "string" ? job.finished_at : null,
runningPhase: parseRunningPhase(job.phases),
+ whisperFailed:
+ (job.phases as Record<string, { state?: unknown } | null> | null)?.whisper
+ ?.state === "error",
};
}
@@ -221,9 +225,8 @@ export function offerKey(status: LlamaUpdateStatus): string {
llama: status.llama.update_available
? [status.llama.installed_tag, status.llama.latest_tag]
: null,
- whisper: status.whisper?.update_available
- ? [status.whisper.installed_tag, status.whisper.latest_tag]
- : null,
+ // whisper.cpp rides along; null matches keys stored before it joined.
+ whisper: null,
migration: status.backend_migration_available
? [
status.llama.installed_tag,
@@ -239,6 +242,24 @@ export function offerKey(status: LlamaUpdateStatus): string {
});
}
+/** The previous format recorded the whisper.cpp release in the key; ignore it so a new whisper.cpp release keeps the suppression. */
+export function offerKeyMatches(
+ key: string,
+ status: LlamaUpdateStatus,
+): boolean {
+ const current = offerKey(status);
+ if (key === current) return true;
+ try {
+ const stored: unknown = JSON.parse(key);
+ if (!stored || typeof stored !== "object" || !("whisper" in stored)) {
+ return false;
+ }
+ return JSON.stringify({ ...stored, whisper: null }) === current;
+ } catch {
+ return false;
+ }
+}
+
function parseOfferSuppression(raw: string | null): OfferSuppression | null {
if (!raw) return null;
try {
@@ -420,7 +441,8 @@ export function useLlamaUpdateCheck({
);
const suppression = suppressionRef.current;
const suppressed =
- suppression?.offerKey === offerKey(next) &&
+ suppression != null &&
+ offerKeyMatches(suppression.offerKey, next) &&
(suppression.kind === "dismissed" || suppression.until > Date.now());
setApplying(presentation.applying);
setVisible(presentation.visible && (presentation.running || !suppressed));
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index 9815300a83f..740f3e569ce 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -1814,9 +1814,6 @@ export const ar = {
showLoadedModels: "مؤشر النماذج المحمّلة",
showLoadedModelsDescription:
"إظهار بطاقة صغيرة في الزاوية السفلية اليمنى تعرض كل نموذج موجود حاليًا في الذاكرة (الدردشة، الكلام، الصور، الفيديو)، مع زر لإخراج كل منها.",
- showWhisperUpdates: "إشعارات تحديث whisper.cpp",
- showWhisperUpdatesDescription:
- "التنبيه عند توفر إصدار أحدث من whisper.cpp لنماذج تحويل الكلام إلى نص. أوقف التشغيل إذا كنت لا تفرّغ الصوت.",
showAudioCppUpdates: "إشعارات تحديث audio.cpp",
showAudioCppUpdatesDescription:
"التنبيه عندما تحتاج بيئة تشغيل audio.cpp إلى تحديث لتشغيل صفحات الصوت. أوقف التشغيل إذا كنت لا تستخدم الصوت أبدًا.",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index e84f8947ab3..64c202ecb73 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -1835,9 +1835,6 @@ export const de = {
showLoadedModels: "Anzeige geladener Modelle",
showLoadedModelsDescription:
"Zeigt unten rechts eine kleine Karte mit allen derzeit im Speicher befindlichen Modellen (Chat, Sprache, Bild, Video) und einer Schaltfläche, um jedes einzeln zu entladen.",
- showWhisperUpdates: "whisper.cpp-Update-Benachrichtigungen",
- showWhisperUpdatesDescription:
- "Benachrichtigt, wenn ein neuerer whisper.cpp-Build für Speech-to-Text-Modelle verfügbar ist. Deaktivieren Sie dies, wenn Sie nie Audio transkribieren.",
showAudioCppUpdates: "audio.cpp-Update-Benachrichtigungen",
showAudioCppUpdatesDescription:
"Benachrichtigt, wenn die audio.cpp-Laufzeit ein Update für die Audio-Seiten braucht. Deaktivieren Sie dies, wenn Sie Audio nie verwenden.",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index b1e587333d9..3850e385672 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -1894,9 +1894,6 @@ export const en = {
showLoadedModels: "Loaded models indicator",
showLoadedModelsDescription:
"Show a small card in the bottom-right corner listing every model currently in memory (chat, speech, image, video), with a button to eject each one.",
- showWhisperUpdates: "whisper.cpp update notifications",
- showWhisperUpdatesDescription:
- "Notify when a newer whisper.cpp build is available for speech-to-text models. Turn off if you never transcribe audio.",
showAudioCppUpdates: "audio.cpp update notifications",
showAudioCppUpdatesDescription:
"Notify when the audio.cpp runtime needs an update to run the Audio pages. Turn off if you never use Audio.",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index 87a07482903..c0300801c7a 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -1831,9 +1831,6 @@ export const es = {
showLoadedModels: "Indicador de modelos cargados",
showLoadedModelsDescription:
"Muestra una pequeña tarjeta en la esquina inferior derecha con todos los modelos actualmente en memoria (chat, voz, imagen, vídeo), con un botón para expulsar cada uno.",
- showWhisperUpdates: "Notificaciones de actualización de whisper.cpp",
- showWhisperUpdatesDescription:
- "Avisa cuando haya una compilación más reciente de whisper.cpp para los modelos de voz a texto. Desactívalo si nunca transcribes audio.",
showAudioCppUpdates: "Notificaciones de actualización de audio.cpp",
showAudioCppUpdatesDescription:
"Avisa cuando el entorno de ejecución de audio.cpp necesite una actualización para las páginas de Audio. Desactívalo si nunca usas Audio.",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index dd8bd3ed65a..05728314883 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -1833,9 +1833,6 @@ export const fr = {
showLoadedModels: "Indicateur des modèles chargés",
showLoadedModelsDescription:
"Affiche une petite carte en bas à droite listant tous les modèles actuellement en mémoire (chat, voix, image, vidéo), avec un bouton pour éjecter chacun d'eux.",
- showWhisperUpdates: "Notifications de mise à jour de whisper.cpp",
- showWhisperUpdatesDescription:
- "Notifier lorsqu'une nouvelle version de whisper.cpp est disponible pour les modèles de transcription vocale. Désactivez si vous ne transcrivez jamais d'audio.",
showAudioCppUpdates: "Notifications de mise à jour d'audio.cpp",
showAudioCppUpdatesDescription:
"Notifier lorsque le moteur audio.cpp doit être mis à jour pour les pages Audio. Désactivez si vous n'utilisez jamais Audio.",
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index 5d11ebe876b..e901edbc598 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -1925,9 +1925,6 @@ export const he = {
showLoadedModels: "חיווי מודלים טעונים",
showLoadedModelsDescription:
"הצג כרטיס קטן בפינה הימנית התחתונה המפרט כל מודל שנמצא כרגע בזיכרון (צ'אט, דיבור, תמונה, וידאו), עם כפתור לפריקת כל אחד מהם.",
- showWhisperUpdates: "התראות עדכון של whisper.cpp",
- showWhisperUpdatesDescription:
- "הודע כאשר גרסת build חדשה יותר של whisper.cpp זמינה עבור מודלים של המרת דיבור לטקסט. כבה אם אינך מתמלל אודיו אף פעם.",
showAudioCppUpdates: "התראות עדכון של audio.cpp",
showAudioCppUpdatesDescription:
"הודע כאשר סביבת הריצה של audio.cpp צריכה עדכון עבור דפי האודיו. כבה אם אינך משתמש באודיו אף פעם.",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index e1d157bfa24..980b5096d36 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -1818,9 +1818,6 @@ export const hi = {
showLoadedModels: "लोड किए गए मॉडल का संकेतक",
showLoadedModelsDescription:
"नीचे दाएं कोने में एक छोटा कार्ड दिखाएं जिसमें वर्तमान में मेमोरी में मौजूद हर मॉडल (चैट, स्पीच, इमेज, वीडियो) सूचीबद्ध हो, और हर एक को हटाने के लिए एक बटन हो।",
- showWhisperUpdates: "whisper.cpp अपडेट सूचनाएं",
- showWhisperUpdatesDescription:
- "स्पीच-टू-टेक्स्ट मॉडल के लिए जब कोई नया whisper.cpp बिल्ड उपलब्ध हो तो सूचित करें। यदि आप ऑडियो ट्रांसक्राइब नहीं करते हैं तो बंद कर दें।",
showAudioCppUpdates: "audio.cpp अपडेट सूचनाएं",
showAudioCppUpdatesDescription:
"जब ऑडियो पेजों के लिए audio.cpp रनटाइम को अपडेट की ज़रूरत हो तो सूचित करें। यदि आप कभी ऑडियो का उपयोग नहीं करते हैं तो बंद कर दें।",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index 47a39598bc7..0d73c8119fb 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -1759,9 +1759,6 @@ export const it = {
showLoadedModels: "Indicatore dei modelli caricati",
showLoadedModelsDescription:
"Mostra una piccola scheda in basso a destra con tutti i modelli attualmente in memoria (chat, voce, immagini, video), con un pulsante per rimuovere ciascuno.",
- showWhisperUpdates: "Notifiche di aggiornamento di whisper.cpp",
- showWhisperUpdatesDescription:
- "Avvisa quando è disponibile una build più recente di whisper.cpp per i modelli di trascrizione vocale. Disattiva le notifiche se non trascrivi mai l'audio.",
showAudioCppUpdates: "Notifiche di aggiornamento di audio.cpp",
showAudioCppUpdatesDescription:
"Avvisa quando il runtime di audio.cpp deve essere aggiornato per le pagine Audio. Disattiva le notifiche se non usi mai Audio.",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 16c0563573e..4bbd8285540 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -1803,8 +1803,6 @@ export const ja = {
showLlamaUpdatesDescription: "新しいモデルを実行するための新しい llama.cpp ビルドが利用可能になったときに通知します。トレーニングのみを行う場合はオフにしてください。",
showLoadedModels: "読み込み済みモデルのインジケーター",
showLoadedModelsDescription: "現在メモリ上にあるすべてのモデル(チャット、音声、画像、動画)を一覧表示する小さなカードを右下に表示します。各モデルを解放するボタンが付いています。",
- showWhisperUpdates: "whisper.cpp のアップデート通知",
- showWhisperUpdatesDescription: "音声認識モデル向けの新しい whisper.cpp ビルドが利用可能になったときに通知します。音声を文字起こししない場合はオフにしてください。",
showAudioCppUpdates: "audio.cpp のアップデート通知",
showAudioCppUpdatesDescription:
"音声ページに必要な audio.cpp ランタイムの更新があるときに通知します。音声機能を使わない場合はオフにしてください。",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index 98469db2484..357afd667f7 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -1811,9 +1811,6 @@ export const ko = {
showLoadedModels: "로드된 모델 표시기",
showLoadedModelsDescription:
"현재 메모리에 있는 모든 모델(채팅, 음성, 이미지, 비디오)을 오른쪽 아래 작은 카드에 표시하고, 각각을 해제하는 버튼을 제공합니다.",
- showWhisperUpdates: "whisper.cpp 업데이트 알림",
- showWhisperUpdatesDescription:
- "음성 인식 모델을 위한 최신 whisper.cpp 빌드가 있으면 알립니다. 오디오를 전사하지 않는다면 끄세요.",
showAudioCppUpdates: "audio.cpp 업데이트 알림",
showAudioCppUpdatesDescription:
"오디오 페이지에 필요한 audio.cpp 런타임 업데이트가 있으면 알립니다. 오디오를 사용하지 않는다면 끄세요.",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index eb73dca40b1..90f156238b7 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -1822,9 +1822,6 @@ export const ptBR = {
showLoadedModels: "Indicador de modelos carregados",
showLoadedModelsDescription:
"Mostra um pequeno cartão no canto inferior direito listando todos os modelos atualmente na memória (chat, fala, imagem, vídeo), com um botão para liberar cada um.",
- showWhisperUpdates: "Notificações de atualização do whisper.cpp",
- showWhisperUpdatesDescription:
- "Notifica quando uma versão mais recente do whisper.cpp está disponível para modelos de fala para texto. Desative se você nunca transcreve áudio.",
showAudioCppUpdates: "Notificações de atualização do audio.cpp",
showAudioCppUpdatesDescription:
"Notifica quando o runtime do audio.cpp precisa de uma atualização para as páginas de Áudio. Desative se você nunca usa Áudio.",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index d6ca27ed11f..b827b64ec0b 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -1820,9 +1820,6 @@ export const ru = {
showLoadedModels: "Индикатор загруженных моделей",
showLoadedModelsDescription:
"Показывает в правом нижнем углу небольшую карточку со всеми моделями, находящимися сейчас в памяти (чат, речь, изображения, видео), и кнопку для выгрузки каждой из них.",
- showWhisperUpdates: "Уведомления об обновлениях whisper.cpp",
- showWhisperUpdatesDescription:
- "Уведомлять о доступности новой сборки whisper.cpp для моделей распознавания речи. Отключите, если вы не расшифровываете аудио.",
showAudioCppUpdates: "Уведомления об обновлениях audio.cpp",
showAudioCppUpdatesDescription:
"Уведомлять, когда среде выполнения audio.cpp нужно обновление для страниц «Аудио». Отключите, если вы не пользуетесь аудио.",
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index 7f06269074e..7c2fde8c8d7 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -1987,9 +1987,6 @@ export const sv = {
showLoadedModels: "Indikator för inlästa modeller",
showLoadedModelsDescription:
"Visa ett litet kort i nedre högra hörnet med alla modeller som för närvarande finns i minnet (chatt, tal, bild, video), med en knapp för att mata ut var och en.",
- showWhisperUpdates: "Aviseringar om whisper.cpp-uppdateringar",
- showWhisperUpdatesDescription:
- "Avisera när en nyare whisper.cpp-version finns för tal-till-text-modeller. Stäng av om du aldrig transkriberar ljud.",
showAudioCppUpdates: "Aviseringar om audio.cpp-uppdateringar",
showAudioCppUpdatesDescription:
"Avisera när audio.cpp-körmiljön behöver uppdateras för ljudsidorna. Stäng av om du aldrig använder ljud.",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index 653ef524e53..d00dc91a93e 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -1795,9 +1795,6 @@ export const zhCN = {
showLoadedModels: "已加载模型指示器",
showLoadedModelsDescription:
"在右下角显示一张小卡片,列出当前位于内存中的所有模型(聊天、语音、图像、视频),并为每个模型提供卸载按钮。",
- showWhisperUpdates: "whisper.cpp 更新通知",
- showWhisperUpdatesDescription:
- "当有可用于语音识别模型的新版 whisper.cpp 构建时通知你。如果不需要转写音频,可以关闭此项。",
showAudioCppUpdates: "audio.cpp 更新通知",
showAudioCppUpdatesDescription:
"当音频页面所需的 audio.cpp 运行时需要更新时通知你。如果从不使用音频功能,可以关闭此项。",
diff --git a/studio/frontend/tests/llama-job-lifecycle.test.ts b/studio/frontend/tests/llama-job-lifecycle.test.ts
index 05621ad0482..ec07b609aaf 100644
--- a/studio/frontend/tests/llama-job-lifecycle.test.ts
+++ b/studio/frontend/tests/llama-job-lifecycle.test.ts
@@ -425,3 +425,39 @@ test("chat settings offer the llama.cpp update only for a llama.cpp release", ()
assert.match(sheet, /mtpUpdatable && llamaUpdateStatus\?\.llama\.update_available/);
assert.doesNotMatch(sheet, /llamaUpdateStatus\?\.update_available/);
});
+
+// whisper.cpp rides along: its own releases never open the card, so it has no notification setting.
+test("whisper.cpp is listed in the update card but never opens it", () => {
+ const banner = readSrc("components/llama-update-banner.tsx");
+ assert.match(banner, /const due: UpdateComponentFlags = \{[^}]*whisper: whisperRetry,/);
+ assert.match(banner, /const muted: UpdateComponentFlags = \{[^}]*whisper: !whisperRetry,/);
+ assert.match(
+ banner,
+ /const whisperRetry =\s*status\?\.job\.state === "error" && status\.job\.whisperFailed;/,
+ );
+ const general = readSrc("features/settings/tabs/general-tab.tsx");
+ assert.doesNotMatch(general, /channel="whisper"/);
+ const listed = ["whisper.cpp"] as const;
+ assert.equal(
+ updateBannerAllowed(
+ listed,
+ { llama: false, whisper: false, audio: false },
+ { llama: false, whisper: true, audio: false },
+ false,
+ ),
+ false,
+ );
+});
+
+// a failed whisper.cpp phase keeps its Retry after a reload, when no earlier open state is held.
+test("a failed whisper.cpp phase reopens the card for its retry", () => {
+ assert.equal(
+ updateBannerAllowed(
+ ["whisper.cpp"],
+ { llama: false, whisper: true, audio: false },
+ { llama: false, whisper: false, audio: false },
+ false,
+ ),
+ true,
+ );
+});
diff --git a/studio/frontend/tests/llama-update-offer-key.test.ts b/studio/frontend/tests/llama-update-offer-key.test.ts
index 398b658813a..ba7197a3bf6 100644
--- a/studio/frontend/tests/llama-update-offer-key.test.ts
+++ b/studio/frontend/tests/llama-update-offer-key.test.ts
@@ -7,7 +7,7 @@ import * as lifecycle from "../src/lib/llama-job-lifecycle.ts";
import type * as HookModule from "../src/hooks/use-llama-update-check.ts";
import { loadWithStubs } from "./helpers/module-stubs.ts";
-const { offerKey } = loadWithStubs<typeof HookModule>(
+const { offerKey, offerKeyMatches } = loadWithStubs<typeof HookModule>(
new URL("../src/hooks/use-llama-update-check.ts", import.meta.url),
{
react: {},
@@ -67,3 +67,32 @@ test("without an audio.cpp offer the key matches keys stored before audio joined
);
assert.equal(offerKey(status({ ...none })), offerKey(status(null)));
});
+
+test("a new whisper.cpp release does not change the suppression key", () => {
+ const withWhisper = {
+ ...status(null),
+ whisper: { ...none, update_available: true, installed_tag: "v1.9.5-unsloth.4", latest_tag: "v1.9.5-unsloth.5" },
+ } as unknown as HookModule.LlamaUpdateStatus;
+ assert.equal(offerKey(withWhisper), offerKey(status(null)));
+});
+
+test("a suppression stored with the whisper.cpp release still matches the same offer", () => {
+ const withWhisper = {
+ ...status(null),
+ whisper: { ...none, update_available: true, installed_tag: "v1.9.5-unsloth.4", latest_tag: "v1.9.5-unsloth.5" },
+ } as unknown as HookModule.LlamaUpdateStatus;
+ const stored = JSON.stringify({
+ llama: ["b1", "b2"],
+ whisper: ["v1.9.5-unsloth.4", "v1.9.5-unsloth.5"],
+ migration: null,
+ });
+ assert.equal(offerKeyMatches(stored, withWhisper), true);
+ assert.equal(offerKeyMatches(offerKey(withWhisper), withWhisper), true);
+ const newerWhisper = {
+ ...withWhisper,
+ whisper: { ...withWhisper.whisper, latest_tag: "v1.9.5-unsloth.6" },
+ } as unknown as HookModule.LlamaUpdateStatus;
+ assert.equal(offerKeyMatches(stored, newerWhisper), true);
+ const newerLlama = { ...withWhisper, llama: { ...withWhisper.llama, latest_tag: "b3" } };
+ assert.equal(offerKeyMatches(stored, newerLlama), false);
+});
diff --git a/tests/studio/playwright_update_banner_layout.py b/tests/studio/playwright_update_banner_layout.py
index 78caecfe7e8..f19dfafda51 100644
--- a/tests/studio/playwright_update_banner_layout.py
+++ b/tests/studio/playwright_update_banner_layout.py
@@ -181,7 +181,6 @@ LLAMA_CHANGELOG = {
"release_url": "https://github.com/unslothai/llama.cpp/releases/tag/b10333-mix-e34b418",
"error": None,
}
-# whisper.cpp renames the shared runtime card instead of adding a banner.
WHISPER_STATUS = dict(
LLAMA_STATUS,
llama_update_available = False,
@@ -195,6 +194,19 @@ WHISPER_STATUS = dict(
"skip_reason": None,
},
)
+AUDIO_STATUS = dict(
+ LLAMA_STATUS,
+ llama_update_available = False,
+ update_component = "audio",
+ component = "audio.cpp",
+ audio = {
+ "update_available": True,
+ "installed_tag": "v0.9.0-unsloth.1",
+ "latest_tag": "v0.9.1-unsloth.1",
+ "update_size_bytes": None,
+ "skip_reason": None,
+ },
+)
# pending runtimes share one card with one row each.
BUNDLE_STATUS = dict(
LLAMA_STATUS,
@@ -957,7 +969,7 @@ def exercise_skip_undo(page, label: str) -> None:
toggle.click()
skip.click()
notice.wait_for(state = "visible", timeout = 5_000)
- # whisper.cpp defaults to biweekly, so the card was recorded as shown and is no longer due.
+ # audio.cpp defaults to biweekly, so the card was recorded as shown and is no longer due.
undo.click()
try:
card.wait_for(state = "visible", timeout = 5_000)
@@ -1238,19 +1250,20 @@ def main() -> int:
if path == "/":
exercise_llama_changelog(page, f"{size} {name}")
- # whisper.cpp must reuse the shared runtime card.
+ # whisper.cpp rides along with llama.cpp and audio.cpp: alone it never opens the runtime card.
llama_payload[0] = WHISPER_STATUS
boot(page, "/")
- facts = measure(page, f"{width}x{height} new chat whisper")
+ cards = page.locator('[data-testid="llama-update-banner"]').count()
check(
- f"{width}x{height}: whisper.cpp reuses the one runtime card",
- page.locator('[data-testid="llama-update-banner"]').count() <= 1
- and "whisper.cpp" in facts["llamaText"],
- f"text={facts['llamaText']!r}",
+ f"{width}x{height}: a whisper.cpp-only release opens no runtime card",
+ cards == 0,
+ f"cards={cards}",
)
if (width, height) == (VIEWPORTS[2:5] if SPOT else VIEWPORTS)[0]:
- exercise_skip_undo(page, f"{width}x{height} whisper")
- exercise_skip_on_auth_route(page, f"{width}x{height} whisper")
+ llama_payload[0] = AUDIO_STATUS
+ boot(page, "/")
+ exercise_skip_undo(page, f"{width}x{height} audio")
+ exercise_skip_on_auth_route(page, f"{width}x{height} audio")
llama_payload[0] = BUNDLE_STATUS
boot(page, "/")