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
fix(utils): add missing importlib import to fix NameError (#2134)
naliazheli472dd5462fdd
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 6a96e8d1f5b..0044c7e7616 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1243,6 +1243,7 @@ for j, function in enumerate(functions):except: continuepass+import importlibUSE_MODELSCOPE = os.environ.get("UNSLOTH_USE_MODELSCOPE", "0") == "1"if USE_MODELSCOPE:if importlib.util.find_spec("modelscope") is None: