[Perf] Low-latency CPU all-reduce for DP metadata syncs (#61767)

Signed-off-by: Nick Hill <nickhill123@gmail.com>
Co-authored-by: hjjq <50634613+hjjq@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Hill
2026-10-15 15:29:13 -07:00
committed by GitHub
co-authored by hjjq Claude Opus 5.5
parent 784d1fff0c
commit de7d70676d
7 changed files with 159 additions and 8 deletions
+2 -4
View File
@@ -302,10 +302,8 @@ def _sync_dp(
reduced[4] = int(allow_ubatching)
reduced[5] = 8 # num_reqs
with (
patch.object(dp_utils.dist, "all_reduce", lambda t, group: t.copy_(reduced)),
patch.object(dp_utils, "get_dp_group", lambda: SimpleNamespace(cpu_group=None)),
):
dp_group = SimpleNamespace(cpu_all_reduce_=lambda t: t.copy_(reduced))
with patch.object(dp_utils, "get_dp_group", lambda: dp_group):
return dp_utils.sync_cudagraph_and_dp_padding(
cudagraph_manager=cudagraph_manager,
desired_batch_desc=BatchExecutionDescriptor(