[Model Refactoring] Remove torch compile dependency in DSv4 (#43746)

Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
This commit is contained in:
Woosuk Kwon
2026-05-28 14:26:25 +00:00
committed by GitHub
parent 864990e8d9
commit 9957e4d240
8 changed files with 270 additions and 24 deletions
+5
View File
@@ -5182,6 +5182,11 @@ class GPUModelRunner(
and not self.parallel_config.use_ubatching
):
self.model = BreakableCUDAGraphWrapper(self.model, self.vllm_config)
drafter = getattr(self, "drafter", None)
if drafter is not None and hasattr(drafter, "model"):
drafter.model = BreakableCUDAGraphWrapper(
drafter.model, self.vllm_config
)
elif (
cudagraph_mode.has_full_cudagraphs()
and not self.parallel_config.use_ubatching