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
a4454e94
Unverified
Commit
a4454e94
authored
Aug 18, 2025
by
Xiao
Committed by
GitHub
Aug 18, 2025
Browse files
chore: disable enable_cpp_symbolic_shape_guards (#23048)
Signed-off-by:
Xiao Liu
<
xiszishu@gmail.com
>
parent
14006840
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
vllm/compilation/decorators.py
vllm/compilation/decorators.py
+17
-1
No files found.
vllm/compilation/decorators.py
View file @
a4454e94
...
@@ -267,8 +267,24 @@ def _support_torch_compile(
...
@@ -267,8 +267,24 @@ def _support_torch_compile(
code
.
co_filename
)
code
.
co_filename
)
return
inline_call
(
parent
,
func
,
args
,
kwargs
)
return
inline_call
(
parent
,
func
,
args
,
kwargs
)
# Disable the C++ compilation of symbolic shape guards. C++-fication
# of symbolic shape guards can improve guard overhead. But, since
# vllm skip guards anyways, setting this flag to False can improve
# compile time.
dynamo_config_patches
=
{}
try
:
_
=
torch
.
_dynamo
.
config
.
enable_cpp_symbolic_shape_guards
dynamo_config_patches
[
"enable_cpp_symbolic_shape_guards"
]
=
False
except
AttributeError
:
# Note: this config is not available in torch 2.6, we can skip
# if the config doesn't exist
logger
.
debug
(
"enable_cpp_symbolic_shape_guards config not available"
)
with
patch
.
object
(
InliningInstructionTranslator
,
'inline_call'
,
with
patch
.
object
(
InliningInstructionTranslator
,
'inline_call'
,
patched_inline_call
):
patched_inline_call
),
torch
.
_dynamo
.
config
.
patch
(
**
dynamo_config_patches
):
output
=
self
.
compiled_callable
(
*
args
,
**
kwargs
)
output
=
self
.
compiled_callable
(
*
args
,
**
kwargs
)
return
output
return
output
...
...
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