Revert "[compile] Initialize passes at VllmBackend init" (#37733)

This commit is contained in:
Simon Mo
2026-03-20 21:35:49 -07:00
committed by GitHub
parent 3ffa52009f
commit 1fa1e53a73
3 changed files with 5 additions and 19 deletions
-5
View File
@@ -380,11 +380,6 @@ def _support_torch_compile(
compilation_counter.num_models_seen += 1
self.compiled = False
# Skip if a parent class's @support_torch_compile already
# initialized the compile wrapper
if hasattr(self, "_compiled_callable"):
return
# Handled by monkeypatching `TorchCompileWithNoGuardsWrapper` into base class
TorchCompileWithNoGuardsWrapper.__init__(
self,