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 vision.py
Daniel Han8f7e0164dfcd
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 9ec8d7d09ba..d6a9228b810 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -511,10 +511,11 @@ class FastBaseModel:if full_finetuning:os.environ["UNSLOTH_ENABLE_FULL_FINETUNING"] = "1"if dtype == torch.bfloat16:- print(- f"Unsloth: Using bfloat16 full finetuning which cuts memory usage by 50%.\n"- f"To enable float32 training, use `float32_mixed_precision = True` during FastLanguageModel.from_pretrained"- )+ if float32_mixed_precision != True:+ print(+ f"Unsloth: Using bfloat16 full finetuning which cuts memory usage by 50%.\n"+ f"To enable float32 training, use `float32_mixed_precision = True` during FastLanguageModel.from_pretrained"+ )else:print("Unsloth: Float16 full finetuning uses more memory since we upcast weights to float32.")else: