Skip to content

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.

Update loader.py

Daniel Han657580cd67e7
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 2b8ad86b25a..4c6c91f6fc6 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