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
ffd8e40d
Commit
ffd8e40d
authored
Apr 30, 2025
by
zhuwenwen
Browse files
skip apply_rotary_emb from vllm_fa
parent
daefd764
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/rotary_embedding.py
vllm/model_executor/layers/rotary_embedding.py
+1
-1
No files found.
vllm/model_executor/layers/rotary_embedding.py
View file @
ffd8e40d
...
...
@@ -77,7 +77,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
positional embeddings.
"""
if
current_platform
.
is_cuda_alike
():
if
current_platform
.
is_cuda_alike
()
and
not
current_platform
.
is_rocm
()
:
from
vllm.vllm_flash_attn.layers.rotary
import
apply_rotary_emb
return
apply_rotary_emb
(
x
.
unsqueeze
(
0
),
cos
,
sin
,
not
is_neox_style
).
squeeze
(
0
)
...
...
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