<details open> ggml-openvino: fix CI op tests and improve KV cache decode (#33002) * ggml-openvino: write back consumed in-place nodes of op-test graphs On the naive path every node of an op-test graph is a model output, except an in-place node that another node reads: it got no output, so its destination buffer was never written. GATED_DELTA_NET_CACHE_FUSION copies the final state into the cache and then reads the copy, so the cache kept its old contents. Write such a node back through its view_src, as is already done when nothing reads it. Model graphs are unchanged. * ggml-openvino: keep the rest of the buffer in a partial in-place FILL An in-place FILL on a view into part of a larger buffer produced only the filled values. Its output stands for the whole in-place source, so the write-back put those values at the start of the buffer and not at the view's offset. For a contiguous view with a static shape, build the whole buffer: the elements before the view, the filled values, then the elements after it. Add NodeContext::get_inplace_op_src() to detect the in-place case. * ggml-openvino: fix softplus precision for large negative inputs softplus was computed as relu(x) + log(1 + exp(-|x|)). When exp(-|x|) is below the precision of 1 + exp(-|x|), the log returns 0 or one ulp, so for x below about -16 in f32 the result was 0 or far off. The SOFTPLUS test case with inputs in [-16.6, -16] fails on CPU and GPU. Compute log1p(y) for y = exp(-|x|) with the series y - y^2/2 + y^3/3 - y^4/4 when y < 0.01, where its relative error is below 2e-9, and keep log(1 + y) above that. * ggml-openvino: finer GPU KV rounding for decode batches Rounding the GPU KV length up to a power of two makes a batch attend up to twice the rows that hold data right after each power of two. Decode reads every attended row, so long contexts lose decode speed. The GPU plugin keeps memory for each attended length: several large buffers for a prompt batch, about one copy of K and V for a decode batch. Keep the power of two for prompt batches (more than 16 tokens per sequence), and round decode batches up to a multiple of 2^k / 4 and of 256. That is four lengths per power of two, with at most 25% masked rows. * ggml-openvino : keep the head axis of the 4-D KV cache static * ggml-openvino: split two one-line lambdas per clang-format The backend's .clang-format keeps a lambda on one line only when it is a function argument (AllowShortLambdasOnASingleLine: Inline). The constant helpers in the softplus and FILL translators are assigned to variables, so clang-format splits them. Formatting only. --------- Co-authored-by: Mustafa Cavus <mustafa.cavus@intel.com> </details> **Website:** - <https://llama.app> **Attestations:** - <https://github.com/ggml-org/llama.cpp/attestations/72468268> **macOS/iOS:** - [macOS Apple Silicon (arm64)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-macos-arm64.tar.gz) - macOS Apple Silicon (arm64, KleidiAI enabled) [DISABLED](https://github.com/ggml-org/llama.cpp/pull/23780) - [macOS Intel (x64)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-macos-x64.tar.gz) - [iOS XCFramework](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-xcframework.zip) **Linux:** - [Ubuntu x64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-x64.tar.gz) - [Ubuntu arm64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-arm64.tar.gz) - [Ubuntu 24.04 s390x (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-s390x.tar.gz) - [Ubuntu 26.04 s390x (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-26.04-s390x.tar.gz) - [Ubuntu 26.04 s390x (zDNN)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-zdnn-s390x.tar.gz) - [Ubuntu x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-vulkan-x64.tar.gz) - [Ubuntu arm64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-vulkan-arm64.tar.gz) - [Ubuntu x64 (CUDA 12)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-cuda-12.8-x64.tar.gz) - [CUDA 12.8 libraries](https://github.com/ggml-org/llama.cpp/releases/download/b12754/cudart-llama-b12754-bin-ubuntu-cuda-12.8-x64.tar.gz) - [Ubuntu x64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-cuda-13.5-x64.tar.gz) - [CUDA 13.5 libraries](https://github.com/ggml-org/llama.cpp/releases/download/b12754/cudart-llama-b12754-bin-ubuntu-cuda-13.5-x64.tar.gz) - [Ubuntu arm64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-cuda-13.5-arm64.tar.gz) - [CUDA 13.5 libraries](https://github.com/ggml-org/llama.cpp/releases/download/b12754/cudart-llama-b12754-bin-ubuntu-cuda-13.5-arm64.tar.gz) - [Ubuntu x64 (ROCm 10.0)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-rocm-10.0-x64.tar.gz) - [Ubuntu x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-openvino-2026.4.1-x64.tar.gz) - [Ubuntu x64 (SYCL FP32)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-sycl-fp32-x64.tar.gz) - [Ubuntu x64 (SYCL FP16)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-ubuntu-sycl-fp16-x64.tar.gz) - [Linux arm64 (Snapdragon: CPU, Adreno GPU, Hexagon NPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-linux-arm64-snapdragon.tar.gz) - [setup guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/snapdragon/linux.md) **Android:** - [Android arm64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-android-arm64.tar.gz) - [Android arm64 (Snapdragon: CPU, Adreno GPU, Hexagon NPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-android-arm64-snapdragon.tar.gz) - [setup guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/snapdragon/README.md) **Windows:** - [Windows x64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-cpu-x64.zip) - [Windows arm64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-cpu-arm64.zip) - [Windows arm64 (OpenCL Adreno)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-opencl-adreno-arm64.zip) - [Windows x64 (CUDA 12)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-cuda-12.4-x64.zip) - [CUDA 12.4 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/b12754/cudart-llama-bin-win-cuda-12.4-x64.zip) - [Windows x64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-cuda-13.5-x64.zip) - [CUDA 13.5 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/b12754/cudart-llama-bin-win-cuda-13.5-x64.zip) - [Windows arm64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-cuda-13.5-arm64.zip) - [CUDA 13.5 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/b12754/cudart-llama-bin-win-cuda-13.5-arm64.zip) - [Windows x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-vulkan-x64.zip) - [Windows arm64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-vulkan-arm64.zip) - [Windows x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-openvino-2026.4.1-x64.zip) - [Windows x64 (SYCL)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-sycl-x64.zip) - [Windows x64 (ROCm 10.0)](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-bin-win-rocm-10.0-x64.zip) **openEuler:** - [DISABLED](https://github.com/ggml-org/llama.cpp/pull/23705) - openEuler x86 (310p) - openEuler x86 (910b, ACL Graph) - openEuler aarch64 (310p) - openEuler aarch64 (910b, ACL Graph) **UI:** - [UI](https://github.com/ggml-org/llama.cpp/releases/download/b12754/llama-b12754-ui.tar.gz)
AI NEWS JOURNAL
llama.cpp releasesAI NEWS / JOURNAL
b12754
The update addresses several issues in the ggml-openvino backend, including fixing write-back for in-place nodes in op-test graphs, improving partial in-place FILL buffer handling, enhancing softplus precision for large negative inputs, refining GPU KV rounding for decode batches to reduce performance loss, maintaining a static head axis in 4-D KV cache, and adjusting code formatting for consistency.