[4/N][torch.compile] clean up set_torch_compile_backend (#10401)
Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
@@ -32,14 +32,9 @@ class TorchCompileWrapperWithCustomDispatcher:
|
||||
# default compilation settings
|
||||
# compiling the forward method
|
||||
|
||||
# choose the compile backend
|
||||
|
||||
# if the user has set the backend, use it
|
||||
from vllm.plugins import get_torch_compile_backend
|
||||
backend = get_torch_compile_backend()
|
||||
if backend is None:
|
||||
from vllm.compilation.backends import select_default_backend
|
||||
backend = select_default_backend(compilation_level)
|
||||
from vllm.plugins import get_current_vllm_config
|
||||
backend = get_current_vllm_config(
|
||||
).compilation_config.init_backend()
|
||||
|
||||
compiled_callable = torch.compile(
|
||||
self.forward,
|
||||
|
||||
Reference in New Issue
Block a user