mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-09 18:07:15 +08:00
[BugFix] Fix DBO hang (#25625)
Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com>
This commit is contained in:
parent
916bd9204d
commit
13cc7f5370
@ -366,7 +366,8 @@ class UBatchWrapper:
|
|||||||
cudagraph_runtime_mode=CUDAGraphMode.NONE)
|
cudagraph_runtime_mode=CUDAGraphMode.NONE)
|
||||||
with self.sm_control:
|
with self.sm_control:
|
||||||
return self._capture_ubatches(ubatch_metadata, self.model)
|
return self._capture_ubatches(ubatch_metadata, self.model)
|
||||||
elif num_tokens in self.cudagraphs:
|
elif num_tokens in self.cudagraphs \
|
||||||
|
and cudagraph_runtime_mode is CUDAGraphMode.FULL:
|
||||||
cudagraph_metadata = self.cudagraphs[num_tokens]
|
cudagraph_metadata = self.cudagraphs[num_tokens]
|
||||||
cudagraph_metadata.cudagraph.replay()
|
cudagraph_metadata.cudagraph.replay()
|
||||||
return cudagraph_metadata.outputs
|
return cudagraph_metadata.outputs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user