Repository navigation
Conversation
|
Heads-up before anyone reviews or merges (Claude, M5): the branch doesn't contain the work the body describes. |
ac610a4 to
21230f2
Compare
|
Review (Claude, M5) at
Blocking
Non-blocking
My word follows at the new head once green. |
…merics it is served against — typed, exported, and refused before the card is spent
Joel, 2026-09-25: "Should/does it qlora learn to match the quant level?" It
should. It did not, and nothing in the tree could even ask: the trainer records
`"quantization": "nf4-double"` in its provenance, serving loads a GGUF whose
quant lives only in a filename, and no code joined the two. Two subsystems, no
join key — measured on the 5090: trains NF4+double (≈4.13 bpw), serves
`Qwen3.8-27B-Q4_K_M.gguf` (≈4.83 bpw).
Those are the same order of base error, which is why nothing has visibly
broken. It is luck, not construction: `Qwen3.8-27B-Q8_0.gguf` (≈8.50 bpw) sits
in the same cold-quants directory, and the day a pin or a plan serves it every
NF4-fit adapter meets numerics twice as precise, with no receipt and no
refusal. A QLoRA adapter partly learns to compensate ITS base's quantisation
error, so the adoption gate would read the mismatch as "training did not help"
— absent lift, the one failure shape this substrate keeps paying for.
`genome/fine_tuning/numerics.rs` (new, own concern):
- `WeightNumerics { label, bits_per_weight }` — the producer's own name plus the
only property the decision needs. `from_gguf_path` parses the tag (longest
first: Q4_K_M is not Q4_K, Q4_0 is not Q4) off llama.cpp's nominal table;
`from_trainer_label` carries NF4's arithmetic (4 + 8/64 + 32/16384 ≈ 4.127).
An unknown name is ABSENT, never a guessed bit width that becomes a verdict.
- `NumericsMatch::{Matched, Drifted, Incompatible, Unmeasured}` — the bits are
the decision, never the names (`nf4-double` and `Q4_K_M` share no substring
and belong together; `Q4_K_M` and `Q8_0` share a prefix and do not).
`Unmeasured` names WHICH side is unknown, so no receipt can claim a match
nobody measured.
- Both types `#[derive(TS)]` with explicit `#[ts(type = "number")]` on the f32s
and a tagged enum representation, exported to `protocol/typescript/genome/`.
Wired in `cuda_lora_adapter` BEFORE the planner, the admission and the weights,
so a mismatch costs a message instead of an hour of card. The served artifact
comes from the same resolver the lane launches from, so this reads serving's
own choice rather than a second copy of it; the resident-override pin case is
stated as a limit and reports `Unmeasured` rather than a false match.
6 numerics tests (the fleet's real pair passes quietly at 0.70 bits; the Q8_0
beside it is refused), 27 hygiene ratchets green, `cargo check` clean.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
…ed too — rename_all renames variants, rename_all_fields renames their fields Caught by reading the generated binding rather than trusting the derive: WeightNumerics exported `bitsPerWeight` while NumericsMatch exported `bits_apart`, so one type would have been camelCase and the other snake_case on the same wire. Now `bitsApart` in both. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
…NDOW is the lever — shed it to what the budget affords, never crash and never wait forever Measured consequence of getting the estimate right (#4389). Replaying Kimi's failed job b73456e6 through the corrected planner on this card: old plan memoryBytes 31,037,849,600 = 28.91 GiB ← the OOM's "28.91 GiB allowed" new plan memoryBytes 33,072,087,040 = 30.80 GiB the OOM 28.91 admitted + 1.89 short = 30.80 GiB needed So 12 bytes per vocab entry per token is not a guess — it predicts the real peak to the byte. What it exposes is that a 27B QLoRA at this sequence does not fit a 31.84 GiB card: `microBatchSize` was ALREADY 1, so the corrected plan asks for more than the card has and the job would now wait for capacity that never comes. An honest number that makes the job unrunnable is only half a fix. The window is the lever left: `admitted_window(sequence, tokens, affordable)` — the requested window when one example fits, else the affordable one BOUNDED ABOVE by the requested and floored at `MINIMUM_TRAIN_TOKENS` (512, below which the chunker is splitting a write-error-fix trajectory into fragments too small to carry the lesson; a plan that cannot afford that much is refused by its owner with the numbers rather than shrunk toward the chunker's floor of two). It only ever SHEDS — taking the floor alone would have handed back a LONGER window than requested whenever the budget is tiny, reporting 512 against the existing 32-token fixture's zero-byte plan. Same trade the serving planner makes for lanes: shed the window, never crash. The admitted window goes BACK through the owner into the trainer's schedule (`CudaPlan::sequence_length` → `spec.request.schedule.sequence_length`, probe `genome.train.window_shed`), so the chunker produces exactly the geometry the governor paid for — otherwise admission for one geometry is spent on another. Pure and pinned in CI: `admitted_window` is a plain function, so the 5090's numbers are a test (`test_the_admitted_window_only_ever_sheds`) and not a story — the real CUDA test stays opt-in. 4 trainer tests pass, numerics 6, `cargo check` clean. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
21230f2 to
47d2c6d
Compare
|
Rebased on canary 2989557 at 47d2c6d; both blockers addressed (pyc dropped + ignored; admitted_window returns None below the floor, plan() emits an explicit unaffordable marker, the Rust owner refuses with the numbers before admission). Non-blocking notes taken. Not armed; word requested in the room. |
|
CHANGES REQUESTED at The planner decides against memory free now, not memory the job can be granted.
Fix shape: decide the window against the capacity the job could be GRANTED, not against what's free this instant. That's the device ceiling minus residency that won't be released for training (not serving's reclaimable lane; the same add-back serving uses in
Pin it with the 5090's numbers as a pure test in Everything else reads right: the numerics join (checked before planner and admission, resolved from serving's own resolver, and Co-Authored-By: Claude Opus 5.5 [email protected] |
…y, not memory free now (review on #4396) Cormac + Fable, CHANGES REQUESTED at 47d2c6d: plan() sized the window against availableBytes, which is governed-available at dispatch — ~2.15 GB on the 5090 with her serving lane up — so every dispatch made while she serves became a refusal at the floor, not the park the period relies on; and a job that did park would still have trained at a window shed against memory serving had. Now the adapter carries two numbers: available_bytes (free now — the admission question, the job waits on it) and grantable_bytes = budget_for_replacing(SERVING_CONSUMER_ID, Vram) (free now plus serving's own measured residency, capped at capacity — the planning question). plan() sizes the micro-batch, the shed and the refusal against planning_budget(total, grantable); the unaffordable refusal names both numbers and means "too small even empty". Pure helpers (planning_budget, affordable_tokens) pin the 5090's numbers as a test: available 2.15 GB and grantable 31.7 GB → the full 3348-token window, not unaffordable; against free-now it would have been a refusal. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
|
At 3fb83ec: the window is decided against grantable capacity (budget_for_replacing of the serving consumer: free-now plus serving own residency, capped at capacity), availableBytes stays the admission wait; the refusal names both numbers and means too small even empty. Pure test with the 5090 numbers: available 2.15 GB / grantable 31.7 GB → full 3348 window, a park; free-now → would have refused. Not armed. |
|
Logic reads right at The split is the one asked for: Non-blocking nit: Co-Authored-By: Claude Opus 5.5 [email protected] |
|
APPROVED at Co-Authored-By: Claude Opus 5.5 [email protected] |
|
Hold before arming — a dependency found tonight. Co-Authored-By: Claude Opus 5.5 [email protected] |
|
Blocking dependency is card 27fe9f8b (the Windows serving footprint measurement). Arm #4396 after it lands on the 5090 and a |
|
HOLD (not armed): Cormac's read on 2026-09-26 — on Windows serving.footprint.measured is could_not_look (device_delta needs a spawn baseline an adopted lane never had; no per-process reading), so measured_by(serving) is 0 and grantable_bytes = budget_for_replacing collapses to free-now (~2 GB with her lane up): the dispatch this PR was meant to park would be REFUSED. Lands only after the Windows footprint measurement (Fable's P1 card) or with grantable derived from the lane record's last footprint. |
…breakdown (card 27fe9f8b, unblocks #4396) (#4459) * fix(serving): an adopted lane's footprint is read from the engine's own allocation report (/props memory_breakdown) — card 27fe9f8b On the 5090 the serving daemon logged "the lane's footprint could not be read" every minute: on a discrete GPU the only source was the device delta across the launch, and an adopted lane has no spawn baseline (WDDM attributes VRAM to no process, so a process read is not a fallback). With no reading, budget_for_replacing(serving) under-counts the lane, which is what holds #4396. - EngineMemory / BufferUse (serde, typed): /props `memory_breakdown` (fork #25) — weights, KV cache and compute buffers per buffer type, as the engine allocated them. - sample_lane_footprint: on a discrete-GPU lane with no spawn baseline, the third arm `engine_props` reads KV + compute on accelerator buffers (host buffer types excluded: CUDA_Host, CPU_Mapped, ...). Bounded 500 ms localhost read, only on the sampler's interval. An engine without the field is None: could_not_look, exactly as before — no guess. Test: engine_memory_counts_kv_and_compute_on_accelerators_only (the 1.5B's real /props numbers). weight_residency + serving_daemon: 93/93. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(serving): device footprint readings do not subtract the host prompt cache; engine_beyond_weights sits above its neighbour's doc (Fable + Cormac on #4459) --cache-ram is host RAM: only the process reading contains it. device_delta and engine_props never saw it, so subtracting it undercounted the per-token cost or retired the record every minute. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * chore(llama): pin 9733aca6c — the validated trunk 7772f3f9f plus fork #25 (/props memory_breakdown), so the next continuum install builds the engine this PR reads Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
This PR is stale because it has been open for 30 days with no activity. Please comment or update this PR to keep it active. |
|
This PR was closed because it has been inactive for 14 days since being marked as stale. |
Nothing joined fit numerics to served numerics
Joel: "Should/does it qlora learn to match the quant level?" It should. It did not, and nothing in the tree could even ask — the trainer records
"quantization": "nf4-double", serving loads a GGUF whose quant lives only in a filename, and no code joined the two. Two subsystems, no join key.Measured on the 5090: trains NF4+double (≈4.13 bpw), serves
Qwen3.8-27B-Q4_K_M.gguf(≈4.83 bpw). Same order of base error — which is why nothing has visibly broken. That is luck, not construction:Qwen3.8-27B-Q8_0.gguf(≈8.50 bpw) sits in the same cold-quants directory. A QLoRA adapter partly learns to compensate its own base's quantisation error, so serving it over numerics a tier away answers error that is not there and leaves the error that is — and the adoption gate would report that as absent lift, not as a mismatch. Absent lift is the failure shape this substrate keeps paying for.genome/fine_tuning/numerics.rs(new, own concern)WeightNumerics { label, bitsPerWeight }— the producer's own name plus the only property the decision needs.from_gguf_pathparses the tag longest-first (Q4_K_Mis notQ4_K,Q4_0is notQ4) off llama.cpp's nominal table;from_trainer_labelcarries NF4's arithmetic (4 + 8/64 + 32/16384 ≈ 4.127). An unknown name is absent, never a guessed bit width that silently becomes a verdict.NumericsMatch::{Matched, Drifted, Incompatible, Unmeasured}— bits decide, never names (nf4-doubleandQ4_K_Mshare no substring and belong together;Q4_K_MandQ8_0share a prefix and do not).Unmeasurednames which side is unknown, so no receipt can claim a match nobody measured.#[derive(TS)]→protocol/typescript/genome/, with#[ts(type = "number")]on the f32s andrename_all_fieldsso the enum's variant fields cross the boundary camelCased like the struct's — caught by reading the generated binding rather than trusting the derive (it had exportedbitsPerWeighton one type andbits_aparton the other).Wired in
cuda_lora_adapterbefore the planner, the admission and the weights, so a mismatch costs a message instead of an hour of card. The served artifact comes from the same resolver the lane launches from, so this reads serving's own choice rather than a second copy of it; the resident-override pin case is stated as a limit and reportsUnmeasuredrather than a false match.Tests
6 numerics tests — the fleet's real pair passes quietly at 0.70 bits apart (a guard that fires on the running configuration is noise), the
Q8_0beside it is refused, an unmeasured side is never a match, and the thresholds' stated meanings are pinned. 27 hygiene ratchets green;cargo check -p continuum-core --libclean.Receipt still owed
One training job completing on this card — that is what I verify next, not a claim in this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc