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: send Decision API images to the MLX engine for Clef (#13126)

Long Yixinge0e35a0cca15
diff --git a/studio/backend/core/systemone/laya_runtime.py b/studio/backend/core/systemone/laya_runtime.py
index b06d5a6c8df..b14717f1402 100644
--- a/studio/backend/core/systemone/laya_runtime.py
+++ b/studio/backend/core/systemone/laya_runtime.py
@@ -173,6 +173,35 @@ def _mlx_target(checkpoint: Checkpoint) -> Checkpoint | None:
)
+def _mlx_reads_images(checkpoint: Checkpoint) -> bool:
+ """Whether the MLX form of an entry reads images: a Clef with its vision tower and processor, on an unsloth-zoo that reads them."""
+ if checkpoint.layout != "clef" or _mlx_target(checkpoint) is None:
+ return False
+ try:
+ from unsloth_zoo.mlx.decision import ClefModel
+ except Exception:
+ return False
+ if not getattr(ClefModel, "takes_images", False):
+ return False
+ if not checkpoint.is_local:
+ return True
+ import json
+
+ folder = Path(checkpoint.source).expanduser()
+ try:
+ config = json.loads((folder / "config.json").read_text(encoding = "utf-8"))
+ except (OSError, ValueError):
+ return False
+ return (
+ isinstance(config, dict)
+ and config.get("vision_config") is not None
+ and any(
+ (folder / name).is_file()
+ for name in ("processor_config.json", "preprocessor_config.json")
+ )
+ )
+
+
def _mlx_repos(companion) -> tuple:
return (companion.base, companion) if companion.base else (companion,)
@@ -236,17 +265,26 @@ def _mlx_dirs(checkpoint: Checkpoint, local_only: bool) -> tuple[Path, Path | No
return folders[-1], (folders[0] if len(folders) > 1 else None)
-def _mlx_choice(checkpoint: Checkpoint, images, questions, preference: str) -> Checkpoint | None:
- """Auto on Apple Silicon answers text through the MLX engine, unless only the llama.cpp form is at hand."""
+def _mlx_choice(
+ checkpoint: Checkpoint,
+ unread,
+ questions,
+ preference: str,
+ seen: bool = False,
+) -> Checkpoint | None:
+ """Auto on Apple Silicon prefers MLX unless only llama.cpp is at hand or MLX cannot read the images (`unread`); `seen` = it can."""
from .native_worker import request_gap
- if preference != "auto" or images or request_gap(questions or {}) is not None:
+ if preference != "auto" or unread or request_gap(questions or {}) is not None:
return None
if (target := _mlx_target(checkpoint)) is None:
return None
if _loaded == target and _agent is not None:
return target
native = _native_target(checkpoint)
+ if seen and native is not None and not _native_reads_images(native):
+ # Without a vision projector the llama.cpp form would refuse the images MLX reads.
+ return target
if native is not None and _native_unavailable(checkpoint, native) is None:
# A resident llama.cpp server keeps answering, and a downloaded GGUF serves before the MLX form is fetched.
if _loaded == native and _agent is not None:
@@ -382,17 +420,20 @@ def select(
"""(what serves this request, why Auto did not pick llama.cpp); raises for what nothing here can serve.
Auto takes llama.cpp when the entry has a GGUF and Studio's llama-server serves decisions, else PyTorch;
- on Apple Silicon it answers text through unsloth-zoo's MLX engine first.
- Images are llama.cpp only. Laya is always served by PyTorch, a GGUF entry otherwise by llama.cpp.
+ on Apple Silicon it answers through unsloth-zoo's MLX engine first.
+ Images are read by llama.cpp, and by MLX for a Clef. Laya is always served by PyTorch, a GGUF entry otherwise by llama.cpp.
"""
from utils.systemone_settings import get_backend
from .native_worker import request_gap
+ # Only route-checked images reach MLX: state images would be decoded unvalidated in this process.
+ unread = bool(state_images or (images and not _mlx_reads_images(checkpoint)))
if (preference or get_backend()) == MLX and checkpoint.layout in ("clef", GGUF):
- return _select_mlx(checkpoint, images or state_images), None
- # Images in the state keep a request off MLX only: every other route reads them as before.
- mlx = _mlx_choice(checkpoint, images or state_images, questions, preference or get_backend())
+ return _select_mlx(checkpoint, unread), None
+ mlx = _mlx_choice(
+ checkpoint, unread, questions, preference or get_backend(), bool(images) and not unread
+ )
if mlx is not None:
return mlx, None
if checkpoint.layout == GGUF:
@@ -439,13 +480,13 @@ def select(
return checkpoint, reason
-def _select_mlx(checkpoint: Checkpoint, images) -> Checkpoint:
+def _select_mlx(checkpoint: Checkpoint, unread) -> Checkpoint:
"""The MLX runtime answers through the engine or not at all, whatever llama.cpp has loaded or downloaded."""
- if images:
+ if unread:
raise Unavailable(
400,
"api_usage_error",
- "Images are served only by llama.cpp; set the Decision API runtime to Auto or llama.cpp.",
+ f"The MLX runtime does not read these images for {checkpoint.name}; set the Decision API runtime to Auto or llama.cpp.",
)
if not _engine_available():
reason = "The MLX runtime needs Apple Silicon with the Decision API on the GPU."
@@ -527,15 +568,20 @@ def native_ready(checkpoint) -> bool:
def input_modalities(checkpoint) -> list[str]:
- """What this entry reads here: images too when llama.cpp serves it with a vision projector."""
+ """What this entry reads here: images too when llama.cpp serves it with a vision projector, or MLX a Clef that has its tower."""
+ if mlx_ready(checkpoint) and _mlx_reads_images(checkpoint):
+ return ["text", "image"]
if not native_ready(checkpoint):
return ["text"]
- native = _native_target(checkpoint)
+ return ["text", "image"] if _native_reads_images(_native_target(checkpoint)) else ["text"]
+
+
+def _native_reads_images(native: Checkpoint) -> bool:
if native.is_local:
from .gguf_export_contract import served_files
files = served_files(Path(native.source).expanduser(), "clef")
- return ["text", "image"] if files is not None and files[2] is not None else ["text"]
- return ["text", "image"] if GGUF_COMPANIONS[native.name].mmproj else ["text"]
+ return files is not None and files[2] is not None
+ return bool(GGUF_COMPANIONS[native.name].mmproj)
def _native_gpu() -> bool:
@@ -881,7 +927,12 @@ class _EngineAgent:
self.model = None
_release_memory()
- def decide(self, state, questions: dict[str, dict[str, Any]]) -> dict[str, Any]:
+ def decide(
+ self,
+ state,
+ questions: dict[str, dict[str, Any]],
+ images = None,
+ ) -> dict[str, Any]:
from unsloth_zoo.mlx.decision import DecisionRequestError, DecisionUnsupportedError
# As on llama.cpp, a question without instructions is asked by its id.
@@ -918,7 +969,11 @@ class _EngineAgent:
f"The state is longer than the {limit} tokens this model reads beside a question. Shorten it.",
)
try:
- return self.model.answer(state, questions)
+ return (
+ self.model.answer(state, questions, images)
+ if images
+ else self.model.answer(state, questions)
+ )
except DecisionUnsupportedError as exc:
raise Unavailable(501, "not_supported_error", str(exc)) from None
except DecisionRequestError as exc:
@@ -2092,7 +2147,7 @@ def _route(checkpoint: Checkpoint, state, questions, images) -> dict[str, Any]:
def _state_has_images(state) -> bool:
- """Image parts of a chat-message state, which llama.cpp reads and the MLX engine refuses (as unsloth-zoo scans them)."""
+ """Image parts of a chat-message state, which llama.cpp reads; they keep a request off the MLX engine (as unsloth-zoo scans them)."""
messages = state.get("messages") if isinstance(state, dict) else state
for message in messages if isinstance(messages, list) else []:
content = message.get("content") if isinstance(message, dict) else None
@@ -2122,7 +2177,7 @@ def _decide(
_last_used = time.monotonic()
return result
if _is_mlx(checkpoint):
- result = agent.decide(state, questions)
+ result = agent.decide(state, questions, images)
_last_used = time.monotonic()
return {
"model": checkpoint.name,
diff --git a/studio/backend/tests/test_decision_serving.py b/studio/backend/tests/test_decision_serving.py
index 28d1e525e98..9c5fdcf2037 100644
--- a/studio/backend/tests/test_decision_serving.py
+++ b/studio/backend/tests/test_decision_serving.py
@@ -2,6 +2,7 @@
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
import asyncio
+import dataclasses
import json
import os
import shutil
@@ -612,8 +613,9 @@ def engine(home, monkeypatch, tmp_path):
done.set()
state = SimpleNamespace(loaded = [], asked = [], error = None, cached = set())
- def answer(state_, questions):
+ def answer(state_, questions, *images):
state.asked.append(questions)
+ state.read = (state_, images)
if state.error:
raise state.error("no")
answers = {name: {"type": "noul", "noul": 0.5} for name in questions}
@@ -690,7 +692,9 @@ def test_the_mlx_runtime_serves_only_through_the_engine(home, client, engine, mo
assert laya_runtime.select(kev)[0].backend == "mlx"
assert laya_runtime.mlx_ready(kev) and not laya_runtime.native_ready(kev)
assert _post(client).headers["x-unsloth-decision-backend"] == "mlx"
- with pytest.raises(laya_runtime.Unavailable, match = "Images are served only by llama.cpp"):
+ with pytest.raises(
+ laya_runtime.Unavailable, match = "MLX runtime does not read these images for kev-4b"
+ ):
laya_runtime.select(kev, ["png"])
(folder / "config.json").rename(folder / "adapter_config.json")
(folder / "model.safetensors").rename(folder / "adapter_model.safetensors")
@@ -877,6 +881,81 @@ def test_images_in_the_state_route_like_the_images_field(home, monkeypatch):
assert bool(seen[-1]) == routed
+def test_a_clef_with_its_vision_tower_reads_images_through_the_mlx_engine(
+ home, engine, monkeypatch
+):
+ served, folder = _clef_fine_tune(home, "clef_mlx_3"), home / "clef_mlx_3"
+ tuned, stock, kev = (
+ catalog.fine_tune(served),
+ catalog.CHECKPOINTS["clef-flash"],
+ catalog.CHECKPOINTS["kev-4b"],
+ )
+ zoo, image = sys.modules["unsloth_zoo.mlx.decision"], "data:image/png;base64,AA=="
+ vision = json.dumps({"vision_config": {}})
+
+ def reads(checkpoint):
+ try:
+ routed = laya_runtime.select(checkpoint, [image])[0].backend == "mlx"
+ except laya_runtime.Unavailable:
+ routed = False
+ assert routed == (laya_runtime.input_modalities(checkpoint) == ["text", "image"])
+ return routed
+
+ # An unsloth-zoo that reads no images, then one that does: a Clef needs its tower, and no other family reads them.
+ (folder / "config.json").write_text(vision, encoding = "utf-8")
+ (folder / "processor_config.json").write_text("{}", encoding = "utf-8")
+ assert not reads(tuned) and not reads(stock)
+ zoo.ClefModel = SimpleNamespace()
+ assert not reads(tuned) and not reads(stock)
+ zoo.ClefModel = SimpleNamespace(takes_images = True)
+ assert reads(tuned) and reads(stock) and not reads(kev)
+ (folder / "processor_config.json").rename(folder / "preprocessor_config.json")
+ assert reads(tuned)
+ (folder / "preprocessor_config.json").rename(folder / "p.json")
+ assert not reads(tuned)
+ (folder / "p.json").rename(folder / "processor_config.json")
+ (folder / "config.json").write_text("{}", encoding = "utf-8")
+ assert not reads(tuned)
+ (folder / "config.json").write_text(vision, encoding = "utf-8")
+ assert laya_runtime.select(tuned, [image], preference = "mlx")[0].backend == "mlx"
+ for refused in ((kev, [image], False), (tuned, None, True), (tuned, [image], True)):
+ with pytest.raises(
+ laya_runtime.Unavailable, match = "MLX runtime does not read these images"
+ ):
+ laya_runtime.select(refused[0], refused[1], preference = "mlx", state_images = refused[2])
+ (folder / "config.json").write_text("{}", encoding = "utf-8")
+ with pytest.raises(
+ laya_runtime.Unavailable, match = "does not read these images for clef-ft:clef_mlx_3"
+ ):
+ laya_runtime.select(tuned, [image], preference = "mlx")
+ (folder / "config.json").write_text(vision, encoding = "utf-8")
+ with monkeypatch.context() as patch:
+ patch.setattr(laya_runtime, "mlx_ready", lambda checkpoint: False)
+ assert laya_runtime.input_modalities(tuned) == ["text"]
+
+ # A resident llama.cpp server keeps answering, except the images it has no vision projector for.
+ native = dataclasses.replace(tuned, backend = "llama.cpp")
+ with monkeypatch.context() as patch:
+ patch.setattr(laya_runtime, "_native_target", lambda checkpoint: native)
+ patch.setattr(laya_runtime, "_native_unavailable", lambda *args: None)
+ patch.setattr(laya_runtime, "_loaded", native)
+ patch.setattr(laya_runtime, "_agent", object())
+ for projector, backends in (
+ (False, ["llama.cpp", "mlx"]),
+ (True, ["llama.cpp", "llama.cpp"]),
+ ):
+ patch.setattr(laya_runtime, "_native_reads_images", lambda native: projector)
+ routed = [laya_runtime.select(tuned, images)[0].backend for images in (None, [image])]
+ assert routed == backends
+
+ # The engine gets the images beside the state; a request without them is asked as before.
+ questions = {"q": {"type": "noul", "instructions": "i"}}
+ assert laya_runtime._route(tuned, "s", questions, [image])["_backend"] == "mlx"
+ assert engine.read == ("s", ([image],))
+ assert laya_runtime._route(tuned, "s", questions, None)["_backend"] == "mlx"
+ assert engine.read == ("s", ())
+
+
def test_auto_keeps_images_in_the_state_off_mlx(home, engine, monkeypatch):
kev = catalog.CHECKPOINTS["kev-4b"]
monkeypatch.setattr(laya_runtime, "_native_unavailable", lambda *args: None)
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index b37794029a5..7cddf749b77 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -2817,7 +2817,7 @@ export const ar = {
backendDescription:
"يشغّل الوضع التلقائي Clef عبر llama.cpp عندما يتوفر للنموذج إصدار GGUF، ويعود إلى PyTorch في غير ذلك. يقرأ llama.cpp الصور أيضًا.",
backendDescriptionMlx:
- "يشغّل الوضع التلقائي نصوص Clef عبر MLX على Apple Silicon، وعبر llama.cpp عندما يكون إصدار GGUF للنموذج وحده هو المحمّل أو المنزّل. يقرأ MLX النص فقط؛ ويقرأ llama.cpp الصور أيضًا.",
+ "يشغّل الوضع التلقائي Clef عبر MLX على Apple Silicon، وعبر llama.cpp عندما يكون إصدار GGUF للنموذج وحده هو المحمّل أو المنزّل. يقرأ MLX الصور لنماذج Clef فقط؛ ويقرأ llama.cpp الصور أيضًا.",
backendStatus: "بيئة التشغيل: {backend}",
backendNone: "غير متاحة",
mediaImages: "يقرأ النصوص والصور.",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index fbc37c230d4..51ff2854199 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -2861,7 +2861,7 @@ export const de = {
backendDescription:
"Automatisch stellt Clef über llama.cpp bereit, wenn das Modell einen GGUF-Build hat, und weicht sonst auf PyTorch aus. llama.cpp liest auch Bilder.",
backendDescriptionMlx:
- "Automatisch stellt Clef-Text auf Apple Silicon über MLX bereit und über llama.cpp, wenn nur der GGUF-Build des Modells geladen oder heruntergeladen ist. MLX liest nur Text; llama.cpp liest auch Bilder.",
+ "Automatisch stellt Clef auf Apple Silicon über MLX bereit und über llama.cpp, wenn nur der GGUF-Build des Modells geladen oder heruntergeladen ist. MLX liest Bilder nur für Clef-Modelle; llama.cpp liest auch Bilder.",
backendStatus: "Laufzeit: {backend}",
backendNone: "nicht verfügbar",
mediaImages: "Liest Text und Bilder.",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index 621150dad21..c8a1274d869 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -2889,7 +2889,7 @@ export const en = {
backendDescription:
"Auto serves Clef through llama.cpp when the model has a GGUF build and falls back to PyTorch otherwise. llama.cpp also reads images.",
backendDescriptionMlx:
- "Auto serves Clef text through MLX on Apple Silicon and through llama.cpp when only the model's GGUF build is loaded or downloaded. MLX reads text only. llama.cpp also reads images.",
+ "Auto serves Clef through MLX on Apple Silicon and through llama.cpp when only the model's GGUF build is loaded or downloaded. MLX reads images for Clef models only. llama.cpp also reads images.",
backendStatus: "Runtime: {backend}",
backendNone: "unavailable",
mediaImages: "Reads text and images.",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index f6c133a7519..d99a48107fd 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -2854,7 +2854,7 @@ export const es = {
backendDescription:
"Automático sirve Clef mediante llama.cpp cuando el modelo tiene una versión GGUF y recurre a PyTorch en caso contrario. llama.cpp también lee imágenes.",
backendDescriptionMlx:
- "Automático sirve el texto de Clef mediante MLX en Apple Silicon y mediante llama.cpp cuando solo la versión GGUF del modelo está cargada o descargada. MLX solo lee texto; llama.cpp también lee imágenes.",
+ "Automático sirve Clef mediante MLX en Apple Silicon y mediante llama.cpp cuando solo la versión GGUF del modelo está cargada o descargada. MLX solo lee imágenes con modelos Clef; llama.cpp también lee imágenes.",
backendStatus: "Entorno de ejecución: {backend}",
backendNone: "no disponible",
mediaImages: "Lee texto e imágenes.",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index 9a124a7b935..c3cf1eed601 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -2862,7 +2862,7 @@ export const fr = {
backendDescription:
"Automatique sert Clef via llama.cpp lorsque le modèle a une version GGUF, et se rabat sur PyTorch sinon. llama.cpp lit aussi les images.",
backendDescriptionMlx:
- "Automatique sert le texte de Clef via MLX sur Apple Silicon, et via llama.cpp lorsque seule la version GGUF du modèle est chargée ou téléchargée. MLX ne lit que le texte ; llama.cpp lit aussi les images.",
+ "Automatique sert Clef via MLX sur Apple Silicon, et via llama.cpp lorsque seule la version GGUF du modèle est chargée ou téléchargée. MLX ne lit les images que pour les modèles Clef ; llama.cpp lit aussi les images.",
backendStatus: "Moteur d'exécution : {backend}",
backendNone: "indisponible",
mediaImages: "Lit le texte et les images.",
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index 9ded8e8e695..0b563a29759 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -2928,7 +2928,7 @@ export const he = {
backendDescription:
"במצב אוטומטי Clef מוגש דרך llama.cpp כשלמודל יש גרסת GGUF, ואחרת דרך PyTorch. llama.cpp קורא גם תמונות.",
backendDescriptionMlx:
- "במצב אוטומטי טקסט של Clef מוגש דרך MLX ב-Apple Silicon, ודרך llama.cpp כשרק גרסת ה-GGUF של המודל טעונה או הורדה. MLX קורא טקסט בלבד; llama.cpp קורא גם תמונות.",
+ "במצב אוטומטי Clef מוגש דרך MLX ב-Apple Silicon, ודרך llama.cpp כשרק גרסת ה-GGUF של המודל טעונה או הורדה. MLX קורא תמונות רק במודלי Clef; llama.cpp קורא גם תמונות.",
backendStatus: "סביבת ריצה: {backend}",
backendNone: "לא זמין",
mediaImages: "קורא טקסט ותמונות.",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index e74fa26988e..8d3136a9752 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -2823,7 +2823,7 @@ export const hi = {
backendDescription:
"मॉडल का GGUF बिल्ड होने पर ऑटो Clef को llama.cpp से चलाता है, वरना PyTorch पर चला जाता है। llama.cpp इमेज भी पढ़ता है।",
backendDescriptionMlx:
- "Apple Silicon पर ऑटो Clef का टेक्स्ट MLX से चलाता है, और केवल मॉडल का GGUF बिल्ड लोड या डाउनलोड होने पर llama.cpp से। MLX केवल टेक्स्ट पढ़ता है; llama.cpp इमेज भी पढ़ता है।",
+ "Apple Silicon पर ऑटो Clef को MLX से चलाता है, और केवल मॉडल का GGUF बिल्ड लोड या डाउनलोड होने पर llama.cpp से। MLX केवल Clef मॉडल के लिए इमेज पढ़ता है; llama.cpp इमेज भी पढ़ता है।",
backendStatus: "रनटाइम: {backend}",
backendNone: "उपलब्ध नहीं",
mediaImages: "टेक्स्ट और इमेज पढ़ता है।",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index 5b703808814..66b90b563ae 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -2820,7 +2820,7 @@ export const it = {
backendDescription:
"Automatico serve Clef tramite llama.cpp quando il modello ha una build GGUF, altrimenti ripiega su PyTorch. llama.cpp legge anche le immagini.",
backendDescriptionMlx:
- "Automatico serve il testo di Clef tramite MLX su Apple Silicon e tramite llama.cpp quando solo la build GGUF del modello è caricata o scaricata. MLX legge solo testo; llama.cpp legge anche le immagini.",
+ "Automatico serve Clef tramite MLX su Apple Silicon e tramite llama.cpp quando solo la build GGUF del modello è caricata o scaricata. MLX legge le immagini solo per i modelli Clef; llama.cpp legge anche le immagini.",
backendStatus: "Runtime: {backend}",
backendNone: "non disponibile",
mediaImages: "Legge testo e immagini.",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 92753e8de73..f1f5e6f71b7 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -2787,7 +2787,7 @@ export const ja = {
backendDescription:
"自動では、モデルに GGUF ビルドがあれば Clef を llama.cpp で提供し、なければ PyTorch に切り替えます。llama.cpp は画像も読み取れます。",
backendDescriptionMlx:
- "自動では、Apple Silicon 上で Clef のテキストを MLX で提供し、モデルの GGUF ビルドだけが読み込み済みまたはダウンロード済みの場合は llama.cpp で提供します。MLX はテキストのみを読み取り、llama.cpp は画像も読み取れます。",
+ "自動では、Apple Silicon 上で Clef を MLX で提供し、モデルの GGUF ビルドだけが読み込み済みまたはダウンロード済みの場合は llama.cpp で提供します。MLX は Clef モデルでのみ画像を読み取り、llama.cpp は画像も読み取れます。",
backendStatus: "ランタイム: {backend}",
backendNone: "利用不可",
mediaImages: "テキストと画像を読み取ります。",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index fdbac527396..3f8cd85e3c5 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -2807,7 +2807,7 @@ export const ko = {
backendDescription:
"자동은 모델에 GGUF 빌드가 있으면 llama.cpp로 Clef를 제공하고, 없으면 PyTorch로 대체합니다. llama.cpp는 이미지도 읽습니다.",
backendDescriptionMlx:
- "자동은 Apple Silicon에서 Clef 텍스트를 MLX로 제공하고, 모델의 GGUF 빌드만 로드되었거나 다운로드된 경우 llama.cpp로 제공합니다. MLX는 텍스트만 읽고, llama.cpp는 이미지도 읽습니다.",
+ "자동은 Apple Silicon에서 Clef를 MLX로 제공하고, 모델의 GGUF 빌드만 로드되었거나 다운로드된 경우 llama.cpp로 제공합니다. MLX는 Clef 모델에서만 이미지를 읽고, llama.cpp는 이미지도 읽습니다.",
backendStatus: "런타임: {backend}",
backendNone: "사용할 수 없음",
mediaImages: "텍스트와 이미지를 읽습니다.",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index 1e26786893d..f36e06e8fed 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -2833,7 +2833,7 @@ export const ptBR = {
backendDescription:
"O automático serve o Clef pelo llama.cpp quando o modelo tem uma versão GGUF e recorre ao PyTorch caso contrário. O llama.cpp também lê imagens.",
backendDescriptionMlx:
- "O automático serve o texto do Clef pelo MLX no Apple Silicon e pelo llama.cpp quando apenas a versão GGUF do modelo está carregada ou baixada. O MLX lê apenas texto; o llama.cpp também lê imagens.",
+ "O automático serve o Clef pelo MLX no Apple Silicon e pelo llama.cpp quando apenas a versão GGUF do modelo está carregada ou baixada. O MLX lê imagens apenas com modelos Clef; o llama.cpp também lê imagens.",
backendStatus: "Runtime: {backend}",
backendNone: "indisponível",
mediaImages: "Lê texto e imagens.",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index 3ddf1304ff4..a1322609374 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -2828,7 +2828,7 @@ export const ru = {
backendDescription:
"В режиме «Авто» Clef работает через llama.cpp, если у модели есть сборка GGUF, а иначе через PyTorch. llama.cpp также читает изображения.",
backendDescriptionMlx:
- "В режиме «Авто» текст Clef на Apple Silicon обрабатывается через MLX, а через llama.cpp — если загружена или скачана только сборка GGUF модели. MLX читает только текст; llama.cpp также читает изображения.",
+ "В режиме «Авто» Clef на Apple Silicon обрабатывается через MLX, а через llama.cpp — если загружена или скачана только сборка GGUF модели. MLX читает изображения только для моделей Clef; llama.cpp также читает изображения.",
backendStatus: "Среда выполнения: {backend}",
backendNone: "недоступна",
mediaImages: "Читает текст и изображения.",
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index e40fef2a450..a4a3ee8d44e 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -3028,7 +3028,7 @@ export const sv = {
backendDescription:
"Automatisk kör Clef via llama.cpp när modellen har en GGUF-version och faller annars tillbaka på PyTorch. llama.cpp läser också bilder.",
backendDescriptionMlx:
- "Automatisk kör Clef-text via MLX på Apple Silicon och via llama.cpp när bara modellens GGUF-version är laddad eller nedladdad. MLX läser bara text; llama.cpp läser också bilder.",
+ "Automatisk kör Clef via MLX på Apple Silicon och via llama.cpp när bara modellens GGUF-version är laddad eller nedladdad. MLX läser bilder bara för Clef-modeller; llama.cpp läser också bilder.",
backendStatus: "Körmiljö: {backend}",
backendNone: "inte tillgänglig",
mediaImages: "Läser text och bilder.",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index b772667e636..4c56800287d 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -2766,7 +2766,7 @@ export const zhCN = {
backendDescription:
"自动模式下,模型有 GGUF 版本时通过 llama.cpp 提供 Clef,否则回退到 PyTorch。llama.cpp 还能读取图片。",
backendDescriptionMlx:
- "自动模式下,在 Apple Silicon 上通过 MLX 提供 Clef 文本;仅模型的 GGUF 版本已加载或已下载时通过 llama.cpp 提供。MLX 仅读取文本;llama.cpp 还能读取图片。",
+ "自动模式下,在 Apple Silicon 上通过 MLX 提供 Clef;仅模型的 GGUF 版本已加载或已下载时通过 llama.cpp 提供。MLX 仅为 Clef 模型读取图片;llama.cpp 还能读取图片。",
backendStatus: "运行时:{backend}",
backendNone: "不可用",
mediaImages: "可读取文本和图片。",