Repository navigation
fix(genome): the trainer on the resident weights outranks every process trainer; a competence already training is joined, never minted twice - #4790
Conversation
…ss trainer; a competence already training is joined, never minted twice Joel, 2026-10-05: inference and training are exactly the same model with training switched on in the model that can inference; separate is a waste of GPU. The engine trainer (POST /train on the serving lane, S3a built in the fork) declared requires: Any, so the coordinator ranked it below cuda-local on the 5090 and Kimi's first gene went to the separate Python trainer, which parked forever waiting for 30 GB the serving lane holds. FineTuningCapabilities gains trains_on_resident_weights (true only for engine-local), the adapter trait gains serves_base (the engine answers from its lane resolver, so it is never chosen for a base no lane serves), and rank puts the resident-weights trainer first, process trainers after. And the falsifier that fired live (four, then ten, Mints for one competence from one card's credit): a job of hers already in flight whose minted signature is within reuse distance is Decision::Join, checked before any branch that would train; job-create reads the job board's watched jobs for her and her base. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Read at 9329e95. The trainer ranking is right: One blocker: The smallest honest fix: on |
|
Both reviews taken at 18e2f5b: Join is obeyed. job-create returns a typed joined and no job; the trigger holds a fill while a job trains the competence (ready_to_dispatch reads the board), returns a joined batch to the bucket whole and ends the intent as DispatchPhase::Joined; a resumed orphan whose competence is already training is not re-created, its examples return to her bucket through submit. Test drives two fills for one competence: the second is held with all its examples, one job on the board. 70 tests. |
…ed; the trigger holds a fill while a job trains the competence (#4791) * fix(genome): Join is obeyed: job-create creates nothing and says joined; the trigger holds a fill while a job trains the competence and returns a joined batch to the bucket Cormac and BigMama on #4790: Join was decided and probed, then job-create fell through to create_job anyway, so fourteen resumed orphans would have become fourteen engine-local jobs on one lane. Now: on Decision::Join, job-create returns a typed joined: <job> and no job (probe genome.joined); the trigger's ready_to_dispatch is false while a job for the bucket's (persona, trait, base) is on the job board, so the bucket keeps filling and waits; a joined dispatch returns its batch to the bucket whole and ends the intent as DispatchPhase::Joined (persisted; a restart treats it as finished); and a resumed orphan whose competence is already training is not re-created, its examples go back to her bucket through the one submit verb (probe training.job.resume_joined). Test: a second fill at threshold while a job trains the competence is held, every example retained, still one job on the board. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(genome): a joined orphan is journaled as resumed-into the joined job, so a restart never returns its examples twice (BigMama on #4791) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(genome): the decision carries typed ids, never strings A gene is a place: a local adapter directory or a hub repo. A job is a u128. The decision was carrying both as String and parsing the job back out at the resume seam; the type is now defined once and the seams read it directly. - GeneRef { Local { path }, Hub { repo } } replaces the gene String on NearestGene, Reuse and Fork; Display gives the shown form for probes. - Job ids are Uuid on InFlightJob, Decision::Join, JobCreateOutcome.joined (wire form string via ts-rs), Created::Joined, DispatchPhase::Joined and DispatchResult::Joined. The resume arm journals the join directly; the parse_str that could fail silently is gone. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(trigger): a held fill's outcome names the job its examples wait for CI: warnings grew 75 to 76 — DispatchResult::Joined.job was carried and never read. Now SubmitOutcome.held_by carries it (both the Joined dispatch and the key guard that holds a bucket while a job of hers is in flight), so the caller sees what the fill waits on. job_in_flight_for returns the job's local id; one computation serves the guard and the receipt. AlreadyAccepted keeps precedence on a replay. 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]>
Joel, 2026-10-05: inference and training are exactly the same model with training switched on in the model that can inference; separate is dumb when we need a continuous mind and low-latency switching, and a waste of GPU.
Routing: the engine trainer (POST /train on the serving lane; S3a, the backward through the resident quantized weights, is built in the fork and live on the 5090) declared requires: Any, so the coordinator ranked it BELOW cuda-local on the very machine where the resident engine should win, and Kimi's first gene (bcb7316f) went to the separate Python trainer, which parked waiting for 30 GB the serving lane holds. FineTuningCapabilities gains trains_on_resident_weights (true only for engine-local); the adapter trait gains serves_base (default true; the engine answers from its lane resolver, so it is never chosen for a base no lane on this node serves); rank is resident-weights first, then a process trainer for this host's accelerator, then local, then the rest (ONE-RESIDENT-MODEL §4.6, S6).
Join: the design's falsifier #2 fired live (four, then ten, Mints for one competence from one card's credit) because the nearest-gene lookup read only adopted genes. A job of hers already in flight whose minted signature is within SIM_REUSE is Decision::Join { job, similarity }, checked before any branch that would train; job-create reads the board's watched jobs for her and her base, and genome.decision carries in_flight.
Tests: coordinator, competence, job_create, engine_lora (43). Deploy order (BigMama): her parked cuda-local jobs end killed-by-reboot at this deploy and #4786's resume re-creates them on engine-local.
Receipt on the 5090: her next fill's genome.decision names branch=Join (or Mint with the job on provider engine-local for the first); training.job.* for it on the serving lane; no new cuda-local job.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo