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
Update loader.py
Daniel Han811a86007da2
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex fee6dd730d4..1a325820d55 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -546,7 +546,12 @@ class FastModel(FastBaseModel):os.environ["UNSLOTH_FORCE_CUSTOM_DTYPE"] = "torch.float16;if name.endswith(('_proj', 'fc1', 'fc2', 'codebook', 'head')): module.to(torch.float16)"elif "olmo-2" in model_name.lower() and transformers_version < Version("4.50.0.dev0"):raise RuntimeError("Unsloth: OLMo-2 only works on transformers >= 4.50.0." + NIGHTLY)- elif auto_model is not None:+ elif "modernbert" in model_name.lower():+ # Disable compiling for now - errors out!+ os.environ["UNSLOTH_COMPILE_DISABLE"] = "1"+ pass++ if auto_model is not None:# All other models need to disable static cacheos.environ["UNSLOTH_DISABLE_STATIC_GENERATION"] = "1"pass