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]d0f3e4d32e4a
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 9bf02beb30c..701e6f633ca 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1121,7 +1121,7 @@ def _get_statistics(statistics = None, force_download = True):
statistics = "runpod"
except Exception:
pass
-
+
# Fallback to env-key detection
if statistics is None:
if "\nKAGGLE_" in keynames:
@@ -1169,7 +1169,7 @@ def _get_statistics(statistics = None, force_download = True):
statistics = try_vllm_check()
except:
statistics = "other"
-
+
if statistics is not None:
import tempfile
from huggingface_hub import snapshot_download
@@ -1178,9 +1178,7 @@ def _get_statistics(statistics = None, force_download = True):
if has_internet():
def stats_check():
- with tempfile.TemporaryDirectory(
- ignore_cleanup_errors = True
- ) as f:
+ with tempfile.TemporaryDirectory(ignore_cleanup_errors = True) as f:
snapshot_download(
f"unslothai/{statistics}",
force_download = True,