Skip to content

[PyTorch] Preserve waiting-queue stats and report attention-DP idle only after all ranks drain #22030

Closed

Description

@tedzhouhk

Source-level behavior

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

  1. added
    Scale-out
    Pytorch
    on Nov 10, 2026
  2. added 7 commits that reference this issue on Nov 10, 2026
  3. added a commit that references this issue on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PytorchScale-out

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions