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.

Don't use revision when loading model_config and is_peft=True (#1949)

Wilson Wuc5e163db74c6
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 6eee360d25f..1d0e9289665 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -199,7 +199,6 @@ class FastLanguageModel(FastLlamaModel):
model_config = AutoConfig.from_pretrained(
model_name,
token = token,
- revision = revision,
trust_remote_code = trust_remote_code,
)
pass