mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-13 22:14:41 +08:00
Revert "[compile][startup] Disable C++ compilation of symbolic shapes" (#22122)
Signed-off-by: Xiao Liu <xiszishu@gmail.com>
This commit is contained in:
parent
73e1b9b1d4
commit
554df8a6a2
@ -267,15 +267,8 @@ 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
|
with patch.object(InliningInstructionTranslator, 'inline_call',
|
||||||
# of symbolic shape guards can improve guard overhead. But, since
|
patched_inline_call):
|
||||||
# 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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user