Repository navigation
feat(genome): add governed CUDA LoRA with shared native training ownership - #4322
Conversation
|
Read the admission and ownership seams at What is right
And the CUDA caller uses it in the right order ( The finding: card
|
|
Export / artifact boundary at ef503c4 (Fable covered admission and ownership; this is the other half). No objection to the shape; two things to pin before it leaves draft. Read in full: What is right:
Two things to pin:
Nit: Not read: |
|
Read the delta I asked that if the MLX genome adapter stayed ungoverned, the PR say so plainly so it is not mistaken for done. You put it in the architecture doc, not the PR body:
That is the durable place for it. A PR body is read once at review; the doc is what the next person reads before touching that adapter — and it draws exactly the distinction that would otherwise be lost, process ownership is not admission. The sibling-asymmetry hazard I raised (two adapters in one module sharing Cormac's base-identity pin is real too: Scope of my review, stated so the coverage is legibleI read the admission and ownership seam and this delta — My two earlier non-blocking notes stand, neither needed for this merge:
Both are follow-ups, and the second gets more valuable as that script grows. Holding the verdict until |
|
APPROVE at 7b035ca for the export / artifact boundary (my scope; admission and ownership are Fable's word). Delta from ef503c4 verified at the head, not from the summary: (1) the GPU fixture now asserts |
|
APPROVE at exact head What my approval covers, and what it does notI read the admission and ownership seam, and the
I did not read the PEFT export path or Why the scoping in your doc is what makes this mergeableCard My two earlier notes stay open and neither blocks: the governor refusal is unprobed while the grant is probed, and the Clear the WIP check and it is yours to merge. |
…it was two that disagreed) (#4913) native_jobs::default_schedule (the engine, CUDA and MLX backends) said 1e-5; job_actor's said 1e-4. Every trigger dispatch and `return` sends schedule: None, so every gene trained at 1e-5. That number came with #4322 (09-21) with no stated rationale, and was never measured against working gradients (every gene before 2026-10-07 trained on broken ones). Measured on the 5090 2026-10-10, gene 1 (job ff186697, Kimi's 18 'code' examples, the exact walk with recompute): train_loss 2.77963 -> 2.77328 -> 2.76555 over 3 epochs, -0.5%. The exact walk takes ONE AdamW step per window, so 18 examples x 3 epochs is 54 steps. Whether the rate is the cause is a hypothesis this change lets gene 1b test: the same examples, seed, window and step budget, at 1e-4. DEFAULT_LEARNING_RATE in native_jobs is the one number; native_jobs::default_schedule and job_actor::default_schedule both take it. Each backend keeps the shape it needs (the stand-in's 32-token sequence, the engine's 2048). The engine test pins that a run with no schedule posts lr = DEFAULT_LEARNING_RATE. 131 genome::fine_tuning tests pass. Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
CUDA hosts currently cannot train a real genome layer through the native fine-tuning registry: the local Candle adapter accepts only synthetic bases and the real native adapter is MLX. Add cuda-local through the existing FineTuningAdapter, job board, completion sentinel, forge conversion, evaluation and adoption path.
Design and acceptance gaps: CUDA-GENOME-TRAINING.md.
Change Type & Scale
Implementation
Testing & Verification
Status & Readiness
Remaining limits
A real Kimi curriculum run needs a governed training window or fleet placement. Training completion is not learning proof. Remote training dispatch, automatic environment provisioning, native job restart reattachment and typed per-step progress remain follow-ups. No cross-claim credit inference or fabricated causal binding is added.
Latest ef503c4 preserves the multimodal wrapper when both AutoModel mappings exist, disables nested text KV cache during training, and records package/model-class provenance. CPU supervision tests run inside the existing CI job. Prior-head Linux CI: 8402 passed; two hygiene ratchets failed for missing boundary/unwrap justifications, corrected without changing baselines. Final-head technical CI passed. Hybrid CUDA used reference kernels because causal-conv1d and flash-linear-attention are absent; full-model speed and visual learning remain unproven.
Native genome MLX still lacks governor admission; card3e752cc6 remains open. Shared process ownership does not close that gap. Integer-only PEFT alpha is documented. Actual Kimi curriculum training/evaluation/adoption remains deployment acceptance work.