[Frontend] Change CompilationMode to a proper Enum (#28165)

Signed-off-by: Yanan Cao <gmagogsfm@gmail.com>
This commit is contained in:
Yanan Cao
2025-11-11 16:46:18 -08:00
committed by GitHub
parent 1788aa1efb
commit 48c879369f
6 changed files with 108 additions and 23 deletions

View File

@@ -31,7 +31,9 @@ class TorchCompileWrapperWithCustomDispatcher:
"""
def __init__(
self, compiled_callable: Callable | None = None, compilation_mode: int = 0
self,
compiled_callable: Callable | None = None,
compilation_mode: CompilationMode = CompilationMode.NONE,
):
vllm_config = get_current_vllm_config()
self.vllm_config = vllm_config