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 llama.py

Daniel Han5eeffb89655d
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index 4e83e69d60d..3c4d8f3b387 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -1804,6 +1804,7 @@ class FastLlamaModel:
@staticmethod
def post_patch(model, tokenizer):
model, tokenizer = patch_model_and_tokenizer(model, tokenizer, downcast_rope = True)
+ return model, tokenizer
pass