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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Qwen 2.5 Coder
Daniel Han58810bf37ec1
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 7f07bea4c54..47a57024a26 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -2317,7 +2317,8 @@ class FastLlamaModel:layer.self_attn.apply_qkv = apply_lora_qkvn_qkv += 1else:- if model_type != "qwen2":+ if model_type == "qwen2": n_qkv += 1+ else:logger.warning_once("Not an error, but Unsloth cannot patch Attention layers with our manual autograd engine since either LoRA adapters\n"\"are not enabled or a bias term (like in Qwen) is used."diff --git a/unsloth/models/mapper.py b/unsloth/models/mapper.pyindex 10e40ab7c61..d4f1278e1db 100644--- a/unsloth/models/mapper.py+++ b/unsloth/models/mapper.py@@ -384,22 +384,54 @@ __INT_TO_FLOAT_MAPPER = \"unsloth/Qwen2.5-Math-72B-Instruct","Qwen/Qwen2.5-Math-72B-Instruct",),+ "unsloth/Qwen2.5-Coder-0.5B-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-0.5B",+ "Qwen/Qwen2.5-Coder-0.5B",+ ),"unsloth/Qwen2.5-Coder-1.5B-bnb-4bit" : ("unsloth/Qwen2.5-Coder-1.5B","Qwen/Qwen2.5-Coder-1.5B",),+ "unsloth/Qwen2.5-Coder-3B-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-3B",+ "Qwen/Qwen2.5-Coder-3B",+ ),"unsloth/Qwen2.5-Coder-7B-bnb-4bit" : ("unsloth/Qwen2.5-Coder-7B","Qwen/Qwen2.5-Coder-7B",),+ "unsloth/Qwen2.5-Coder-14B-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-14B",+ "Qwen/Qwen2.5-Coder-14B",+ ),+ "unsloth/Qwen2.5-Coder-32B-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-32B",+ "Qwen/Qwen2.5-Coder-32B",+ ),+ "unsloth/Qwen2.5-Coder-0.5B-Instruct-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-Instruct-0.5B",+ "Qwen/Qwen2.5-Coder-Instruct-0.5B",+ ),"unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit" : ("unsloth/Qwen2.5-Coder-Instruct-1.5B","Qwen/Qwen2.5-Coder-Instruct-1.5B",),+ "unsloth/Qwen2.5-Coder-3B-Instruct-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-3B-Instruct",+ "Qwen/Qwen2.5-Coder-3B-Instruct",+ ),"unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit" : ("unsloth/Qwen2.5-Coder-7B-Instruct","Qwen/Qwen2.5-Coder-7B-Instruct",),+ "unsloth/Qwen2.5-Coder-14B-Instruct-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-14B-Instruct",+ "Qwen/Qwen2.5-Coder-14B-Instruct",+ ),+ "unsloth/Qwen2.5-Coder-32B-Instruct-bnb-4bit" : (+ "unsloth/Qwen2.5-Coder-32B-Instruct",+ "Qwen/Qwen2.5-Coder-32B-Instruct",+ ),"unsloth/Llama-3.2-1B-bnb-4bit" : ("unsloth/Llama-3.2-1B","meta-llama/Llama-3.2-1B",