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
87789c83
Unverified
Commit
87789c83
authored
Feb 13, 2026
by
Richard Zou
Committed by
GitHub
Feb 13, 2026
Browse files
[Misc] vLLM's --enforce-eager should turn off compile and cudagraphs only (#34523)
Signed-off-by:
Richard Zou
<
zou3519@gmail.com
>
parent
bcd65c1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
vllm/config/vllm.py
vllm/config/vllm.py
+7
-7
No files found.
vllm/config/vllm.py
View file @
87789c83
...
...
@@ -728,13 +728,13 @@ class VllmConfig:
"precision for chunked prefill triton kernels."
)
if
(
self
.
optimization_level
>
OptimizationLevel
.
O0
and
self
.
model_config
is
not
None
and
self
.
model_config
.
enforce_eager
)
:
logger
.
warning
(
"Enforce eager set, overriding optimization level to -O0"
)
self
.
optimization_level
=
OptimizationLevel
.
O0
if
self
.
model_config
is
not
None
and
self
.
model_config
.
enforce_eager
:
logger
.
warning
(
"Enforce eager set, disabling torch.compile and CUDAGraphs. "
"This is equivalent to setting -cc.mode=none -cc.cudagraph_mode=none"
)
self
.
compilation_config
.
mode
=
CompilationMode
.
NONE
self
.
compilation_config
.
cudagraph_mode
=
CUDAGraphMode
.
NONE
if
self
.
compilation_config
.
backend
==
"eager"
or
(
self
.
compilation_config
.
mode
is
not
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