mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-21 02:55:29 +08:00
FIxing the AMD test failures caused by PR#16457 (#17511)
Signed-off-by: Alexei V. Ivanov <alexei.ivanov@amd.com>
This commit is contained in:
parent
afb4429b4f
commit
7ab643e425
@ -118,4 +118,3 @@ ENV TOKENIZERS_PARALLELISM=false
|
|||||||
ENV HIP_FORCE_DEV_KERNARG=1
|
ENV HIP_FORCE_DEV_KERNARG=1
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|
||||||
|
|||||||
@ -80,7 +80,7 @@ def _apply_rotary_emb(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor,
|
|||||||
is_neox_style: Whether to use the Neox-style or GPT-J-style rotary
|
is_neox_style: Whether to use the Neox-style or GPT-J-style rotary
|
||||||
positional embeddings.
|
positional embeddings.
|
||||||
"""
|
"""
|
||||||
if current_platform.is_cuda_alike():
|
if current_platform.is_cuda():
|
||||||
return apply_rotary_emb(x.unsqueeze(0), cos, sin,
|
return apply_rotary_emb(x.unsqueeze(0), cos, sin,
|
||||||
not is_neox_style).squeeze(0)
|
not is_neox_style).squeeze(0)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user