Skip to content

Validate canonical checkpoint optimizer counters - #992

Merged
bradhilton merged 1 commit into
mainfrom
codex/checkpoint-step-validation
Sep 26, 2026
Merged

bradhilton merged 1 commit into
mainfrom
codex/checkpoint-step-validation

Conversation

@bradhilton

Copy link
Copy Markdown
Collaborator

A checkpoint with an authenticated manifest can currently carry a negative, fractional, infinite, or NaN optimizer step into canonical optimizer restore. Validate the counter domain before reading optimizer state: require nonnegative integers or finite integral floats, preserving legacy integer-valued floats and the existing boolean rejection.

Adds public safetensors fixtures covering local and artifact-staged reads. The tests regenerate the manifest digest so they exercise semantic validation; no private checkpoint metadata or tensors are included.

Validation: 14 new cases failed before the fix. All 29 focused cases now pass, including valid counters, legacy format, optimizer mapping, and weights-only behavior. Ruff, formatting, and diff checks pass. Local type checking reports the same six preexisting slot-type diagnostics as the exact baseline; CI will run the complete environment.

@bradhilton
bradhilton had a problem deploying to trainer-rank-gpu-validation September 26, 2026 17:52 — with GitHub Actions Failure
@bradhilton
bradhilton marked this pull request as draft September 26, 2026 18:08
@bradhilton
bradhilton deployed to trainer-rank-gpu-validation September 26, 2026 18:08 — with GitHub Actions Active
@bradhilton
bradhilton marked this pull request as ready for review September 26, 2026 18:30
@bradhilton
bradhilton deployed to trainer-rank-gpu-validation September 26, 2026 18:30 — with GitHub Actions Active
@bradhilton
bradhilton merged commit 9ec24b4 into main Sep 26, 2026
11 of 13 checks passed

This branch was successfully deployed

1 active deployment
trainer-rank-gpu-validation — 7ce17a2b Deployed Sep 26, 2026 by bradhilton via Run on 2x H200 #776
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.

1 participant