From 936b79ff9b913030171d9d40f7fc53fc60823b5a Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 30 Oct 2025 05:53:43 -0700 Subject: [PATCH] Update vision.py --- unsloth/models/vision.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py index eb284a4a83..9ec8d7d09b 100644 --- a/unsloth/models/vision.py +++ b/unsloth/models/vision.py @@ -511,7 +511,10 @@ class FastBaseModel: if full_finetuning: os.environ["UNSLOTH_ENABLE_FULL_FINETUNING"] = "1" if dtype == torch.bfloat16: - print("Unsloth: Using bfloat16 full finetuning which cuts memory usage by 50%.") + 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: