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]975e36f888e1
diff --git a/unsloth/save.py b/unsloth/save.py
index 359010dbe21..714df7682a8 100644
--- a/unsloth/save.py
+++ b/unsloth/save.py
@@ -130,11 +130,14 @@ ALLOWED_QUANTS = {
"q3_k_xs": "3-bit extra small quantization",
}
+
def has_curl():
return shutil.which("curl") is not None
+
CURL_FLAG = "-DLLAMA_CURL=ON" if has_curl() else "-DLLAMA_CURL=OFF"
+
def print_quantization_methods():
for key, value in ALLOWED_QUANTS.items():
print(f'"{key}" ==> {value}')