[Core] Pass donate_graph_module=True to standalone_compile (#39733)

Signed-off-by: Frederik Gossen <frgossen@meta.com>
This commit is contained in:
Frederik Gossen
2026-04-20 17:40:52 +00:00
committed by GitHub
parent 191e3fdaa1
commit 47fcb8ca68
+3
View File
@@ -295,6 +295,9 @@ class InductorStandaloneAdaptor(CompilerInterface):
},
}
if is_torch_equal_or_newer("2.13.0.dev"):
compile_kwargs["donate_graph_module"] = True # type: ignore[assignment]
use_aot: bool = supports_aot and envs.VLLM_USE_MEGA_AOT_ARTIFACT
# only add 'aot' parameter if both supported and enabled...
# this will set bundled_autograd_cache