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
5f2cacdb
Unverified
Commit
5f2cacdb
authored
Oct 03, 2025
by
Sage Moore
Committed by
GitHub
Oct 03, 2025
Browse files
Quick fix for IMA with the Prefix Prefill kernel during graph capture (#25983)
Signed-off-by:
Sage Moore
<
sage@neuralmagic.com
>
parent
aa5053e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
vllm/v1/attention/backends/rocm_attn.py
vllm/v1/attention/backends/rocm_attn.py
+8
-0
No files found.
vllm/v1/attention/backends/rocm_attn.py
View file @
5f2cacdb
...
@@ -83,6 +83,14 @@ class RocmAttentionMetadataBuilder(
...
@@ -83,6 +83,14 @@ class RocmAttentionMetadataBuilder(
# max_model_len will cause graph capture to be extremely
# max_model_len will cause graph capture to be extremely
# slow, so here we set it to 1.
# slow, so here we set it to 1.
attn_metadata
.
seq_lens
.
fill_
(
1
)
attn_metadata
.
seq_lens
.
fill_
(
1
)
if
envs
.
VLLM_V1_USE_PREFILL_DECODE_ATTENTION
:
# Here we set the query start locs to 0. This is to
# cover up an invalid memory access in the prefix_prefil kernel
# that we run into during graph capture (#25985)
common_attn_metadata
.
query_start_loc
.
zero_
()
common_attn_metadata
.
query_start_loc_cpu
.
zero_
()
return
attn_metadata
return
attn_metadata
def
build
(
self
,
def
build
(
self
,
...
...
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