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 Han565d2ce6f1ce
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index f9981f56eab..8fc480d1491 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -1073,7 +1073,7 @@ class LlamaExtendedRotaryEmbedding(torch.nn.Module):
device = "cuda"
max_position_embeddings = config.max_position_embeddings
pass
-
+
self.dim = dim
self.max_position_embeddings = max_position_embeddings
self.base = base