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.

Update llm_assist.py

Roland Tannous063cdc6072a3
diff --git a/studio/backend/utils/datasets/llm_assist.py b/studio/backend/utils/datasets/llm_assist.py
index e78c462a6e3..e889ca28259 100644
--- a/studio/backend/utils/datasets/llm_assist.py
+++ b/studio/backend/utils/datasets/llm_assist.py
@@ -48,6 +48,10 @@ def precache_helper_gguf():
try:
from huggingface_hub import HfApi, hf_hub_download
+ from huggingface_hub.utils import disable_progress_bars, enable_progress_bars
+
+ disable_progress_bars()
+ logging.getLogger("huggingface_hub").setLevel(logging.WARNING)
# Find the GGUF file matching the variant
api = HfApi()
@@ -72,6 +76,11 @@ def precache_helper_gguf():
logger.warning(f"No GGUF matching variant '{variant}' in {repo}")
except Exception as e:
logger.warning(f"Failed to pre-cache helper GGUF: {e}")
+ finally:
+ try:
+ enable_progress_bars()
+ except Exception as e:
+ pass
def _run_with_helper(prompt: str, max_tokens: int = 256) -> Optional[str]: