Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* chore: deprecate user-facing max_async_level, hardcode to 1 Removes `max_async_level` as a user-configurable knob on `OrchestratorConfig`, `TrainerConfig`, and the shared `RLConfig`, and replaces internal usage with a constant `MAX_ASYNC_LEVEL = 1` in `prime_rl.utils.utils`. This was the only value compatible with NCCL weight broadcast, and exposing it invited misconfiguration (the trainer/orchestrator values had to match, and bench mode + a few configs overrode it ad-hoc). Drops the now-redundant NCCL validators on both sub-configs and the shared-field propagation/validator for `max_async_level`. Also removes the bench-mode `max_async_level = int(1e9)` workaround (no replacement flag). Closes #2630. Co-authored-by: Cursor <cursoragent@cursor.com> * docs(async): drop MAX_ASYNC_LEVEL mention, describe as one-step overlap Co-authored-by: Cursor <cursoragent@cursor.com> * refactor: simplify step logic now that async lag is fixed at one Now that the trainer/orchestrator always run with a one-step async barrier, inline the value where it actually appears (scheduler ckpt math, trainer broadcast skip, filesystem cleanup) and drop the indirection through a ``MAX_ASYNC_LEVEL`` constant — the value is a design invariant, not a configuration knob, and naming it as a constant just made it look tunable. - scheduler: factor out ``_async_away_ckpt_step()`` so both ``_compute_next_ckpt_step`` and ``_apply_policy_update`` share a single source of truth, skip the ``get_latest_ckpt_step`` filesystem read entirely in strict mode, and clean up the awkward ``>1 step(s) ahead`` log line. - trainer: replace ``last_async_level_steps`` with a ``nccl_broadcast_unused`` flag that names the actual reason the broadcast is skipped (NCCL receivers have torn down). Filesystem broadcast still writes through to the final step for resume support. - ``maybe_clean``: drop the ``async_level`` parameter (only one caller, fixed value) and document why we delete the dir from two trainer steps ago. Co-authored-by: Cursor <cursoragent@cursor.com> * refactor(scheduler): drop _async_away_ckpt_step helper, inline step math The helper wrapped a single ``max(self.step - 1, 0)`` and was being called three times across two methods, adding indirection without saving anything. Inline it with a localized comment explaining the one-step lag invariant in each method, and flatten ``_compute_next_ckpt_step`` so the strict path is a guard around the latest-ckpt lookup rather than a separate early return. Co-authored-by: Cursor <cursoragent@cursor.com> * chore: deprecate user-facing strict_async_level The strict-mode branch existed to support an "always exactly one step behind" reproducibility/ablation knob, but it's never been the default and exposing it just complicated the scheduler. Drop the field on ``OrchestratorConfig``, the constructor parameter on ``Scheduler``, and collapse ``_compute_next_ckpt_step`` to the single non-strict path (``max(step - 1, 0, latest_ckpt)``). Co-authored-by: Cursor <cursoragent@cursor.com> * refactor(scheduler): drop redundant 0 clamp in _compute_next_ckpt_step ``latest_ckpt_step`` already falls back to 0 (via ``... or 0``), so it dominates the explicit ``0`` argument in every case — including ``self.step == 0`` startup, where ``latest_ckpt_step`` is also 0. Dropping it makes the intent clearer: advance to at least step - 1, or to whatever the trainer has broadcast if that's newer. Co-authored-by: Cursor <cursoragent@cursor.com> * docs(changelog): note max_async_level / strict_async_level removal as breaking Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
7 lines
76 B
TOML
7 lines
76 B
TOML
max_steps = 5
|
|
batch_size = 16
|
|
|
|
[train.sampling]
|
|
max_completion_tokens = 16
|
|
|