Skip to content
AIBRAINWORX / OpenSourceCoder.comLOCAL-FIRST. BUILT IN THE OPEN.
Linux & Systems / Inference & Quantization / Text & Coding LLMs / Linux

llama.cpp b12722 Adds OpenCL Cooperative Matrix MoE Kernels for 4-Bit and 5-Bit Weights

Release b12722 of ggml-org/llama.cpp introduces an OpenCL C cooperative matrix Mixture-of-Experts kernel targeting q4_0, q4_1, q4_k, q5_0, q5_1, and q5_k quantized formats, expanding portable GPU inference support.

Listen to this articleBrowser Voice
Ready
Official company logo or product image for llama-cpp-b12722-opencl-coopmat-moe-kernels
Official image or organization logo from github.com; identification only, no endorsement.
Event / context: 2026-11-24. Source check: October 28, 2026.

OpenCL Cooperative Matrix MoE Kernels Arrive in llama.cpp b12722

The open-source inference project llama.cpp has published release tag b12722 under the ggml-org repository, adding a new OpenCL cooperative matrix kernel designed for quantized Mixture-of-Experts workloads. According to the official llama.cpp b12722 release page, the tag points to commit e6443bd and was published on November 24, 2026 in Pacific Standard Time, corresponding to the November 25, 2026 at 00:42:30 UTC timestamp recorded on GitHub. Contributor shawngu-quic tagged the release, which carries GitHub's verified commit signature under GPG key ID B5690EEEBB952194.

For developers maintaining local language model deployments and cross-vendor GPU backends, b12722 represents a focused low-level backend addition rather than a broad user-facing overhaul. The release headline specifically documents an OpenCL C cooperative matrix Mixture-of-Experts kernel covering 4-bit and 5-bit quantized tensor formats. Because ggml-org ships rapid numbered builds directly from active development, incremental tags such as b12722 give downstream integrators immediate visibility into GPU kernel coverage without waiting for consolidated milestone releases.

Engineering Scope and Named Components in Release b12722

Strictly within the primary GitHub release text, the core technical change is identified by the commit summary line: opencl: add clc coopmat moe kernel for q4_0/q4_1/q4_k/q5_0/q5_1/q5_k/…. Each identifier in that summary maps to a specific layer of the inference stack inside ggml-org/llama.cpp. The opencl prefix places the change inside the project's portable OpenCL compute backend, while clc denotes an OpenCL C kernel implementation rather than host-side orchestration alone.

The coopmat and moe components define the execution model. Cooperative matrix primitives allow a GPU subgroup or workgroup to load, multiply, and accumulate tiled matrix fragments collaboratively, improving register and shared-memory reuse compared with naive scalar dot-product loops. Pairing cooperative matrix operations with Mixture-of-Experts routing targets sparse transformer architectures in which each token activates only a selected subset of expert weight matrices rather than traversing dense feed-forward layers.

Release b12722 explicitly names six quantization formats in its visible title: q4_0, q4_1, q4_k, q5_0, q5_1, and q5_k. These span both uniform block quantizations and k-quant variants commonly used to balance memory capacity and generation quality during local inference. The GitHub release summary truncates with an ellipsis immediately after q5_k/, indicating that additional formats may be included in commit e6443bd beyond what appears in the headline snippet. Release metadata also shows two assets associated with b12722, though GitHub's dynamic asset loader and tag comparison view returned loading errors in the captured page text rather than displaying individual filenames or diff metrics.

Developer Workflow Impact for Quantized MoE Workloads

Open-weight Mixture-of-Experts models have gained wide adoption among self-hosted and edge AI developers because sparse expert routing reduces active per-token compute relative to total parameter count. In practice, however, MoE inference places distinct demands on GPU kernels and memory subsystems: token routers select non-contiguous expert weight slices at runtime, and packed low-bit weights must be unpacked cleanly inside matrix-multiply inner loops. When an accelerator backend lacks dedicated cooperative matrix MoE paths for widely distributed 4-bit and 5-bit quantizations, OpenCL users can face slower fallback kernels or pressure to adopt vendor-locked compute APIs.

Adding a clc coopmat MoE kernel directly into llama.cpp reduces that portability gap for engineers targeting OpenCL-capable GPUs and integrated graphics adapters. Desktop wrapper maintainers, local workstation operators, and embedded runtime developers who standardize on ggml-org/llama.cpp gain a unified upstream path for quantized MoE execution across q4_0, q4_1, q4_k, q5_0, q5_1, and q5_k models without maintaining custom out-of-tree patches or separate proprietary SDK pipelines.

Verification Boundaries, Hardware Support, and Caveats

Several evidentiary and operational caveats accompany this release. First, the b12722 tag page provides no throughput numbers, latency measurements, memory-bandwidth metrics, or accuracy benchmarks, and no independent hardware testing was conducted for this report. Real-world performance gains from the cooperative matrix MoE kernel remain unverified until measured on specific models and target GPUs.

Second, OpenCL cooperative matrix execution depends heavily on hardware capabilities, driver maturity, and runtime compiler support. GPUs or OpenCL implementations that lack cooperative matrix extension support may be unable to compile or dispatch the new clc kernel path, potentially requiring specific driver versions, build flags, or fallback execution paths.

Finally, because the captured GitHub release page truncated the commit title after q5_k/ and failed to load the two attached asset filenames and comparison diff, maintainers planning production upgrades should inspect commit e6443bd directly in the repository, verify target build options, and confirm ggml-org/llama.cpp licensing obligations before redistributing compiled binaries.

EXPLORE THE SOURCE

GitHub repositories

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

Follow your curiosity.

Pass the signal.