Bump llama.cpp to 72b590d65 (b10989+1, +46 from b6b003d2c), release v0.8.51 - #95
Merged
Merged
Conversation
…0.8.51 No NIF-facing header changed; RPC protocol major goes 6 -> 7 (SET_TENSOR cache-flag byte), so both ends of a two-node split must rebuild together. The same upstream change stops the RPC hash cache persisting activations. Verified on Metal (M4 Max): 430 passed default, 573 passed with smoke/embeddings/slow/mtp, 6 passed MTPE4BSidecarTest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
vendor/llama.cppfromb6b003d2c(b10944) to72b590d65— origin/master, one commit pastb10989(upstream v0.4.1). +46 commits. PinsLLAMA_COMMITin theMakefileto the same SHA and bumps@versionto 0.8.51.API compatibility
No diff in any header the NIF includes —
llama.h,ggml-backend.h,chat.h,json-schema-to-grammar.h,speculative.h— and none inllama_model_default_params/llama_context_default_params.c_src/is untouched.The one relevant header change is
ggml-rpc.h:RPC_PROTO_MAJOR_VERSION6 → 7 (ggml-org/llama.cpp#28789).SET_TENSORgains a cache-flag byte, so a worker at this build refuses a v0.8.50 client andvice versa — both ends of a two-node split must rebuild together.
The same upstream change fixes what motivated it: the RPC hash cache (
:cache_dironLlamaCppEx.RPC.Server) used to hash and persist every transfer over 10 MiB, including the activationsggml_backend_schedcopies between backends, filling the worker's disk during prefill on a split model. It now covers weight tensors only. The:cache_dirmoduledoc is adjusted to say so.Release-guide workaround #3 (
ggml_backend_rpc_start_serverreturnsvoid) is unchanged upstream; the preflight-bind workaround stays.Notable upstream changes in range
CACHE_LINE_SIZEmismatch between C and C++ TUs; precompiled header disabled (#28882)common_speculativeskips the target decode whenllama_n_rs_seqsays it is not needed (#28749)Verification
macOS (Metal), M4 Max,
LLAMA_BACKEND=metalsource build:mix test(no model)--include smoke --include embeddings --include slow --include mtp(Qwen3.5-0.8B-UD-Q8_K_XL, Qwen3-Embedding-0.6B-f16, Qwen3.5-0.8B-MTP-Q8_0)MTPE4BSidecarTestunder--include mtp_sidecar(gemma-4-E4B-it-Q4_K_M + mtp-gemma-4-E4B-it-Q8_0)mix format --check-formattedNot re-run at this build: the Qwen 3.8 sidecar pair (
MTPSidecarTest),rpc_live, dialyzer, and the Hex source-build round-trip.checksum.exsis regenerated by the precompile workflow after tagging.Files
vendor/llama.cpp— submodule →72b590d65Makefile—LLAMA_COMMITmix.exs—@version0.8.50 → 0.8.51CHANGELOG.md— v0.8.51 sectionlib/llama_cpp_ex/rpc/server.ex—:cache_dirdoc: "weight tensors"