Skip to content

Refresh final TrainerRank admission and propagate counter failures - #899

Merged
bradhilton merged 3 commits into
mainfrom
schulman/870-refresh-final-admission-20260915
Sep 15, 2026
Merged

bradhilton merged 3 commits into
mainfrom
schulman/870-refresh-final-admission-20260915

Conversation

@bradhilton

@bradhilton bradhilton commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

The microbatch selector could return a cached memory budget after a later check observed less available memory. Recheck the selected demand immediately before returning it, retain that final admission evidence, and refuse when the fresh budget is insufficient.

A local memory-counter failure now participates in the existing distributed availability reduction, preserving the original exception object and explicit cause while healthy peers stop. The smallest-wave fallback also reaches its existing world agreement before propagating a subgroup failure. Preserving an earlier implicit exception context is outside this change's guarantee.

Only art.trainer_rank and its tests change. Availability arithmetic and cache-release policy are unchanged. The final refresh adds one MAX/MIN pair per distributed selection and can refuse work earlier; fresh availability remains a sample, not a reservation. API and art.megatron are unchanged.

Validation at 0f2134cd304a930f2323206cdad15788e91da41f: quality checks and hosted two-H200 validation pass. Retained focused evidence includes 75 maintained cases and six cases on each of two CPU/Gloo ranks; the test-only successors additionally passed their affected suites. Faraday, McCarthy and Minsky clear source correctness at the exact head. Reviewers reserve the behavioral merge decision for Brad. These checks do not establish full-model memory feasibility or a complete backward peak bound.

Part of #848 and #870; neither issue is fully resolved by this change. The separate adaptive cache policy is in draft #900.

@bradhilton
bradhilton had a problem deploying to trainer-rank-gpu-validation September 15, 2026 14:43 — with GitHub Actions Error

@bradhilton bradhilton left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review text removed on 2026-09-17; the consolidated review record is in the summary comment on this PR.

@bradhilton bradhilton left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review text removed on 2026-09-17; the consolidated review record is in the summary comment on this PR.

@bradhilton bradhilton left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review text removed on 2026-09-17; the consolidated review record is in the summary comment on this PR.

@bradhilton bradhilton left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review text removed on 2026-09-17; the consolidated review record is in the summary comment on this PR.

@bradhilton
bradhilton had a problem deploying to trainer-rank-gpu-validation September 15, 2026 14:56 — with GitHub Actions Error
@bradhilton
bradhilton deployed to trainer-rank-gpu-validation September 15, 2026 15:10 — with GitHub Actions Active

@bradhilton bradhilton left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review text removed on 2026-09-17; the consolidated review record is in the summary comment on this PR.

@bradhilton bradhilton left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review text removed on 2026-09-17; the consolidated review record is in the summary comment on this PR.

@bradhilton bradhilton left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review text removed on 2026-09-17; the consolidated review record is in the summary comment on this PR.

@bradhilton
bradhilton merged commit 54ebf50 into main Sep 15, 2026
7 checks passed
bradhilton added a commit that referenced this pull request Sep 15, 2026
Reparent the reviewed runtime and corrected budget fixture onto merged #899.
No tree or runtime changes from a8691cd.
bradhilton added a commit that referenced this pull request Sep 17, 2026
* Bound native cache recovery by measured forward work

Reparent the reviewed runtime and corrected budget fixture onto merged #899.
No tree or runtime changes from a8691cd.

* Ensure checkpoint slots before DP-local recovery retries

* Type the scalar recovery-plan test double explicitly

* Fix cache recovery test metadata and CI routing
@bradhilton

Copy link
Copy Markdown
Collaborator Author

Consolidated review record (automated agent review traffic removed 2026-09-17)

Change. The microbatch selector could return a cached memory budget after a later check saw less memory. It rechecks the selected demand before returning, refusing when the fresh budget is insufficient; local memory-counter failures propagate through the availability reduction, preserving the original exception. Only art.trainer_rank and tests change.

Review. Faraday, McCarthy and Minsky cleared source correctness at merged head 0f2134c; McCarthy's earlier changes-required verdict (test typing) was resolved. Quality checks and two-H200 CI passed; retained evidence covers 75 maintained tests and two-rank CPU/Gloo cases; Minsky reran touched tests (92 passed). Reviewers flagged the earlier refusal and extra MAX/MIN pair as behavior changes; merge decision left to Brad.

Findings addressed during review.

  • ty type error in a new test fixture, fixed with typing.cast.
  • Empty-DP-rank sequence test updated for the new final (42, True) check.

Deferred / follow-ups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants