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
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]b1dda4474583
diff --git a/studio/backend/routes/models.py b/studio/backend/routes/models.pyindex 9d92280274c..1e27b19b120 100644--- a/studio/backend/routes/models.py+++ b/studio/backend/routes/models.py@@ -612,9 +612,14 @@ async def get_gguf_download_progress():"""Return download progress by checking current size of cached GGUF files."""import re as _re+try:if not _re.fullmatch(r"[A-Za-z0-9._-]+/[A-Za-z0-9._-]+", repo_id):- return {"downloaded_bytes": 0, "expected_bytes": expected_bytes, "progress": 0}+ return {+ "downloaded_bytes": 0,+ "expected_bytes": expected_bytes,+ "progress": 0,+ }from huggingface_hub import constants as hf_constants@@ -634,7 +639,9 @@ async def get_gguf_download_progress(downloaded_bytes += f.stat().st_sizebreak- progress = min(downloaded_bytes / expected_bytes, 1.0) if expected_bytes > 0 else 0+ progress = (+ min(downloaded_bytes / expected_bytes, 1.0) if expected_bytes > 0 else 0+ )return {"downloaded_bytes": downloaded_bytes,"expected_bytes": expected_bytes,