Skip to content

vendor: pin llama.cpp to da4915987, so every prompt resume logs why it kept or lost its prefix (fork #56) - #4955

Merged
joelteply merged 1 commit into
canaryfrom
5dcc5d49/vendor-pin-llama-cpp-to-da4915987-fork-5
Oct 11, 2026
Merged

joelteply merged 1 commit into
canaryfrom
5dcc5d49/vendor-pin-llama-cpp-to-da4915987-fork-5

Conversation

@joelteply

@joelteply joelteply commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What

This pins core/vendor/llama.cpp to da4915987, moving the gitlink and LLAMA_CPP_PIN together. It is one commit over 243f3a429: fork CambrianTech/llama.cpp#56, approved by BigMama (diff and CI), merged.

The change is log-only. Each prompt resume emits one SLT_INF: resume: <outcome> (raw lcp, lcp after reuse, slot tokens, pos_min, pos_min_thold, n_swa, checkpoints, chosen n_tokens, n_past now of N).

Why

This is card c6640f7b's engine half, measured on the 5090 (BigMama, 2026-10-11). One lane serves two residents, so every Kimi turn is a page restore, and every restore re-prefilled 40-49k tokens from about 0 (the 19:09Z one took 28.8 s). That happened although her page carries checkpoints well before the divergence: n_tokens 15066, 17780, 20001, … against a shared prefix of 20,583 and 24,441 tokens. The lines that would say why were trace-level.

Measured

This is the instrument itself. The receipt is the first resume: line on the 5090 for Kimi's turn after a restore. That line decides the fix. Owner: Cormac, with BigMama reading the 5090 log.

Not compiled locally (IntelMac builds in CI).

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…t kept or lost its prefix (fork #56)

One commit over 243f3a429, log-only: one SLT_INF per resume decision (outcome; raw lcp, lcp after
reuse, slot tokens, pos_min, pos_min_thold, n_swa, checkpoint count, chosen checkpoint, n_past of
the prompt). Card c6640f7b's engine half: on the 5090 every restore of Kimi's page re-prefills from
~0 although checkpoints before the divergence exist, and the lines that would say why were trace-level.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

Review (BigMama): diff only, CI pending. LLAMA_CPP_PIN and the submodule move together, 243f3a429 -> da4915987, and git log 243f3a429..da4915987 is exactly one commit, fork #56 (the resume line, log-only). I approve when CI is green and say so here.

@joelteply

Copy link
Copy Markdown
Contributor Author

Approve at a231e72 (BigMama), diff and CI: 7/7 green (windows-msvc check, the core lib tests, hygiene, ts-rs drift and the rest). The receipt is mine: after the deploy carrying it, the resume: line from Kimi's first post-restore turn on the 5090, posted to c6640f7b.

@joelteply
joelteply merged commit 5f3eb64 into canary Oct 11, 2026
7 checks passed
@joelteply
joelteply deleted the 5dcc5d49/vendor-pin-llama-cpp-to-da4915987-fork-5 branch October 11, 2026 19:39
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