Repository navigation
Description
π Visual explainer: how the dataloader cursor advances past in-flight prompts at save β the three-pointers timeline and the saved/in-flight/never-dispatched split.
Summary
SC checkpointing (#3429) saves the dataloader cursor at the rollout pump's position while persisting only ready replay-buffer groups. Prompts that were in flight (or yielded-but-undispatched) at save time are behind the restored cursor yet absent from the buffer.
Scope of this issue: partial-rollout persistence. Even after the prompts themselves are re-enqueued on resume (requested in the #3429 review β see below), the partial generations are still discarded and re-run from scratch. Full correctness β resuming in-flight rollouts rather than restarting them β requires checkpointing partial rollout state through TQ/DataPlane, which is the planned follow-up this issue tracks.
Mechanism (at PR #3429 head c039949)
- The cursor advances at batch granularity the moment
for prompt_batch in self._dataloader:yields (single_controller.py#L375); dispatch inside the batch proceeds prompt-by-prompt, gated on buffer/in-flight permits (#L398-L400). _save_checkpointsnapshots that already-advanced cursor (#L698).TQReplayBuffer.state_dictpersists ready groups only; unready reservations are dropped (replay_buffer.py#L861) β and their prompts are unrecoverable from the buffer, sincereserve()storesmeta=Noneuntil commit (#L685).- The DataPlane is a fresh instance in the resumed job, so the checkpoint is the only carrier β nothing resumes the lost rollouts.
Why this matters beyond throughput
The drop is biased: long-generation prompts (agentic, long-context) are disproportionately likely to be in flight at any save boundary, so they are systematically the ones lost. in_order's top-up (single_controller.py#L380-L390) preserves the per-step group count but fills from fresh prompts; windowed preserves nothing.
Status / split of work
- In feat(sc): add checkpoint save/restore to SingleControllerΒ #3429 (requested in review): persist the pending prompts'
DatumSpecs (known driver-side at save time) and re-dispatch them through the normaladmit/permit path on resume. This restores exact-once prompt coverage; the in-flight generation work is still redone from scratch. - This issue (follow-up): checkpoint partial rollout state so in-flight generations resume instead of restarting β removing both the redundant recompute and the residual bias against long generations when a resumed-from-scratch rollout competes against fresh short ones.
Related: #3429 (SC checkpoint save/restore), where this was surfaced during review.
Activity
[-]SC checkpointing silently drops in-flight and undispatched prompts across resume[/-][+]SC checkpointing: persist partial rollout state so in-flight generations resume instead of restarting[/+]a2105z commentedon Aug 12, 2026
Let me try to take this.
macandro96 commentedon Aug 29, 2026
This restarted incomplete groups as a whole - #3480 ; TODOs: