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
53056731
Unverified
Commit
53056731
authored
Mar 12, 2025
by
Yang.Tao
Committed by
GitHub
Mar 11, 2025
Browse files
fix some typos : supported_head_sizes (#14627)
parent
4cbf2867
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/attention/backends/blocksparse_attn.py
vllm/attention/backends/blocksparse_attn.py
+3
-3
No files found.
vllm/attention/backends/blocksparse_attn.py
View file @
53056731
...
@@ -335,11 +335,11 @@ class BlocksparseFlashAttentionImpl(AttentionImpl):
...
@@ -335,11 +335,11 @@ class BlocksparseFlashAttentionImpl(AttentionImpl):
self
.
sparse_block_size
=
self
.
blocksparse_params
.
block_size
self
.
sparse_block_size
=
self
.
blocksparse_params
.
block_size
self
.
head_sliding_step
=
self
.
blocksparse_params
.
head_sliding_step
self
.
head_sliding_step
=
self
.
blocksparse_params
.
head_sliding_step
suppored_head_sizes
=
PagedAttention
.
get_supported_head_sizes
()
suppor
t
ed_head_sizes
=
PagedAttention
.
get_supported_head_sizes
()
if
head_size
not
in
suppored_head_sizes
:
if
head_size
not
in
suppor
t
ed_head_sizes
:
raise
ValueError
(
raise
ValueError
(
f
"Head size
{
head_size
}
is not supported by PagedAttention. "
f
"Head size
{
head_size
}
is not supported by PagedAttention. "
f
"Supported head sizes are:
{
suppored_head_sizes
}
."
)
f
"Supported head sizes are:
{
suppor
t
ed_head_sizes
}
."
)
self
.
tp_size
=
get_tensor_model_parallel_world_size
()
self
.
tp_size
=
get_tensor_model_parallel_world_size
()
self
.
tp_rank
=
get_tensor_model_parallel_rank
()
self
.
tp_rank
=
get_tensor_model_parallel_rank
()
...
...
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