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 layernorm.py
Daniel Han873f245009f4
diff --git a/unsloth/kernels/layernorm.py b/unsloth/kernels/layernorm.pyindex c65b5412ff9..cfafa4a11b8 100644--- a/unsloth/kernels/layernorm.py+++ b/unsloth/kernels/layernorm.py@@ -120,7 +120,7 @@ class Fast_Layernorm(torch.autograd.Function):ctx.eps = epsctx.BLOCK_SIZE = BLOCK_SIZEctx.num_warps = num_warps- ctx.save_for_backward(X, W, r, mu)+ ctx.save_for_backward(X, W, b, r, mu)return Y.view(*shape)pass@@ -129,7 +129,7 @@ class Fast_Layernorm(torch.autograd.Function):shape = dY.shapedim = shape[-1]dY = dY.view(-1, dim)- X, W, r, mu = ctx.saved_tensors+ X, W, b, r, mu = ctx.saved_tensorsn_rows, n_cols = dY.shapelayernorm_backward[(n_rows,)](