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.

[pre-commit.ci] auto fixes from pre-commit.com hooks

pre-commit-ci[bot]851cb2af6838
diff --git a/studio/backend/routes/models.py b/studio/backend/routes/models.py
index 1331aa5fd39..6b54faa0a9e 100644
--- a/studio/backend/routes/models.py
+++ b/studio/backend/routes/models.py
@@ -649,7 +649,11 @@ async def get_gguf_download_progress(
break
total_progress_bytes = downloaded_bytes + in_progress_bytes
- progress = min(total_progress_bytes / expected_bytes, 0.99) if expected_bytes > 0 else 0
+ progress = (
+ min(total_progress_bytes / expected_bytes, 0.99)
+ if expected_bytes > 0
+ else 0
+ )
# Only report 1.0 when all bytes are in completed files (not in-progress)
if expected_bytes > 0 and downloaded_bytes >= expected_bytes:
progress = 1.0