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
ee989f6d
Commit
ee989f6d
authored
Mar 26, 2026
by
laibao
Browse files
refactor(rocm): 提取 unified flash 的 block_size 判定逻辑
parent
ea9b8584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vllm/platforms/rocm.py
vllm/platforms/rocm.py
+6
-6
No files found.
vllm/platforms/rocm.py
View file @
ee989f6d
...
@@ -305,17 +305,17 @@ class RocmPlatform(Platform):
...
@@ -305,17 +305,17 @@ class RocmPlatform(Platform):
f
"is not MLA type while requested for MLA backend."
f
"is not MLA type while requested for MLA backend."
)
)
use_unified_flash
=
(
is_non64_block_multiple_64
=
(
block_size
is
not
None
block_size
!=
64
and
block_size
!=
64
and
block_size
%
64
==
0
and
block_size
%
64
==
0
)
use_unified_flash
=
(
is_non64_block_multiple_64
and
head_size
==
256
and
head_size
==
256
)
)
if
(
if
(
envs
.
VLLM_USE_FLASH_ATTN_PA
envs
.
VLLM_USE_FLASH_ATTN_PA
and
block_size
is
not
None
and
is_non64_block_multiple_64
and
block_size
!=
64
and
block_size
%
64
==
0
and
head_size
!=
256
and
head_size
!=
256
):
):
logger
.
info_once
(
logger
.
info_once
(
...
...
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