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
fix: increase SSE progress timeout to 30min and allow step-0 updates
Roland Tannous4f0fad215657
diff --git a/studio/backend/core/training/training.py b/studio/backend/core/training/training.pyindex e176ff3e690..fa8b3b5daf7 100644--- a/studio/backend/core/training/training.py+++ b/studio/backend/core/training/training.py@@ -35,7 +35,7 @@ class TrainingBackend:def _on_progress_update(self, progress: TrainingProgress):"""Callback for progress updates"""- if progress.step > 0 and progress.loss > 0:+ if progress.step >= 0 and progress.loss > 0:self.loss_history.append(progress.loss)self.lr_history.append(progress.learning_rate)self.step_history.append(progress.step)diff --git a/studio/backend/routes/training.py b/studio/backend/routes/training.pyindex 68dcb692530..20a5e1e2543 100644--- a/studio/backend/routes/training.py+++ b/studio/backend/routes/training.py@@ -542,7 +542,7 @@ async def stream_training_progress(# ── Live polling loop ────────────────────────────────────last_step = resume_from_step if resume_from_step is not None else -1no_update_count = 0- max_no_updates = 300 # Timeout after 5 minutes+ max_no_updates = 1800 # Timeout after 30 minutes (large models need time for compilation)while backend.is_training_active():try:@@ -596,7 +596,19 @@ async def stream_training_progress(# No steps yet, but training is active (model loading, etc.)no_update_count += 1if no_update_count % 5 == 0:- preparing_payload = build_progress(0, 0.0, 0.0, 0)+ # Pull total_steps and status from trainer so+ # the frontend can show "Tokenizing…" etc.+ tp_prep = getattr(+ getattr(backend, "trainer", None),+ "training_progress", None,+ )+ prep_total = (+ getattr(tp_prep, "total_steps", 0)+ if tp_prep else 0+ )+ preparing_payload = build_progress(+ 0, 0.0, 0.0, prep_total,+ )yield format_sse(preparing_payload.model_dump_json(),event="heartbeat",