Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ def infer_loop(self):
recover_paused=self.control_state_machine.try_recover_paused_reqs(),
)

if self.support_overlap:
# The previous infer thread releases forward before its GPU work finishes.
# Keep the next DP collective behind that work to avoid overlapping NCCL
# with the previous DeepEP/MTP kernels.
torch.cuda.current_stream().wait_stream(g_infer_context.get_overlap_stream())

dp_prefill_req_nums, dp_decode_req_nums = self._dp_all_gather_prefill_and_decode_req_num(
prefill_reqs=prefill_reqs, decode_reqs=decode_reqs
)
Expand Down
Loading