Staleness simulator

A small event-driven model of the core quantities that set data staleness in asynchronous RL. Every change re-simulates 80 training steps in the browser.

Staleness distribution

Trainer version minus the version each episode started with (switchable to the version at admission)

Per group: duration vs staleness

Dashed: staleness ≈ s̄ + (L − E[L]) / Δt

Window and buffer over time

Window: groups started and not yet consumed. Buffer: finished groups waiting for the trainer. Both in batches; bars at the bottom mark training steps.

Episode and group durations

Single episode ℓ (grey) and group L = its slowest episode (orange), in seconds

Simplifications: generation is a first-come-first-served pool of K parallel slots; KV cache, prefill, weight sync and sandboxes are not modelled, and training time is drawn from a log-normal that does not depend on token count.