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

Daniel Hana5f26f4f7624
diff --git a/unsloth/kernels/rope_embedding.py b/unsloth/kernels/rope_embedding.py
index 1c981b3fc9a..a06d81a512b 100644
--- a/unsloth/kernels/rope_embedding.py
+++ b/unsloth/kernels/rope_embedding.py
@@ -19,9 +19,9 @@ from .utils import calculate_settings, torch_gpu_device
ROPE_GROUP_SIZE : int = 4
def _rope_embedding(
- Q, Q_row_stride,
- cos, cos_row_stride,
- sin, sin_row_stride,
+ Q, Q_row_stride: tl.constexpr,
+ cos, cos_row_stride: tl.constexpr,
+ sin, sin_row_stride: tl.constexpr,
seqlen,
head_dim : tl.constexpr,
n_heads : tl.constexpr,