Avoid bytecode hook and simplify TorchCompileWrapperWithCustomDipatch (#25110)
Signed-off-by: Laith Sakka <lsakka@meta.com>
This commit is contained in:
@@ -92,6 +92,7 @@ if TYPE_CHECKING:
|
||||
VLLM_TORCH_PROFILER_RECORD_SHAPES: bool = False
|
||||
VLLM_TORCH_PROFILER_WITH_PROFILE_MEMORY: bool = False
|
||||
VLLM_USE_AOT_COMPILE: bool = False
|
||||
VLLM_USE_BYTECODE_HOOK: bool = False
|
||||
VLLM_FORCE_AOT_LOAD: bool = False
|
||||
VLLM_TORCH_PROFILER_WITH_STACK: bool = True
|
||||
VLLM_TORCH_PROFILER_WITH_FLOPS: bool = False
|
||||
@@ -556,6 +557,11 @@ environment_variables: dict[str, Callable[[], Any]] = {
|
||||
# compilation is done in warmup phase and the compilation will be
|
||||
# reused in subsequent calls.
|
||||
"VLLM_USE_AOT_COMPILE": use_aot_compile,
|
||||
# Feature flag to enable/disable bytecode in
|
||||
# TorchCompileWithNoGuardsWrapper.
|
||||
"VLLM_USE_BYTECODE_HOOK": lambda: bool(
|
||||
int(os.environ.get("VLLM_USE_BYTECODE_HOOK", "1"))
|
||||
),
|
||||
# Force vllm to always load AOT compiled models from disk. Failure
|
||||
# to load will result in a hard error when this is enabled.
|
||||
# Will be ignored when VLLM_USE_AOT_COMPILE is disabled.
|
||||
|
||||
Reference in New Issue
Block a user