mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-08 01:38:46 +08:00
[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:
parent
9ef3d5b875
commit
0825197bee
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user