ik_llama_opt/ggml
Coenie Beyers 73ad16269b
rpc: fix crash running GLM-5.2 (glm-dsa) split over RPC (#2360)
* rpc: disable unsafe memcmp graph cache

Same-shape prefill micro-batches compared equal and took the GRAPH_RECOMPUTE
path, re-running a stored graph against a grown KV context; the GLM-5.2 DSA
indexer then read past its buffers and crashed the server. Always send the full
graph. Upstream retired this cache design in ggml-org/llama.cpp#22701.

* rpc: use 64-bit ne/nb in rpc_tensor wire struct

ggml_tensor holds int64 ne and size_t nb; the wire struct stored them as uint32,
truncating any stride >= 4 GiB. The GLM-5.2 DSA indexer query stride crosses that
at ~26k tokens. Bump RPC_PROTO_MAJOR (wire-format change).

* ggml: use 64-bit locals in ggml_permute

Permuted strides were built in int locals, truncating any stride > 2 GiB before
it reached result->nb (size_t). Affects any permuted tensor over ~2 GiB.
2026-08-26 17:02:43 +02:00
..
cmake Merge mainline llama.cpp (#3) 2024-07-27 07:55:01 +02:00
include rpc: fix crash running GLM-5.2 (glm-dsa) split over RPC (#2360) 2026-08-26 17:02:43 +02:00
src rpc: fix crash running GLM-5.2 (glm-dsa) split over RPC (#2360) 2026-08-26 17:02:43 +02:00
.gitignore Merge mainline llama.cpp (#3) 2024-07-27 07:55:01 +02:00
CMakeLists.txt Chunked experts (CPU) (#2202) 2026-07-30 13:16:02 +03:00