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
Log the real reason the Decision API model failed to load (#12491)
Nilayc6363d35d335
diff --git a/studio/backend/core/systemone/laya_runtime.py b/studio/backend/core/systemone/laya_runtime.pyindex 4489a5f925d..7af744ccdb8 100644--- a/studio/backend/core/systemone/laya_runtime.py+++ b/studio/backend/core/systemone/laya_runtime.py@@ -539,7 +539,7 @@ def _load(checkpoint: Checkpoint) -> None:agent, device = _load_checkpoint(checkpoint)except Exception as exc:message = f"Could not load {checkpoint.name}: {type(exc).__name__}: {exc}"- logger.warning("System One load failed: %s", message)+ logger.warning("System One load failed: %s", message, exc_info = True)with _state_lock:_failure = (checkpoint, message, time.monotonic() + FAILURE_BACKOFF_S)_loading = Nonediff --git a/studio/backend/tests/test_systemone.py b/studio/backend/tests/test_systemone.pyindex bca08ffb8e5..c4fa39f4529 100644--- a/studio/backend/tests/test_systemone.py+++ b/studio/backend/tests/test_systemone.py@@ -289,6 +289,23 @@ def test_failed_load_backs_off_and_reports_why(client, monkeypatch):assert attempts == ["laya-multilingual"]+def test_failed_load_logs_the_underlying_cause(client, monkeypatch, caplog):+ def fail(checkpoint):+ try:+ raise RuntimeError("HIP error: invalid device function")+ except RuntimeError as exc:+ raise ModuleNotFoundError("Could not import module 'AutoTokenizer'") from exc++ monkeypatch.setattr(laya_runtime, "_load_checkpoint", fail)+ with caplog.at_level("WARNING", logger = laya_runtime.__name__):+ response = _post(client)+ assert response.status_code == 503+ assert "HIP error" not in response.json()["detail"]["message"]+ [record] = [r for r in caplog.records if r.getMessage().startswith("System One load failed")]+ assert "HIP error: invalid device function" in caplog.text+ assert record.exc_info is not None++def test_settings_never_report_an_install(client):body = client.get("/api/settings/systemone").json()assert body["installing"] is False and body["error"] is None