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 llama.py
Daniel Han74f9c9e1fd00
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 378431ec526..f34968c3a65 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1699,9 +1699,9 @@ class FastLlamaModel:elif dtype == torch.bfloat16 and not SUPPORTS_BFLOAT16:logger.warning_once("Device does not support bfloat16. Will change to float16.")dtype = torch.float16- elif dtype == torch.float16 and SUPPORTS_BFLOAT16:- logger.warning_once("Device supports bfloat16 but you selected float16. Will change to bfloat16.")- dtype = torch.bfloat16+ # elif dtype == torch.float16 and SUPPORTS_BFLOAT16:+ # logger.warning_once("Device supports bfloat16 but you selected float16. Will change to bfloat16.")+ # dtype = torch.bfloat16assert(dtype == torch.float16 or dtype == torch.bfloat16 or dtype == torch.float32)