Skip to content

chore(llama): pin the fork at 66035e261, the training stack (quantized OUT_PROD, delta-net backward, in-server /train, off by default) - #4437

Merged
joelteply merged 3 commits into
canaryfrom
chore/llama-pin-training-stack
Sep 27, 2026
Merged

joelteply merged 3 commits into
canaryfrom
chore/llama-pin-training-stack

Conversation

@joelteply

@joelteply joelteply commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Moves core/vendor/llama.cpp from 965d38a90 to 66035e261 (c09af02f4 plus fork #18, the <mutex>/<shared_mutex> includes libstdc++ needs; no codegen change), the tip of the fork trunk feat/props-weight-residency. It carries the training stack that the dream lane needs to train on her resident weights.

What comes in

Serving smoke (Cormac's point 3)
The 5090 ran the old pin against the new pin with the same model and the same greedy requests. The model was Qwen2.5-Coder-1.5B Q4_K_M, all layers on the GPU. The old binary was built from 965d38a90 and the new one from a tree with no diff against c09af02f4, both with the same recipe.

prompt sha, old = new decode tok/s, old first (old / new) decode tok/s, new first (old / new)
p1_code 573042ccb4f24b92 247 / 428 458 / 399
p2_chat b3e6241708e2ac76 229 / 413 452 / 436
p3_long 0536c3a15ff5b220 129 / 269 279 / 375
p4_rust bf513bc425325de8 422 / 420 448 / 441

All four completions are byte-identical. Whichever binary runs second is faster, so the speed difference is run order, not the pin.

cargo check -p continuum-core against the new llama.h finishes with no errors.

Not in this PR: no lane passes --train-dir yet. That is a separate core change, so after this deploys, every lane serves exactly as before. Asks: the same smoke on the M5 (Fable) and the IntelMac (Cormac) for their tiers.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

…d OUT_PROD, delta-net backward, in-server /train)

Moves core/vendor/llama.cpp 965d38a90 -> c09af02f4 (fork trunk feat/props-weight-residency).
What comes in: CUDA OUT_PROD with a quantized src0 (BF16 cuBLAS path), the CUDA
GATED_DELTA_NET_BACK kernel (checkpointed, head sizes 16-128), the hybrid store-index guard,
and llama-server POST /train, which is OFF unless the lane passes --train-dir DIR.

Serving is unchanged: a before/after greedy smoke on the 5090 (1.5B Q4_K_M, 4 prompts) gives
byte-identical completions, and decode speed is within run-order noise in both orders.
No lane passes --train-dir yet; that is a separate core change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply

Copy link
Copy Markdown
Contributor Author

IntelMac smoke: PASS. Old pin 965d38a90 (build 10765, the lane's installed llama-server) vs new c09af02f4 (build 10788), Qwen2.5-Coder-1.5B-Instruct-Q4_K_M, CPU (-ngl 0 -t 2 -np 1 -c 1024), 4 greedy prompts × 48 tokens (temperature 0, top_k 1, seed 1, cache_prompt false), run order old, new, new, old:

run wall output sha
old1 12 s 9f576f90a55e
new1 12 s 9f576f90a55e
new2 13 s 9f576f90a55e
old2 12 s 9f576f90a55e

Byte-identical across pins and within each pin; no CPU-tier serving regression. (The new binary was built CPU-only from the fork tree, so the build config may differ from the installed one; byte-identity makes that moot.)

But not APPROVED yet: this head does not build on Linux. CI's cargo test --lib and doc jobs fail building the llama crate: llama-adapter.cpp:419/486: 'unique_lock' is not a member of 'std'. #14's lock uses std::unique_lock without <mutex>; libc++ pulls it in transitively (so every macOS build, smoke and review passed), libstdc++ doesn't. Fix is fork PR CambrianTech/llama.cpp#18 (one include). Bump the pin to the trunk tip once #18 merges and the three red jobs should go green; my word follows at that head with this smoke as the instrument.

Co-Authored-By: Claude Opus 5.5 [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply joelteply changed the title chore(llama): pin the fork at c09af02f4, the training stack (quantized OUT_PROD, delta-net backward, in-server /train, off by default) chore(llama): pin the fork at 66035e261, the training stack (quantized OUT_PROD, delta-net backward, in-server /train, off by default) Sep 27, 2026
@joelteply
joelteply merged commit 5f88185 into canary Sep 27, 2026
8 checks passed
@joelteply
joelteply deleted the chore/llama-pin-training-stack branch September 27, 2026 03:20
joelteply added a commit that referenced this pull request Sep 27, 2026
… consumer aligns submodules (P0: a lagging engine would not start) (#4446)

* fix(serving): --train-dir only to an engine whose own --help lists it — an older engine refuses the flag and the lane does not start

#4438 passes --train-dir to every lane. An engine older than the flag rejects it, and the lane
does not start. On the 5090 the core deployed while the engine stayed at b10765-965d38a90 (the
consumer converges the core, not the engine), so only a wedged dirty check kept #4438 off her.

The once-per-process --help probe (the one that reads the engine's KV cache types) now also
records whether the engine LISTS --train-dir (a line starting with it: the real help prints
"--train-dir DIR ..."; 965d38a90 prints nothing for it). The lane gets the flag only then;
unknown (no probe, no answer) is no — in-engine training is never worth a lane. The probe row
carries train_dir.

Test: train_dir_is_accepted_only_when_the_engines_help_lists_it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

* fix(deploy): the consumer aligns submodules to the tip it checks out, and a stale submodule pointer is not "uncommitted work"

`git checkout --detach <tip>` moves gitlinks, not submodule trees: #4437's deploy left
core/vendor/llama.cpp at 965d38a90 under a tip pinning 66035e261, and the mismatch then read as
dirty, so the consumer refused every later tip (NothingOwed/RefuseDirty with dirty=true).

After its checkout the consumer runs `git submodule update --recursive` (initialized submodules
only: a deploy never starts a fresh clone; local changes inside a submodule fail it loudly
instead of losing them), and its dirty check ignores submodule pointers (aligning them is its
own job now). Engine convergence itself still needs the elevated registration (#4382:
`continuum install`); the lane-side gate in the previous commit keeps a lagging engine safe.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant