ggml v0.27.0
Permanent link:
cppdashboard.dev/r/2026/10/ggml-v0-27-0Tensor library for machine learning
Release notes
## Overview ggml v0.27.0 extends the backend scheduler API with user callbacks for split weight copying and compute-buffer reallocation, and bumps the RPC protocol to v8 to support tensor-parallel RPC servers. Backends gained substantial new fast paths: chunked gated-delta-net kernels on CUDA/HIP, KleidiAI SME2 k-quant matmuls and AVX2 Q2_0 dot products on CPU, L2-aware coopmat2 matmul scheduling and bf16 activations on Vulkan, reordered-layout MoE kernels (MXFP4, IQ3, Q5_K, grouped XMX GEMM) on SYCL, dp4a MoE GEMMs on OpenCL, tensor-API and wider-head-dim flash attention on Metal, and a DMA/HVX copy overhaul with new pooling and 3D im2col ops on Hexagon. Correctness work concentrated on non-contiguous and strided views, grid/workgroup size limits, out-of-bounds accesses, and well-defined `mul_mat_id` behavior for duplicate expert ids. ### API changes - Add a scheduler copy callback (`ggml_backend_sched_set_copy_callback`) for user-side copying of split weights ([llama/29943](https://github.com/ggml-org/llama.cpp/pull/29943)) - Add a scheduler realloc callback (`ggml_backend_sched_set_realloc_callback`) for compute buffer reallocations ([llama/30329](https://github.com/ggml-org/llama.cpp/pull/30329)) - Bump `RPC_PROTO_MAJOR_VERSION` to 8 for the new tensor-parallel RPC server mode ([llama/26610](https://github.com/ggml-org/llama.cpp/pull/26610)) - Document that `ggml_mul_mat_id` is undefined for ids that repeat an expert for the same token ([llama/30501](https://github.com/ggml-org/llama.cpp/pull/30501)) - Document that `ggml_gated_delta_net` only guarantees the latest state slot when `n_tokens > K` ([llama/29353](https://github.com/ggml-org/llama.cpp/pull/29353)) - Default symbol visibility is now hidden, removing internal symbols accidentally exported through `GGML_API` ([llama/30014](https://github.com/ggml-org/llama.cpp/pull/30014)) ### Core changes - Fix out-of-bounds write in `ggml_acc`/`ggml_set` when a negative offset sign-extends past the bounds check ([llama/30135](https://github.com/ggml-org/llama.cpp/pull/30135)) - Fix `ggml_conv_1d` result layout for batched input so the output is `[N, OC, OL]` ([llama/28738](https://github.com/ggml-org/llama.cpp/pull/28738)) - Make CLAMP correct on non-contiguous views in the CPU and CUDA backends ([llama/29517](https://github.com/ggml-org/llama.cpp/pull/29517)) - Meta backend: treat views of host-buffer tensors as unsplit and skip them in subgraph mapping ([llama/30217](https://github.com/ggml-org/llama.cpp/pull/30217)) - Meta backend: recreate all subgraphs when the compute arena is reallocated ([llama/30453](https://github.com/ggml-org/llama.cpp/pull/30453)) - RPC: make `GGML_RPC_DEBUG` a verbosity level, add transport logs and clearer tensor transfer logs ([llama/29544](https://github.com/ggml-org/llama.cpp/pull/29544), [llama/30481](https://github.com/ggml-org/llama.cpp/pull/30481)) ### Backend changes #### CPU - Add AVX2 dot product kernel for Q2_0 ([llama/30447](https://github.com/ggml-org/llama.cpp/pull/30447)) - KleidiAI: add SME2 matmul for Q4_K and route Q6_K to the Q8_0 path ([llama/29219](https://github.com/ggml-org/llama.cpp/pull/29219)) - Restore the FP16->FP32 lookup table when F16C is available, and fix AVX2 builds not using F16C ([llama/30342](https://github.com/ggml-org/llama.cpp/pull/30342), [llama/30343](https://github.com/ggml-org/llama.cpp/pull/30343), [llama/30270](https://github.com/ggml-org/llama.cpp/pull/30270)) - Vectorize the fp32->fp16 conversion and optimize `pad_f32` ([llama/30157](https://github.com/ggml-org/llama.cpp/pull/30157), [llama/30526](https://github.com/ggml-org/llama.cpp/pull/30526)) - Add F16 reference implementation and validation for SWIGLU_OAI ([llama/29200](https://github.com/ggml-org/llama.cpp/pull/29200)) - Size the set_rows conversion buffer for all threads ([llama/30454](https://github.com/ggml-org/llama.cpp/pull/30454)) #### CUDA / HIP - Add chunked gated-delta-net kernels, plus mor…
Share this resource