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 Han630f2b5f66ec
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex 8547102a250..c5f170992ce 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -543,7 +543,7 @@ class FastModel(FastBaseModel):elif "csm-1b" in model_name.lower():os.environ["UNSLOTH_COMPILE_DISABLE"] = "1"os.environ["UNSLOTH_DISABLE_FAST_GENERATION"] = "1"- os.environ["UNSLOTH_FORCE_CUSTOM_DTYPE"] = "torch.floa16;if name.endswith(('_proj', 'fc1', 'fc2', 'codebook', 'head')): module.to(torch.float16)"+ 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)pass