[torch.compile] transparent compilation with more logging (#12246)

Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
youkaichao
2025-01-21 19:32:55 +08:00
committed by GitHub
parent a94eee4456
commit c81081fece
4 changed files with 50 additions and 7 deletions
+2
View File
@@ -198,6 +198,8 @@ def _support_torch_compile(
f" {dims} for argument {k} with type {type(arg)}.")
# here, it is the starting point of the `torch.compile` process
start_monitoring_torch_compile(self.vllm_config)
logger.debug("Start compiling function %s",
self.original_code_object)
# if we don't use custom dispatcher, we can directly call the
# compiled function and let torch.compile handle the dispatching,