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
83f74c69
Unverified
Commit
83f74c69
authored
May 15, 2025
by
Luka Govedič
Committed by
GitHub
May 14, 2025
Browse files
[Fix][ROCm] Enforce eager for all encoder-decoder models on ROCm (#18154)
Signed-off-by:
Luka Govedič
<
lgovedic@redhat.com
>
parent
2dff0935
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
vllm/config.py
vllm/config.py
+8
-3
No files found.
vllm/config.py
View file @
83f74c69
...
...
@@ -906,12 +906,17 @@ class ModelConfig:
def
_verify_cuda_graph
(
self
)
->
None
:
self
.
max_seq_len_to_capture
=
min
(
self
.
max_seq_len_to_capture
,
self
.
max_model_len
)
# CUDAGraph capture not supported for enc-dec models and mllama on ROCm
ROCM_UNSUPPORTED_MODELS
=
[
'mllama'
]
if
(
self
.
hf_config
.
model_type
in
ROCM_UNSUPPORTED_MODELS
and
not
self
.
enforce_eager
and
current_platform
.
is_rocm
()):
unsupported_rocm
=
(
self
.
hf_config
.
model_type
in
ROCM_UNSUPPORTED_MODELS
or
self
.
is_encoder_decoder
)
if
(
unsupported_rocm
and
not
self
.
enforce_eager
and
current_platform
.
is_rocm
()):
logger
.
warning
(
"CUDA graph is not supported for %s on ROCm yet, fallback "
"to
the
eager mode."
,
self
.
hf_config
.
model_type
)
"to eager mode."
,
self
.
hf_config
.
model_type
)
self
.
enforce_eager
=
True
def
_verify_bnb_config
(
self
)
->
None
:
...
...
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