mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-27 11:34:25 +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.rotary_dim,
|
||||||
self.is_neox_style,
|
self.is_neox_style,
|
||||||
)
|
)
|
||||||
else:
|
return query, key
|
||||||
# ops.rotary_embedding() is an in-place operation
|
return self.forward_cuda(positions, query, key)
|
||||||
# that updates the query and key tensors.
|
|
||||||
self.forward_cuda(positions, query, key)
|
|
||||||
return query, key
|
|
||||||
|
|
||||||
def forward_xpu(
|
def forward_xpu(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user