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 Han28120b8a881b
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index e1c13315f7f..bfa94d86d7b 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -739,6 +739,8 @@ class FastModel(FastBaseModel):
"compatible with `full_finetuning=True`. If you wish to use QAT with LoRA, "
"please pass in `qat_scheme` in `FastLanguageModel.get_peft_model(...)` instead."
)
+ if qat_scheme == "phone-deployment":
+ qat_scheme = "int8-int4"
# Check if 4bit is allowed specifically for AMD
if not ALLOW_BITSANDBYTES and not use_exact_model_name:
if load_in_4bit or load_in_8bit or model_name.lower().endswith("-bnb-4bit"):