Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
7ab643e4
Unverified
Commit
7ab643e4
authored
May 01, 2025
by
Alexei-V-Ivanov-AMD
Committed by
GitHub
Apr 30, 2025
Browse files
FIxing the AMD test failures caused by PR#16457 (#17511)
Signed-off-by:
Alexei V. Ivanov
<
alexei.ivanov@amd.com
>
parent
afb4429b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
docker/Dockerfile.rocm
docker/Dockerfile.rocm
+0
-1
vllm/model_executor/layers/rotary_embedding.py
vllm/model_executor/layers/rotary_embedding.py
+1
-1
No files found.
docker/Dockerfile.rocm
View file @
7ab643e4
...
@@ -118,4 +118,3 @@ ENV TOKENIZERS_PARALLELISM=false
...
@@ -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"]
vllm/model_executor/layers/rotary_embedding.py
View file @
7ab643e4
...
@@ -80,7 +80,7 @@ def _apply_rotary_emb(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor,
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment