From 657580cd67e7f3b16a27da008d3a6afb0f9553cf Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Fri, 17 Oct 2025 05:19:26 -0700 Subject: [PATCH] Update loader.py --- unsloth/models/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py index 2b8ad86b25..4c6c91f6fc 100644 --- a/unsloth/models/loader.py +++ b/unsloth/models/loader.py @@ -201,7 +201,7 @@ class FastLanguageModel(FastLlamaModel): pass pass # Check if 4bit is allowed specifically for AMD - if not ALLOW_BITSANDBYTES: + if not ALLOW_BITSANDBYTES and not use_exact_model_name: print("Unsloth: AMD currently is not stable with 4bit bitsandbytes. Disabling for now.") load_in_4bit = False @@ -640,7 +640,7 @@ class FastModel(FastBaseModel): "please pass in `qat_scheme` in `FastLanguageModel.get_peft_model(...)` instead." ) # Check if 4bit is allowed specifically for AMD - if not ALLOW_BITSANDBYTES: + if not ALLOW_BITSANDBYTES and not use_exact_model_name: print("Unsloth: AMD currently is not stable with 4bit bitsandbytes. Disabling for now.") load_in_4bit = False