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
Update gemma.py
Daniel Hanc360fcd526a4
diff --git a/unsloth/models/gemma.py b/unsloth/models/gemma.pyindex 408c55440cc..53d0bb51a1b 100644--- a/unsloth/models/gemma.py+++ b/unsloth/models/gemma.py@@ -223,6 +223,7 @@ class GemmaFixedRotaryEmbedding(torch.nn.Module):self.base = base# Dynamic RoPE we first set it to a max of 4 * 8192 tokens then we iteratively grow thisself.current_rope_size = min(4 * 8192, self.max_position_embeddings)+ print(dim, max_position_embeddings, base)# Build here to make `torch.jit.trace` work.self._set_cos_sin_cache(seq_len=self.current_rope_size, device=device, dtype=torch.get_default_dtype())