Repository navigation
engine: a completion can carry a learn (atomic with its turn); labelled positions carry weights - #5082
Conversation
…ed positions carry weights (9a1099343) Bumps core/vendor/llama.cpp + LLAMA_CPP_PIN 56507cceb -> 9a1099343 (fork #65): - 9a1099343: "learn": {"reply", "lora_id", "lr"} on a completion is learned on its own slot as the turn finishes, before release, outcome in the final response; one learner (learn_on_slot) for this and POST /learn. On the M5's one-slot 27B lane a separate /learn lost the slot 12 of 12 times. - b7c92db19: llama_batch.label_weight (a labelled position's weight in the loss; NULL = 1); an unweighted batch keeps the unweighted loss, so CUDA trains it on the GPU as before. The core sends neither yet; serving is unchanged unless a request asks to learn. ## Measured (M5, 2026-10-15) - One slot, a second client taking it continuously (Metal, qwen2.5-0.5b, Qwen3.8's template): 4 learn-carrying turns, 4 succeeded, loss 2.178 -> 1.368 -> 0.282 -> 0.092, 889-962 ms each. - label weights (CPU quick check, test-walk-exact WALK_MIXED_ONLY, F32 and flash q8_0): weights 1,1 = unweighted, 2,2 = twice, 1,0 = half of row 0's own step: all cosine/norm 1.0000. - Build: zero warnings. ## Measured after deploy (owner Fable) On the M5's 27B lane at its window: learn-carrying completions, loss over 3 learns, ms per learn, engine footprint over rest, the persona's decode ms/token during vs before. Known, carded separately (5b497852): CPU-only (-ngl 0) training crashes; not on any lane's path (all GPU). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Cormac review of continuum#5082 (head f5be630, fork pin 0cb014e6b): CHANGES REQUESTED, one point. The claim checked: "every final response of a learn-carrying request includes a learn outcome." What holds (read at 0cb014e6b, tools/server/server-context.cpp):
What fails (tools/server/server-task.cpp): learned is serialized only by to_json_non_oaicompat (:362), to_json_oaicompat (:410) and to_json_oaicompat_chat (:461). to_json_oaicompat_chat_stream (:471), _resp (:537), _resp_stream (:608), _anthropic (:740) and _anthropic_stream (:806) drop it. Meanwhile server-schema.cpp:552 accepts "learn" whatever the stream or res_type. Why it matters: continuum's chat requests set "stream": true (core/continuum-core/src/inference/request_body.rs:560). A learn-carrying completion sent by continuum through that path would learn on the slot, but the client would never see the outcome. Fix, either: The rest reads right: the learn runs on the turn's own slot before release, and the 4/4 receipt under a competing client is the one that matters. |
…e (Cormac's review) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Cormac re-review of continuum#5082, head 7368792 (fork pin cc2e05ff2): source APPROVED, conditional on CI being green at this exact head (2 pass, 4 pending when I read it). Claim verified: "every final response of a learn-carrying request includes a learn outcome." I read the code at cc2e05ff2; I did not run the test (no Metal fork build on IntelMac).
Non-blocking: the script needs a hand-started server with --train-dir, so CI does not run it. It stays a manual receipt until the server test harness can start a training server. Fable owns that follow-up, either carded or as a note on the 27B measurement card. |
engine: a completion can carry a learn (atomic with its turn); labelled positions carry weights (9a1099343)
Bumps core/vendor/llama.cpp + LLAMA_CPP_PIN 56507cceb -> 9a1099343 (fork #65):
turn finishes, before release, outcome in the final response; one learner (learn_on_slot) for
this and POST /learn. On the M5's one-slot 27B lane a separate /learn lost the slot 12 of 12 times.
unweighted batch keeps the unweighted loss, so CUDA trains it on the GPU as before.
The core sends neither yet; serving is unchanged unless a request asks to learn.
Measured (M5, 2026-10-15)
4 learn-carrying turns, 4 succeeded, loss 2.178 -> 1.368 -> 0.282 -> 0.092, 889-962 ms each.
1,1 = unweighted, 2,2 = twice, 1,0 = half of row 0's own step: all cosine/norm 1.0000.
Measured after deploy (owner Fable)
On the M5's 27B lane at its window: learn-carrying completions, loss over 3 learns, ms per learn,
engine footprint over rest, the persona's decode ms/token during vs before. Known, carded
separately (5b497852): CPU-only (-ngl 0) training crashes; not on any lane's path (all GPU).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo