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 Hana8ddc39482a3
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex 4566302ed02..0414d544608 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -54,11 +54,11 @@ def _get_dtype(dtype):"bfloat16": torch.bfloat16,torch.bfloat16: torch.bfloat16,}- if dtype in __DTYPE_MAP:- return __DTYPE_MAP[dtype]+ if dtype is None or dtype == None: return None+ if dtype in __DTYPE_MAP: return __DTYPE_MAP[dtype]else:- print(f"Unsloth: {dtype} is not recognized, so we'll default to torch.float16")- return torch.float16+ print(f"Unsloth: {dtype} is not recognized, so we'll default to None")+ return Nonepasspass