From c6a7ba5e28423d3cc62cdaace410b5bf323b7005 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 23:11:16 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- unsloth/kernels/rope_embedding.py | 6 ------ unsloth/models/phi.py | 3 --- 2 files changed, 9 deletions(-) diff --git a/unsloth/kernels/rope_embedding.py b/unsloth/kernels/rope_embedding.py index 5b03111cb6..d311ab3791 100644 --- a/unsloth/kernels/rope_embedding.py +++ b/unsloth/kernels/rope_embedding.py @@ -465,8 +465,6 @@ def inplace_rope_embedding(Q, K, cos, sin, position_ids): return Q, K - - @torch.compiler.disable def fast_partial_rope_embedding(Q, K, cos, sin, rotary_dim: int): """Apply RoPE only to the first rotary_dim features of Q and K using the fast kernel. @@ -486,8 +484,6 @@ def fast_partial_rope_embedding(Q, K, cos, sin, rotary_dim: int): return Q, K - - def inplace_partial_rope_embedding(Q, K, cos, sin, position_ids, rotary_dim: int): """Apply RoPE only to the first rotary_dim features of Q and K using the slow kernel. @@ -504,5 +500,3 @@ def inplace_partial_rope_embedding(Q, K, cos, sin, position_ids, rotary_dim: int Q[..., :rotary_dim] = Q_rot2 K[..., :rotary_dim] = K_rot2 return Q, K - - diff --git a/unsloth/models/phi.py b/unsloth/models/phi.py index cb832d53d7..be0bc3b62f 100644 --- a/unsloth/models/phi.py +++ b/unsloth/models/phi.py @@ -390,6 +390,3 @@ class FastPhiModel(FastLlamaModel): trust_remote_code = trust_remote_code, **kwargs, ) - - -