From 022f3cea5327cc720a325c50931e1edcfdf2d32b Mon Sep 17 00:00:00 2001 From: TJian Date: Tue, 23 Dec 2025 01:28:22 +0900 Subject: [PATCH] [ROCm] [Critical]: Remove unused variable (#31156) Signed-off-by: tjtanaa --- csrc/fused_qknorm_rope_kernel.cu | 1 - 1 file changed, 1 deletion(-) diff --git a/csrc/fused_qknorm_rope_kernel.cu b/csrc/fused_qknorm_rope_kernel.cu index 5c23a90794594..a51e1a347e1d4 100644 --- a/csrc/fused_qknorm_rope_kernel.cu +++ b/csrc/fused_qknorm_rope_kernel.cu @@ -405,7 +405,6 @@ void fused_qk_norm_rope( qkv.scalar_type() == k_weight.scalar_type(), "qkv, q_weight and k_weight must have the same dtype"); - int64_t rotary_dim = cos_sin_cache.size(1); int64_t num_tokens = qkv.size(0); TORCH_CHECK(position_ids.size(0) == num_tokens, "Number of tokens in position_ids must match QKV");