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: don't block the event loop with time.sleep in async load_checkpoint (#6135)

Abhinavc84ba48dd64c
diff --git a/studio/backend/routes/export.py b/studio/backend/routes/export.py
index abb89a13dae..ef37daa158e 100644
--- a/studio/backend/routes/export.py
+++ b/studio/backend/routes/export.py
@@ -78,8 +78,7 @@ async def load_checkpoint(
for _ in range(60): # up to 30s
if not trn.is_training_active():
break
- import time
- time.sleep(0.5)
+ await asyncio.sleep(0.5)
else:
logger.warning("Training subprocess did not exit within 30s, proceeding anyway")
except Exception as e: