Skip to content

feat(trainer_rank): measure generic packed MoE rates (r15) - #1187

Draft
bradhilton wants to merge 3 commits into
perf/memory-trust-region-calibrationfrom
rescue/2026-11-12/art-r15/r15
Draft

bradhilton wants to merge 3 commits into
perf/memory-trust-region-calibrationfrom
rescue/2026-11-12/art-r15/r15

Conversation

@bradhilton

Copy link
Copy Markdown
Collaborator

Stacked on #1181. Rescued from the workstation after the Nov 10 egress cut (the authoring perf lane was cut off before review).

What it does

  • Measures two complete packed target rungs per native CP8 adapter configuration, without borrowing singleton caller coverage or promoting fixed floors to rates. Dense startup and existing serving admission are unchanged.
  • Rejects calls from a skipped data-parallel wave before opening the collective driver.
  • Packed-rate completion requires persisted completed-caller extents (completed_caller_tokens), so forward-only points can't satisfy a backward rung, live or after restore; a restored 16K-only profile can still measure the missing 8K rung through the ordinary estimate.

This is the ART half of the second MoE roll; the caladan companion landed as OpenPipe/caladan#2830.

Validation: CPU only (no GPU or CI available). GPT-6.1 Sol (xhigh) review is the merge gate.

Made with Cursor

bradhilton and others added 3 commits November 11, 2026 00:14
Measure two complete packed target rungs per native CP8 adapter configuration
without borrowing singleton caller coverage or promoting fixed floors to rates.
Keep dense startup and existing serving admission unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reject calls from a skipped data-parallel wave before opening the collective
driver, matching the existing calibration entry-point contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ompletion

Address Sol's review of b1c886e:
- P1: V2 profiles persist completed_caller_tokens, recorded only from
  qualified whole caller intervals at or above the 8K anchor. Forward-only
  samples can't add to it. calibrate_packed_target_rates requires the rung's
  persisted completed extent before skipping, live and after restore.
- P2: a generic profile with a completed cached extent can admit a
  calibration candidate at or below it through the ordinary estimate, so a
  restored 16K-only profile can measure 8K, without live slope evidence or
  extrapolation above the cached extent.
Regressions cover forward-only 8K after a completed 16K (with restore) and
a fresh-rank 16K-only restore.
@bradhilton

Copy link
Copy Markdown
Collaborator Author

Handoff note (Nov 16): this is stacked on #1181, so it moves with #1181 to the new repo.

  • Head 6cca54c29. GPT-6.1 Sol (xhigh) review: CLEAR-WITH-NOTES. The earlier P1 is fixed: skipping a rung now requires its exact durable completion marker. The earlier P2 is also fixed: a generic profile's own cached extent now admits ordinary calibration.
  • Open P2 at src/art/trainer_rank/_memory.py:1507: the durable completion inventory keeps only the shortest extent plus the seven longest. Once more than eight extents are recorded, the required 16K anchor gets evicted. After a restore, calibrate_packed_target_rates re-runs 16K, evicts the marker again, and raises RuntimeError("packed calibration requires a completed rate measurement"). The failure is safe (nothing unsafe executes), but a valid cache can't recalibrate. Fix: always keep the exact 8K and 16K completion markers when bounding the inventory, and add a regression that restarts with more than eight extents.
  • After feat(trainer_rank): add calibration-only trust-region admission [skip ci] #1181 lands: retarget this PR to main, rebuild it as main plus its own changes, and check _memory.py against feat(trainer_rank): add calibration-only trust-region admission [skip ci] #1181's final version.
  • Still needed: GPU validation of packed MoE rate measurement.

This branch has not been deployed

No deployments
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