[Bugfix][ROCm][DeepSeek] Fix for forward_hip in rope for DeepSeek (#27373)

Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
This commit is contained in:
Gregory Shtrasberg 2025-10-23 13:43:53 -04:00 committed by GitHub
parent 9ef3d5b875
commit 0825197bee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,11 +165,8 @@ class RotaryEmbedding(CustomOp):
self.rotary_dim,
self.is_neox_style,
)
else:
# ops.rotary_embedding() is an in-place operation
# that updates the query and key tensors.
self.forward_cuda(positions, query, key)
return query, key
return query, key
return self.forward_cuda(positions, query, key)
def forward_xpu(
self,