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

Daniel Han106d35fe8a32
diff --git a/unsloth/kernels/rms_layernorm.py b/unsloth/kernels/rms_layernorm.py
index 0dc4be6ba74..4074d3a502a 100644
--- a/unsloth/kernels/rms_layernorm.py
+++ b/unsloth/kernels/rms_layernorm.py
@@ -138,7 +138,7 @@ class Fast_RMS_Layernorm(torch.autograd.Function):
def forward(ctx, X, W, eps : float, gemma : bool = False):
shape = X.shape
dim : int = shape[-1]
- X = X.view(-1, dim)
+ X : torch.Tensor = X.view(-1, dim)
n_rows : int
n_cols : int
n_rows, n_cols = X.shape