You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[PyTorch] Preserve waiting-queue stats and report attention-DP idle only after all ranks drain #22030
In the current PyTorch executor, _fetch_and_enqueue_requests() moves intake requests into waiting_queue, while _update_iter_stats() counts the queued request/token fields from the intake queue alone. A request can consequently disappear from those queue counters before it is scheduled. Iteration stats are also emitted only after forward execution, so a loop blocked before a forward has no queue snapshot to export.
Expected behavior
Count accepted waiting requests and remaining unscheduled prefill work, excluding scheduled work, control envelopes and dummy padding. Export zero-duration queue snapshots when no forward executes. Periodic empty idle snapshots must require the existing all-attention-DP-rank idle decision, with no live or retiring requests or pending transfers.
A rank running an attention-DP dummy forward must retain zero scheduled requests/tokens and the measured normal iteration duration. An empty local schedule alone must never establish engine idleness.
Validation plan
CPU regressions for intake-to-waiting handoff, chunked prefill, ADP queue aggregation, global-idle gating, dummy timing preservation, and pending-stats ordering. Multi-GPU execution is needed to qualify real attention-DP scheduling.
Activity
[NVIDIA#22030][test] Consolidate FPM regression coverage
[NVIDIA#22030][fix] Address review: KV stats side effects, incrementa…
[NVIDIA#22030][fix] Publish idle heartbeats from rank 0 without wakin…
[NVIDIA#22030][test] Make the idle heartbeat tests independent of timing
[NVIDIA#22030][fix] Mark queue snapshots explicitly and keep the FCFS…
[NVIDIA#22030][fix] Report queued counters per attention-DP rank and …
[NVIDIA#22030][fix] Count measured records only in the multi-frontend…
[#22030][fix] Preserve prefill backlog and coordinate attention-DP id…