Skip to content
AIBRAINWORX / OpenSourceCoder.comLOCAL-FIRST. BUILT IN THE OPEN.
Inference & Quantization / Developer & Agent Tools

llama.cpp b12648 Adds OpenCL Q4_K Cooperative-K GEMM for Speculative Verification

The b12648 pre-release of llama.cpp introduces an OpenCL q4_k coop-k c8 GEMM kernel for speculative verification and enables q4_k c8 GEMM for n >= 2 on X2 across a broad multi-backend build matrix.

Listen to this articleBrowser Voice
Ready
Official company logo or product image for llamacpp-b12648-opencl-q4-k-coop-k-gemm-spec-verify
Official image or organization logo from github.com; identification only, no endorsement.
Event / context: 2026-11-22. Source check: October 28, 2026.

OpenCL Q4_K Kernel Expansion in llama.cpp b12648

The open-source inference engine llama.cpp has published pre-release build b12648 on GitHub, introducing targeted OpenCL matrix multiplication updates aimed at speculative verification workloads. Released by github-actions on November 22, 2026 in Pacific time (published November 23 at 03:35:01 UTC), the build points to commit 44d5087 and centers on pull request #32716, titled opencl: add q4_k coop-k c8 GEMM for spec verify.

Within the release notes, the operational scope of the code change focuses on two OpenCL additions co-authored by Hongqiang Wang (wangh@qti.qualcomm.com), with the primary commit noting assistance from Codex. First, the release introduces a q4_k cooperative-K (coop-k) c8 general matrix-matrix multiplication (GEMM) implementation specifically for speculative verification (spec verify). Second, it enables q4_k c8 GEMM when the batch or token dimension n is greater than or equal to 2 for X2 execution paths. Because speculative decoding verifies multiple draft tokens concurrently rather than generating a single token per step, moving from single-token operations to n >= 2 matrix-matrix kernels is structurally important for OpenCL-backed GPUs.

Kernel Details, Build Matrix, and Hardware Targets

Strictly according to the b12648 release record, the engineering update targets 4-bit K-quant (q4_k) weights processed through an OpenCL coop-k c8 GEMM kernel. While the release summary does not disclose internal threadgroup dimensions, register tiling layouts, or throughput figures, the kernel name and threshold (n >= 2 for X2) indicate that the path activates when evaluating at least two tokens at once on supported OpenCL targets. Among the listed build configurations, Windows arm64 (OpenCL Adreno) explicitly pairs Windows on Arm with OpenCL on Adreno hardware, alongside broader Snapdragon target entries across Linux and Android covering CPU, Adreno GPU, and Hexagon NPU components.

Beyond the OpenCL change itself, b12648 spans a wide cross-platform build matrix across desktop, server, and mobile targets. Apple targets include macOS Apple Silicon (arm64), macOS Intel (x64), and iOS XCFramework, while macOS Apple Silicon (arm64, KleidiAI enabled) is marked DISABLED. Linux entries cover Ubuntu x64 (CPU), Ubuntu arm64 (CPU), Ubuntu 24.04 s390x (CPU), Ubuntu 26.04 s390x (CPU), Ubuntu 26.04 s390x (zDNN), and Vulkan builds on both x64 and arm64. Accelerated Linux builds also list CUDA 12 (CUDA 12.8 libraries on x64), CUDA 13 (CUDA 13.5 libraries on both x64 and arm64), ROCm 10.0, OpenVINO, SYCL FP32, and SYCL FP16.

Windows targets mirror that multi-vendor scope with Windows x64 (CPU), Windows arm64 (CPU), Windows arm64 (OpenCL Adreno), CUDA 12 (CUDA 12.4 DLLs), CUDA 13 (CUDA 13.5 DLLs on x64 and arm64), Vulkan on x64 and arm64, OpenVINO, SYCL, and ROCm 10.0. Meanwhile, the openEuler group—listing x86 and aarch64 targets for 310p and 910b with ACL Graph—is flagged DISABLED in this release. For provenance, commit 44d5087 carries GitHub's verified GPG signature (key ID B5690EEEBB952194) and references build attestations alongside the project website llama.app.

Developer Workflow and Edge Inference Impact

For developers running quantized large language models on Windows on Arm devices and Snapdragon-based hardware, speculative decoding often hits a bottleneck during verification, when the target model must evaluate a short sequence of draft tokens in parallel. If an OpenCL backend falls back to single-token paths or unoptimized generic routines during that multi-token pass, speculative decoding can lose much of its expected latency benefit. Adding a dedicated q4_k coop-k c8 GEMM path for n >= 2 directly addresses multi-token verification efficiency for Q4_K models on compatible OpenCL hardware.

At the integration level, the breadth of b12648's automated release pipeline allows downstream maintainers to track heterogeneous accelerators around a single tagged commit without maintaining custom build environments for every backend. Teams deploying on NVIDIA CUDA 12 or CUDA 13, AMD ROCm 10.0, Intel OpenVINO or SYCL, Vulkan, IBM Z zDNN, or Snapdragon targets can inspect a unified release point backed by GitHub build attestations and signed commit metadata. Although b12648 is marked as a pre-release, continuous release tags like this are regularly monitored by local inference wrappers and edge runtime maintainers checking for backend regressions or newly enabled GPU kernels.

Caveats, Unverified Performance, and Platform Exclusions

Several practical caveats apply to b12648. First, because the primary release page only records the commit summary and build matrix—and its 40-item asset list failed to finish loading in the captured release page excerpt—no independent or vendor-supplied tokens-per-second benchmarks, perplexity measurements, or power figures are provided for the new q4_k coop-k c8 kernel. Actual performance gains on X2 or other OpenCL GPUs remain unverified until benchmarked directly on target devices.

Second, b12648 is explicitly labeled a Pre-release in an active codebase, meaning kernel thresholds and scheduling behavior may evolve in subsequent builds. Third, platform coverage is not uniform across the matrix: both macOS Apple Silicon (arm64, KleidiAI enabled) and the entire openEuler target group (310p and 910b) are listed as DISABLED, requiring users on those targets to fall back to standard builds or compile from source. Finally, the captured release excerpt does not enumerate licensing terms for the repository or proprietary vendor runtimes such as CUDA, ROCm, OpenCL, or Snapdragon components, so distributors must review llama.cpp licensing and third-party redistributable rules independently.

EXPLORE THE SOURCE

GitHub repositories

Automated Vertex AI (gemini-4-hydrogen) primary-source report; reviewed 2026-11-23.

Follow your curiosity.

Pass the signal.