Commit 26b9ff0
authored
Bump llama.cpp to b10830 (465e49b9c, upstream v0.4.0) (#89)
165 commits past b10665 (ca3d5a3e1). LLAMA_COMMIT in the Makefile moves
with the submodule. No NIF source change.
API surface
- include/llama.h: only llama_tensor_read_lazy -> llama_lazy_mode
(tensor_read_lazy -> lazy_mode in llama_model_params, #27969). The NIF
neither sets nor reads it.
- common/common.h: same rename plus preserve_reasoning_specified.
- ggml-backend.h, ggml-rpc.h, chat.h, json-schema-to-grammar.h,
speculative.h: unchanged.
- llama_model_default_params() / llama_context_default_params():
value-identical to b10665 apart from the rename.
Upstream defects we work around: all three still stand (source diff)
- ggml_backend_rpc_start_server still returns void.
- ggml_backend_cuda_comm_init untouched; RPC set/get_tensor_2d hooks still
NULL. RPC diff is #26500 (cross-server buffer serialisation) and #27960
(ggml_op_alloc_size_may_expand).
- ggml-cpu/CMakeLists.txt diff adds iqp.cpp and gates SpacemiT IME sources;
the -mcpu=native probe is untouched.
- :row split mode still throws on CUDA (no ggml_backend_split_buffer_type).
Behaviour change worth knowing
- TENSOR_READ_LAZY tensors (Gemma 4 per-layer embeddings, Qwen4-exp PLE)
now map the file regardless of load_mode (#27837).
Verification (macOS, Metal, M1 Max, LLAMA_BACKEND=metal)
- mix test (no model): 428 passed, 149 excluded
- --include smoke embeddings slow mtp (Qwen3.5-0.8B-UD-Q4_K_XL,
Qwen3-Embedding-0.6B-f16, Qwen3.6-35B-A3B-MTP-UD-Q4_K_XL):
569 passed, 8 excluded
- --include mtp_sidecar (Qwen3.8-27B-Q4_K_M + mtp-Qwen3.8-27B-Q4_0):
434 passed, 143 excluded
- --only mtp_cancel: fails as documented, "verify decode failed: code=-1",
no abort
- mix compile --warnings-as-errors and mix format --check-formatted clean
Not run: rpc_live (needs an RPC build and a worker); the Hex tarball
source-build check.1 parent 2114abe commit 26b9ff0
5 files changed
Lines changed: 48 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
201 | 229 | | |
202 | 230 | | |
203 | 231 | | |
| |||
207 | 235 | | |
208 | 236 | | |
209 | 237 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
214 | 243 | | |
215 | 244 | | |
216 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments