part 1 of 3 · the problem · what PR #3665 is trying to accomplish

Why one prompt the generation fleet could not answer ends the whole training run

The problem NVIDIA-NeMo/RL #3665 is trying to solve. Behaviour shown is main at 3d873eb, the commit this PR sits on. Companion page: how the fix works.

Training runs for days on hundreds of GPUs. The completions are generated by a separate fleet of inference workers, and that fleet loses workers — a machine dies, a network link drops, a request times out. When one prompt keeps failing on every worker it is sent to, the SingleController has run out of options for it. Before this PR there was exactly one thing it could do next: raise, and take the whole job down (single_controller.py:388 on main). Days of work, thrown away because 1 prompt out of many thousands did not come back.

One missing prompt, two bad endings

Training step 0 needs 4 prompt groups. P2 fails on every worker it is tried on. step 0 wants P0 P1 P2 P3 P2 is retried on a different worker each time, and fails every time infrastructure retry budget runs out Ending A — the default on main raise RolloutRedispatchExhausted the error travels up and ends the job the entire run dies 3 days of training on hundreds of GPUs, gone restart from the last checkpoint and hope it does not happen again Ending B — if you asked for drops to be tolerated max_skipped_prompts > 0 the buffer holds, numbered "step 0" P0 P1 P3 empty only 3 will ever carry the number 0 the train loop, on main: while groups_dispatched < 4: wait for a 4th group numbered 0 ... waits forever 4 is a fixed number — nothing can lower it and nobody is generating the missing group The in_order sampler gives each batch the number of the step it belongs to, and lets step 0 train only on groups carrying 0, so no other work can fill the gap. Both loops go quiet. No error, no crash — the job just stops making progress and holds the GPUs until the clock runs out. What #3665 wants instead: give up on P2, close step 0 on 3 groups (or substitute a spare), and keep training. main: the fixed loop bound InOrderSampler.select the same line after the PR

What the PR is asking for, and what it costs

Three questions have to be answered before a run is allowed to shrug off a lost prompt. Each one is a setting, and each is off by default — a run that sets nothing behaves exactly as it does today.

The questionThe settingDefault, and why
How do we tell "one flaky worker" from "the fleet is gone"? Riding out an outage is good; retrying into a dead fleet for two days is not. max_consecutive_dropped_prompts 0 — fail on the first one, today's behaviour. It counts prompts lost in a row; any completion that comes back resets it to zero, so it measures the outage, not the run.
How small a batch is still a real training step? The gradient comes from the batch, so a step that quietly halves is a silent change to training. min_step_batch_fraction 0.9 — a step may lose at most 10% of its prompts. A fraction, not a count, so it means the same thing at any batch size and protects small batches harder.
Do we accept the smaller step, or find another prompt? on_dropped_prompt shrink — train on fewer. Set it to replace to keep the batch size by generating a spare prompt instead. How that works →

There is a real trade here, and it is worth being blunt about it. shrink means some training steps compute their gradient from fewer samples than you configured. replace keeps the batch size but can leave the trainer idle waiting for a fresh completion. The PR's answer is that both are better than losing three days of work, and that you should be the one to choose — which is why every setting starts switched off.

Does it work?

Nobody has posted a run. There is no W&B link, no before/after comparison, and no log from a job that actually lost workers mid-training. Unit tests drive the real generate-and-train loops and check the bookkeeping, and CI is green, but neither of those shows that a real outage is survived.

The evidence worth asking for is small and specific: one long run with an inference worker killed on purpose part way through, next to a clean baseline. Show that the run finishes, and show the reward curve lands in the same place. That answers both halves of the question — the run survives, and training quality did not quietly change.

One thing to check before you turn this on. These settings only take effect with the in_order sampler, which is the one that labels each batch with a training step number. The other built-in samplers (weight_fifo, windowed) do not label batches, so a lost prompt is never accounted for and the shortfall surfaces later — as a run that stops making progress, or one that fails on its final step. Nothing that ships today sets these values, so no existing recipe is affected, but two shipped SingleController recipes do use windowed. Check which sampler your config uses first.