Skip to content

feat(genome): the engine adapter sends training's share of the lane's time (share_ppm) - #4798

Merged
joelteply merged 3 commits into
canaryfrom
genome/train-share-ppm
Oct 6, 2026
Merged

joelteply merged 3 commits into
canaryfrom
genome/train-share-ppm

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Stacked on #4796. Pairs with llama.cpp #32 (an engine before it ignores the key).

The engine yielded while ANY slot was busy, which on a lane with residents was starvation (M5: 12 minutes at batch 0). The engine now takes a share; the adapter sends it explicitly (TRAINING_SHARE_PPM = 25%, one value, until the lane's lease carries a time share beside its memory bound) so the engine's default is never load-bearing. The window probe reports it and now says the served window is the ceiling (the engine sizes the context to the longest example, fork #30).

17 green in the adapter suite.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED pending the lib-test check, which is still running at d8b3d90. Sending share_ppm explicitly, so the engine's default is never load-bearing, is right, and the doc names where the value moves (the lease, once it carries a time share). One thought, not blocking: the log line now carries share_ppm, but the receipt that matters is the engine's own report of windows taken while busy vs yielded ms (your M5 numbers: 9 of 48, 218 of 363 s). If /train reports those, a probe on the completion would make the share auditable on every node without a second run.

@joelteply
joelteply force-pushed the genome/train-share-ppm branch from d8b3d90 to de3a84f Compare October 5, 2026 17:42
joelteply added a commit that referenced this pull request Oct 5, 2026
…d (Cormac on #4798)

training.run.share carries windows, windows_while_busy, yielded_ms and
share_ppm as the engine reports them (fork #32), so the share is auditable
on every node from the run's own receipt; absent fields on an older engine
mean no probe, never a zero that reads as a measurement.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

fc7b409: your receipt, in. training.run.share at the run's completion carries windows / windows_while_busy / yielded_ms / share_ppm as the engine reports them (fork #32); absent on an older engine means no probe, never a zero. Note the head moved past d8b3d90 earlier for the rebase onto #4796's hygiene fix (content identical) and now for this; a word at fc7b409 when you can. Words also owed at the bottom of the stack: #4794 (34e91ca) and #4796 (cb76cef), both green.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at fc7b409, pending its lib-test check. The training.run.share probe is the receipt I asked for: the engine's own counts at completion. Two small points, neither blocking: (1) share_ppm = unwrap_or(0) gives 0 two meanings, 'the engine didn't say' and 'a zero share'. Emit it as absent (or share_reported=false), not 0. (2) An engine that predates the counts emits nothing at Done. A probe that says the share wasn't reported keeps an old engine distinguishable from a probe that never fired.

@joelteply
joelteply force-pushed the genome/surprise-gates-the-decision branch from cb76cef to b69df9b Compare October 5, 2026 19:17
joelteply added a commit that referenced this pull request Oct 5, 2026
…d (Cormac on #4798)

training.run.share carries windows, windows_while_busy, yielded_ms and
share_ppm as the engine reports them (fork #32), so the share is auditable
on every node from the run's own receipt; absent fields on an older engine
mean no probe, never a zero that reads as a measurement.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
@joelteply
joelteply force-pushed the genome/train-share-ppm branch from fc7b409 to a2eadf7 Compare October 5, 2026 19:19
@github-actions github-actions Bot added size: M and removed size: S labels Oct 5, 2026
@joelteply
joelteply force-pushed the genome/surprise-gates-the-decision branch from b69df9b to e36f00b Compare October 5, 2026 19:23
joelteply added a commit that referenced this pull request Oct 5, 2026
…d (Cormac on #4798)

training.run.share carries windows, windows_while_busy, yielded_ms and
share_ppm as the engine reports them (fork #32), so the share is auditable
on every node from the run's own receipt; absent fields on an older engine
mean no probe, never a zero that reads as a measurement.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
@joelteply
joelteply force-pushed the genome/train-share-ppm branch from a2eadf7 to e2aab85 Compare October 5, 2026 19:23
@joelteply

Copy link
Copy Markdown
Contributor Author

a2eadf7 (now e2aab85 after the restack): training.run.share carries reported=true/false; an engine before #32 emits the probe with reported=false; a missing policy beside reported counts is -1, never 0.

@joelteply
joelteply force-pushed the genome/surprise-gates-the-decision branch from e36f00b to 1858757 Compare October 5, 2026 20:02
joelteply added a commit that referenced this pull request Oct 5, 2026
…d (Cormac on #4798)

training.run.share carries windows, windows_while_busy, yielded_ms and
share_ppm as the engine reports them (fork #32), so the share is auditable
on every node from the run's own receipt; absent fields on an older engine
mean no probe, never a zero that reads as a measurement.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
@joelteply
joelteply force-pushed the genome/train-share-ppm branch from e2aab85 to 845ca43 Compare October 5, 2026 20:03
joelteply added a commit that referenced this pull request Oct 5, 2026
… Metal+BLAS gate fixed (fork #32) (#4804)

* chore(engine): pin llama.cpp 49210a62 — training leases from serving (share + labelled-only outputs), Metal+BLAS gate fixed (fork #32)

The engine for cc4f33b7's retry on the 5090 and the first in-engine runs on
the Macs: a share of the lane's time instead of wait-for-idle (share_ppm,
sent by #4798), outputs only at the labelled positions (the training
context's memory is her assistant tokens, not the window; the server no
longer rescales the loss and gradients no longer scale with label density),
and host-backed backends budgeted from host RAM (the BLAS device reports 0,
which refused every training graph on a Metal+Accelerate build).

Reviewed at the exact head by BigMama (CUDA) and Cormac.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* chore(engine): pin llama.cpp c67f88660 — adds #33, the window duration distribution (max/p50/p95) in /train status, so the 5090 takes one deploy

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
@joelteply
joelteply force-pushed the genome/surprise-gates-the-decision branch from 1858757 to 29d3484 Compare October 5, 2026 22:56
Base automatically changed from genome/surprise-gates-the-decision to canary October 5, 2026 23:17
joelteply and others added 3 commits October 5, 2026 18:19
… time (share_ppm)

Fork card 36c3c00a: the engine yielded while ANY slot was busy, which on a lane
with residents was starvation (the M5: 12 minutes at batch 0). The engine now
takes a share; the adapter sends it explicitly (one value, TRAINING_SHARE_PPM,
until the lane's lease carries a time share beside its memory bound) so the
engine's default is never load-bearing. An engine before the card ignores the
key. The window probe says it, and says the served window is the ceiling.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…d (Cormac on #4798)

training.run.share carries windows, windows_while_busy, yielded_ms and
share_ppm as the engine reports them (fork #32), so the share is auditable
on every node from the run's own receipt; absent fields on an older engine
mean no probe, never a zero that reads as a measurement.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the genome/train-share-ppm branch from 845ca43 to 3d52bfb Compare October 5, 2026 23:27
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at 3d52bfb, pending its lib-test check. The first two commits are patch-identical to the d8b3d90/fc7b409 I approved. The new one closes both of my nits: an engine that doesn't report its counts emits training.run.share reported=false, and a missing policy reads -1, never a 0 that looks like a zero share.

@joelteply
joelteply enabled auto-merge (squash) October 6, 2026 01:44
@joelteply
joelteply merged commit 845b9bc into canary Oct 6, 2026
7 checks passed
@joelteply
joelteply deleted the genome/train-share-ppm branch October 6, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant