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.

fix: handle None job_id before first training run

Roland Tannous1e04149ddf49
diff --git a/studio/backend/routes/training.py b/studio/backend/routes/training.py
index 5df2a777de3..58ee3a075ca 100644
--- a/studio/backend/routes/training.py
+++ b/studio/backend/routes/training.py
@@ -306,7 +306,7 @@ async def get_training_status(
"""
try:
backend = get_training_backend()
- job_id: str = getattr(backend, "current_job_id", "")
+ job_id: str = getattr(backend, "current_job_id", "") or ""
# Check if training is active
is_active = backend.is_training_active()
@@ -455,7 +455,7 @@ async def stream_training_progress(
async def event_generator():
backend = get_training_backend()
- job_id: str = getattr(backend, "current_job_id", "")
+ job_id: str = getattr(backend, "current_job_id", "") or ""
# ── Helpers ──────────────────────────────────────────────
def build_progress(