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]d8564a05b482
diff --git a/unsloth/import_fixes.py b/unsloth/import_fixes.pyindex 67d9bf286d0..858e910c205 100644--- a/unsloth/import_fixes.py+++ b/unsloth/import_fixes.py@@ -22,6 +22,7 @@ import loggingUNSLOTH_ENABLE_LOGGING = os.environ.get("UNSLOTH_ENABLE_LOGGING", "0") == "1"+def Version(version):try:new_version = str(version)@@ -30,13 +31,14 @@ def Version(version):raise Exception(str(e))new_version = new_version.group(0).rstrip(".")if new_version != version:- new_version += ".1" # Add .1 for dev / alpha / beta / rc+ new_version += ".1" # Add .1 for dev / alpha / beta / rcreturn TrueVersion(new_version)except:from inspect import getframeinfo, stack+caller = getframeinfo(stack()[1][0])raise RuntimeError(- f"Unsloth: Could not get version for `{version}`\n"\+ f"Unsloth: Could not get version for `{version}`\n"f"File name = [{caller.filename}] Line number = [{caller.lineno}]")