ik_llama_opt/ggml/include
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
..
ggml-alloc.h Merge mainline llama.cpp (#3) 2024-07-27 07:55:01 +02:00
ggml-backend.h Add --prefetch-experts to stream mmap'd MoE experts into page cache (#2101) 2026-07-11 10:43:42 +03:00
ggml-cann.h Merge mainline llama.cpp (#3) 2024-07-27 07:55:01 +02:00
ggml-cpp.h Port mdmd from mainline + Qwen2/2.5-VL support (#798) 2025-09-27 08:45:29 +02:00
ggml-cuda.h Split mode graph for dense Gemma4 assistant (#2022) 2026-06-24 18:29:32 +02:00
ggml-metal.h Merge mainline - Aug 12 2024 (#17) 2024-08-12 15:14:32 +02:00
ggml-rpc.h rpc: fix crash running GLM-5.2 (glm-dsa) split over RPC (#2360) 2026-08-26 17:02:43 +02:00
ggml-sycl.h Merge mainline llama.cpp (#3) 2024-07-27 07:55:01 +02:00
ggml-vulkan.h Vulkan: a fresh start (#608) 2025-07-15 08:03:13 +02:00
ggml.h Fix KQ mask padding for the Vulkan back-end (#2350) 2026-08-24 18:31:17 +02:00