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 Han032d109d98ba
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index a05c689205c..591f2fb9d78 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -475,7 +475,11 @@ class FastModel(FastBaseModel):
pass
if load_in_4bit and load_in_8bit:
- raise RuntimeError("Unsloth: Can only load in 4bit or 8bit, not both!")
+ raise RuntimeError(
+ "Unsloth: Can only load in 4bit or 8bit, not both!\n"\
+ "Also, we by default set `load_in_4bit = True`.\n"\
+ "If you want 8bit finetuning, set both `load_in_4bit = False` and `load_in_8bit = True`"
+ )
if load_in_4bit: pass
elif load_in_8bit: pass
elif not load_in_4bit and not load_in_8bit and not full_finetuning: