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: join prior pump thread before starting new training job
Roland Tannousf3aeceeb2479
diff --git a/studio/backend/core/training/training.py b/studio/backend/core/training/training.pyindex cf2238ba30a..642b1e8e276 100644--- a/studio/backend/core/training/training.py+++ b/studio/backend/core/training/training.py@@ -101,6 +101,14 @@ class TrainingBackend:logger.warning("Training subprocess already running")return False+ # Join prior pump thread to prevent it from consuming events+ # from the new job's queue (it reads self._event_queue dynamically).+ if self._pump_thread is not None and self._pump_thread.is_alive():+ self._pump_thread.join(timeout=5.0)+ if self._pump_thread.is_alive():+ logger.warning("Previous pump thread did not exit within 5s")+ self._pump_thread = None+# Reset stateself._should_stop = Falseself._progress = TrainingProgress(is_training=True, status_message="Initializing training...")