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
668ec4ef
"tests/kernels/attention/test_blocksparse_attention.py" did not exist on "e97f802b2d74861af77997691a7d1c36498f6dca"
Commit
668ec4ef
authored
Aug 21, 2024
by
zhuwenwen
Browse files
Update refactoring operation
parent
8a325c18
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
vllm/attention/ops/paged_attn.py
vllm/attention/ops/paged_attn.py
+22
-22
vllm/model_executor/layers/activation.py
vllm/model_executor/layers/activation.py
+1
-1
No files found.
vllm/attention/ops/paged_attn.py
View file @
668ec4ef
vllm/model_executor/layers/activation.py
View file @
668ec4ef
...
...
@@ -36,7 +36,7 @@ class SiluAndMul(CustomOp):
output_shape
=
(
x
.
shape
[:
-
1
]
+
(
d
,
))
out
=
torch
.
empty
(
output_shape
,
dtype
=
x
.
dtype
,
device
=
x
.
device
)
if
envs
.
VLLM_USE_OPT_OP
:
ops
.
silu_and_mul
(
out
,
x
)
ops
.
silu_and_mul
_opt
(
out
,
x
)
else
:
ops
.
silu_and_mul
(
out
,
x
)
return
out
...
...
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