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
f1077dda
Commit
f1077dda
authored
Aug 22, 2024
by
zhuwenwen
Browse files
Update refactoring operation of pa binding
parent
e06b5899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
csrc/torch_bindings.cpp
csrc/torch_bindings.cpp
+2
-2
No files found.
csrc/torch_bindings.cpp
View file @
f1077dda
...
...
@@ -59,7 +59,7 @@ TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
" int tp_rank, int blocksparse_local_blocks,"
" int blocksparse_vert_stride, int blocksparse_block_size,"
" int blocksparse_head_sliding_step) -> ()"
);
ops
.
impl
(
"paged_attention_v1"
,
torch
::
kCUDA
,
&
paged_attention_v1
);
ops
.
impl
(
"paged_attention_v1
_opt
"
,
torch
::
kCUDA
,
&
paged_attention_v1
_opt
);
// PagedAttention V2 (opt).
ops
.
def
(
...
...
@@ -73,7 +73,7 @@ TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
" int tp_rank, int blocksparse_local_blocks,"
" int blocksparse_vert_stride, int blocksparse_block_size,"
" int blocksparse_head_sliding_step) -> ()"
);
ops
.
impl
(
"paged_attention_v2"
,
torch
::
kCUDA
,
&
paged_attention_v2
);
ops
.
impl
(
"paged_attention_v2
_opt
"
,
torch
::
kCUDA
,
&
paged_attention_v2
_opt
);
// Activation ops
// Activation function used in SwiGLU.
...
...
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