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 gemma2.py
Daniel Han9f36b83db071
diff --git a/unsloth/models/gemma2.py b/unsloth/models/gemma2.pyindex ea9f53e7db1..6858f52573c 100644--- a/unsloth/models/gemma2.py+++ b/unsloth/models/gemma2.py@@ -62,7 +62,7 @@ if HAS_FLASH_ATTENTION_SOFTCAPPING:# [TODO] We must randomnly use torch.compile?# I checked the gradients and formulas and I'm sure it's correct.# I'm stumped :([email protected](fullgraph = True, dynamic = True, options = torch_compile_options)[email protected](fullgraph = False, dynamic = True, options = torch_compile_options)def fast_rms_layernorm_gemma2_compiled(layernorm, X, gemma = True):old_dtype = X.dtypeX = X.float()