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
58de8cd6
Commit
58de8cd6
authored
Jan 10, 2026
by
zhuwenwen
Browse files
remove attn_masks
parent
99f4d1c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
vllm/attention/ops/paged_attn.py
vllm/attention/ops/paged_attn.py
+2
-4
No files found.
vllm/attention/ops/paged_attn.py
View file @
58de8cd6
...
@@ -135,8 +135,6 @@ class PagedAttention:
...
@@ -135,8 +135,6 @@ class PagedAttention:
blocksparse_vert_stride
:
int
=
0
,
blocksparse_vert_stride
:
int
=
0
,
blocksparse_block_size
:
int
=
64
,
blocksparse_block_size
:
int
=
64
,
blocksparse_head_sliding_step
:
int
=
0
,
blocksparse_head_sliding_step
:
int
=
0
,
attn_masks
:
Optional
[
torch
.
Tensor
]
=
None
,
attn_masks_stride
:
int
=
0
)
->
torch
.
Tensor
:
)
->
torch
.
Tensor
:
if
blocksparse_vert_stride
is
not
None
and
blocksparse_vert_stride
>
1
:
if
blocksparse_vert_stride
is
not
None
and
blocksparse_vert_stride
>
1
:
# use blocksparse paged attention
# use blocksparse paged attention
...
@@ -182,7 +180,7 @@ class PagedAttention:
...
@@ -182,7 +180,7 @@ class PagedAttention:
blocksparse_local_blocks
,
blocksparse_local_blocks
,
blocksparse_vert_stride
,
blocksparse_vert_stride
,
blocksparse_block_size
,
blocksparse_block_size
,
blocksparse_head_sliding_step
blocksparse_head_sliding_step
,
)
)
else
:
else
:
# Run PagedAttention V2.
# Run PagedAttention V2.
...
@@ -220,7 +218,7 @@ class PagedAttention:
...
@@ -220,7 +218,7 @@ class PagedAttention:
blocksparse_local_blocks
,
blocksparse_local_blocks
,
blocksparse_vert_stride
,
blocksparse_vert_stride
,
blocksparse_block_size
,
blocksparse_block_size
,
blocksparse_head_sliding_step
blocksparse_head_sliding_step
,
)
)
return
output
return
output
...
...
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