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
9659bc7f
Unverified
Commit
9659bc7f
authored
Aug 01, 2025
by
Animesh Jain
Committed by
GitHub
Aug 01, 2025
Browse files
[compile][startup] Disable C++ compilation of symbolic shapes (#20836)
Signed-off-by:
Animesh Jain
<
anijain@umich.edu
>
parent
3277e8f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
vllm/compilation/decorators.py
vllm/compilation/decorators.py
+9
-2
No files found.
vllm/compilation/decorators.py
View file @
9659bc7f
...
@@ -267,8 +267,15 @@ def _support_torch_compile(
...
@@ -267,8 +267,15 @@ def _support_torch_compile(
code
.
co_filename
)
code
.
co_filename
)
return
inline_call
(
parent
,
func
,
args
,
kwargs
)
return
inline_call
(
parent
,
func
,
args
,
kwargs
)
with
patch
.
object
(
InliningInstructionTranslator
,
'inline_call'
,
# Disable the C++ compilation of symbolic shape guards. C++-fication
patched_inline_call
):
# of symbolic shape guards can improve guard overhead. But, since
# vllm skip guards anyways, setting this flag to False can improve
# compile time.
with
torch
.
_dynamo
.
config
.
patch
(
"enable_cpp_symbolic_shape_guards"
,
False
),
patch
.
object
(
InliningInstructionTranslator
,
'inline_call'
,
patched_inline_call
):
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