Skip to content

Coalesce packed-expert optimizer checkpoint copies - #979

Draft
bradhilton wants to merge 2 commits into
mainfrom
hayek/checkpoint-packed-cpu-snapshot
Draft

bradhilton wants to merge 2 commits into
mainfrom
hayek/checkpoint-packed-cpu-snapshot

Conversation

@bradhilton

@bradhilton bradhilton commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Packed-expert checkpoint saves currently perform three blocking optimizer CPU transfers per exported expert. Copy each complete consecutive packed parameter once, then slice its owned CPU storage. Sparse, reordered, interleaved and mismatched-shape exports retain the existing slice path.

The preparation fence, synchronous snapshot writes, checkpoint format and finalize/abort order stay unchanged. An eight-expert fixture reduces optimizer transfer calls from 48 to 6 without changing transferred bytes. This uses additional temporary packed CPU storage; GPU latency and peak memory have not been measured.

Validation: 33 CPU unit tests pass for dtype/layout, missing moments, copy counts, snapshot ownership, cancellation cleanup and concurrent preparation. The independently reviewed isolated component also passed 27 differential controls, including exact finalized checkpoint bytes and manifest digest. Ruff lint/format and targeted fixture type checking pass. Canonical quality CI passes at the current head, including lint, format, typecheck, lock, lightweight and unit tests. Its GPU job could not acquire two H200s, so it produced no new GPU test result.

Draft for review only; no frozen-run changes or deployment.

@bradhilton
bradhilton had a problem deploying to trainer-rank-gpu-validation September 26, 2026 08:15 — with GitHub Actions Failure

This branch had an error being deployed

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