[compile] Initialize passes at VllmBackend init (#35216)

Signed-off-by: angelayi <yiangela7@gmail.com>
This commit is contained in:
Angela Yi
2026-03-20 11:40:33 -07:00
committed by GitHub
parent 37aadf6237
commit 12fd17eb51
3 changed files with 19 additions and 5 deletions
+2 -2
View File
@@ -32,9 +32,9 @@ from vllm.platforms import current_platform
def test_compile_config_repr_succeeds():
# setup: VllmBackend mutates the config object
# Note: VllmBackend.__init__ already calls configure_post_pass()
config = VllmConfig()
backend = VllmBackend(config)
backend.configure_post_pass()
_ = VllmBackend(config)
# test that repr(config) succeeds
val = repr(config)