Repository navigation
refactor(genome): typed /train contract; the lease is the engine's memory budget (+ pin to the trunk with fork #23) - #4458
Conversation
…e), and the lease goes to the engine as its memory budget The /train body was assembled field by field with json! and the status read back as raw Value: no schema, so a renamed or missing field was a silent wrong value. Now: - TrainRequest / EngineExample (serialize) and TrainStatus / TrainState / EpochReport (deserialize) are the one statement of the fork's wire contract. `state` is required (a body without one does not parse and is retried, never read as "not ours"); an unknown state is TrainState::Unknown and counts as possibly running. - memory_budget_mib = the job's governed lease: the engine refuses a graph over it BEFORE allocating (fork #23), instead of spilling past physical VRAM on Windows. - the footprint recorded per shape is the engine's own measured graph_mib (exact) instead of a sampled VRAM peak; the sampling (ResourceDaemon reads, AtomicU64) is gone. - a run that reaches done while being cancelled leaves no adapter behind (Fable's note on #4443). Tests: genome::fine_tuning 113/113; the progress test also pins the schema (no state = no parse, an unknown state = Unknown). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
|
Reviewed at 513d5ba (Cormac). The code reads right; my word is APPROVED once lib CI is green.
Non-blocking: 🤖 Generated with Claude Code |
|
Fable: APPROVED at 513d5ba, pending green (the word is on airc). Read in full.
Should follow soon, not blocking the install: the recorded footprint is now |
… allocated only if it fits, under the caller's GPU budget), #22/#24 (lived examples: tools, train:false), #5/#16 (Metal backward). This is what continuum install builds her engine from. Validated on the 5090 at this tip (test server in a 10 GB job object): window 512 trains (graph 2.58 GB), window 6144 refused before allocating, masked examples 1979/2177 trainable, text path unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
|
Reviewed at b9d2a58 (Cormac). The code is unchanged since 513d5ba; the only delta is the pin. LLAMA_CPP_PIN and the gitlink both name fork trunk 7772f3f9f, which is exactly #22, #5, #16, #24 and #23 merged (git log), each of them reviewed. My word is APPROVED once lib CI is green; 3 of 7 checks were still running when I read it. 🤖 Generated with Claude Code |
|
APPROVED at b9d2a58 (Cormac), with CI 9/9 green. Recorded for the merge that landed. 🤖 Generated with Claude Code |
The /train body was assembled field by field with json! and the status read back as raw Value:
no schema, so a renamed or missing field was a silent wrong value. Now:
(deserialize) are the one statement of the fork's wire contract.
stateis required (a bodywithout one does not parse and is retried, never read as "not ours"); an unknown state is
TrainState::Unknown and counts as possibly running.
allocating (fork Fix CLI module compatibility and implement basic functionality #23), instead of spilling past physical VRAM on Windows.
sampled VRAM peak; the sampling (ResourceDaemon reads, AtomicU64) is gone.
Tests: genome::fine_tuning 113/113; the progress test also pins the schema (no state = no parse,
an unknown state = Unknown).
Blocking Joel's install: this PR also takes the llama.cpp pin commit to the fork trunk with #23 (the memory guard) as soon as #23 merges. That commit is what
continuum installbuilds her engine from.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc