Skip to content

Releases

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 06:55

Overview

ggml v1.2.0 adds quantization-scale support for FP8 and NVFP4 through extended matrix-multiplication APIs, introduces internal ops, and cleans up the FlashAttention sinks/bias API. It adds the experimental HRX backend, lets the meta/TP backend place a tensor entirely on a single device, adds an RPC SUPPORTS_OP command with graph preprocessing, and adds a CONCAT backward pass plus a BF16 src1 path for matrix multiplications. Backend work includes a CUDA fusion refactor with new fused chains, Vulkan FP8/scaled matmul and FlashAttention KV-row support, Metal Neural Accelerator detection, SYCL GDN replay, WebGPU scaled matmul, Hexagon HMX W8A8 tuning, and an OpenVINO 2026.5 update.

API changes

  • Add ggml_needs_scale, ggml_mul_mat_ext and ggml_mul_mat_id_ext for FP8/NVFP4 scales (per-tensor/channel/expert) llama/28898
  • Rename the mul_mat scale parameters after their operands llama/33431
  • Add ggml_flash_attn_ext_set_sinks and ggml_flash_attn_ext_set_bias and deprecate the previous sink/bias setters llama/33178
  • Add internal ops: custom nodes with a NULL callback carry an op id implemented by the backends llama/33000
  • Add ggml_backend_dev_graph_preprocess so devices can preprocess a graph before scheduling llama/32532
  • Add GGML_BACKEND_SPLIT_AXIS_NONE so the meta/TP backend can keep a tensor entirely on a single device llama/32983
  • Reject NUL bytes in GGUF keys and tensor names and document the rule llama/33355 llama/33443
  • Bump the RPC protocol to 11.0 llama/32532

Core changes

  • Apply the FP8/NVFP4 quantization scales in the CPU mat-mul paths and the meta backend split logic llama/28898
  • Add the CONCAT backward pass llama/32151
  • Support a BF16 src1 in MUL_MAT and MUL_MAT_ID, and reject BF16 inputs in supports_op for ops without a BF16 kernel llama/32533 llama/33190
  • Fix a view init being skipped after a buft max_size split llama/25584
  • Add the internal saxpy op on the CPU backend llama/33000

Backend changes

CPU

CUDA / HIP

Metal

  • Detect Neural Accelerators without hardcoding chip names llama/33272
  • Keep the MUL_MAT weight scale off skipped MoE slots llama/33430
  • Use one thread per row for soft_max and sum_rows on short rows llama/33189
  • Keep the ADD chain fusion independent of batch size and check all fused nodes for concurrency llama/33217 llama/33175
  • Avoid a second pipeline cache lookup llama/32977
  • Remove the quantized FA kernels for head sizes that are not multiples of 32 llama/33534
  • Use Taylor series for ELU, EXPM1 and XIELU llama/33226

Vulkan

  • Add FP8 and scaled matmul support llama/29791
  • Add KV-row support to FlashAttention and fold verify tokens and GQA heads into one row tile llama/33172 llama/30190
  • Enable split-K for GQA batches above the tile row count and add FA compact bias support llama/32097 llama/32898
  • Optimize SSM_SCAN and add coopmat2 support llama/32916
  • Further optimize coopmat2 GDN llama/32860
  • Hoist the K-quant dequant in mul_mat_vecq llama/31022
  • Use one thread per row for soft_max and sum_rows on short rows llama/33197
  • Read the IQ1/IQ2/IQ3 grid tables from a storage buffer llama/32915
  • Reduce the cm1 int8 MMQ gap between AMD shader compilers via accumulate folding llama/32528
  • Improve CONV_2D/3D performance and handle empty conv3d kernels llama/32629 llama/33106
  • Handle ADD_ID with more tokens than maxComputeWorkGroupCount and update topk_moe to handle bias llama/33232 llama/32957
  • Use Taylor series for ELU llama/33226
  • Fix large ROLL shifts and Windows driver RDNA1 misclassification llama/32876 llama/33123

SYCL

  • Add GDN replay support llama/32944
  • Extend the K-type validation to V-types for flash attention llama/32703
  • Fix batched f16 mul_mat with broadcast batches and strided src1 llama/33214
  • Convert f32 to f8_e4m3 without frexpf in device code llama/33035
  • Dequantize reordered q6_K in f32 like the canonical kernel llama/32726
  • Route D=256 single-query decode to the FA vector kernel [l...
Read more

v1.1.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 07:26
bb877c0

Overview

ggml v1.1.1 lands Hexagon 2.0 with INT-HMX W8A8 matmul, automatic F32 to F16 lowering and generic DMA pipelines, and brings a CUDA FlashAttention data-loading refactor, a SYCL gated-delta-net ESIMD kernel with fused recurrent convolutions, small-K Metal mat-vec tuning, and a WebGPU log1p for softplus. It also adds the TANH backward pass, OpenVINO decode and op-test fixes, and 16-head lightning-indexer support on CUDA.

Core changes

  • Implement the TANH backward pass from the forward output and add TANH to the gradient-checked unary ops llama/32136

Backend changes

CUDA / HIP

  • Refactor and deduplicate FA data loading across the vec, tile and mma kernels, and update the HIP/MUSA instance lists llama/32901
  • Support the lightning indexer with 16 heads llama/32960
  • Fix an integer overflow in the MMF matrix offsets llama/33044

Metal

  • Spread the short mat-vec lanes over src1 rows for small K llama/33034
  • Revert the default command-buffer increase on iPhone llama/33050

SYCL

  • Add a gated-delta-net ESIMD kernel llama/31762
  • Fuse recurrent convolution windows llama/31355
  • Drop the host-wait check for fattn-mkl from the graph checks llama/31208

OpenCL

  • Disable the Adreno E17 compiler quirks by default llama/33013

WebGPU

OpenVINO

  • Improve KV-cache decode rounding and fix in-place write-back plus softplus precision in op tests llama/33002

Hexagon

  • Hexagon 2.0: add INT-HMX W8A8 matmul, automatic F32 to F16 lowering, and generic DMA pipelines llama/32582
  • Add HMX W8A8 Q8_0 KV flash attention with split-KV decode, and F16/DMA paths across most ops llama/32582
  • Fuse MUL_MAT with GLU ops and extend test-backend-ops with F16/mixed-type cases llama/32582

More info

Changelog since v1.1.0

bb877c0 ggml : bump version to 1.1.1 (#1703)
e143250 sync : llama.cpp
e14bade sycl: Remove check for host waits in fattn-mkl from graph checks (llama/31208)
2ac2ea8 ggml-hexagon 2.0 : support for int-hmx, automatic f32 -> f16 lowering, and generic dma pipelines (llama/32582)
d73b56c cuda : fix int overflow of the MMF matrix offsets (llama/33044)
568ceec ggml : add TANH backward pass (llama/32136)
c6b4ff4 sycl: add gated delta net ESIMD kernel (llama/31762)
2ed9b41 sycl: fuse recurrent convolution windows (llama/31355)
533f023 metal : spread the short mat-vec lanes over src1 rows (llama/33034)
9a8ce86 metal : revert "metal: increase default command buffers on iPhone (#31815)" (llama/33050)
d670445 opencl: Adreno E17 compiler quirks off by default (llama/33013)
b0a0839 sync : llama.cpp
103e053 CUDA: refactor & deduplicate FA data loading (llama/32901)
d8fbedb sync : llama.cpp
35aea37 model : add hy_v4_flash on the DSA iSWA cache (llama/32960)
d351ce1 ggml-openvino: fix CI op tests and improve KV cache decode (llama/33002)
54e6489 webgpu : add log1p for softplus op (llama/33017)

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 14:03
2ca3266

Overview

ggml v1.1.0 extends the graph API for new model families, strengthens scheduler and backend behavior, and brings broad performance work across all backends. The API gains gated-delta-net replay, flash-attention indexed bias, ordered asynchronous host input copies, and scheduler scratch reservation, plus new SLEEP and SIGMOID_BACK operators. Core adds BF16 coverage for more operations, faster quantization and math helpers, and new CPU quant kernels, while backends add stream-k matmul, chunked command buffers, NVFP4, CONV_2D acceleration, wider FP8/BF16 support, and many tuning and correctness fixes.

API changes

  • Add SLEEP and SIGMOID_BACK ops (ggml_sleep, ggml_sigmoid_back); GGML_OP_COUNT is 101, RPC proto 10.0.2 llama/27258 llama/32126
  • Add indexed bias to FLASH_ATTN_EXT via ggml_flash_attn_ext_add_indexed_bias() and ..._has_indexed_bias() llama/32740 llama/33016
  • Add ggml_gated_delta_net_ext() with pending-token replay and deprecate ggml_gated_delta_net() llama/31669
  • Add the fast_async_host_input device capability for host inputs copied asynchronously and ordered with the graph llama/30685
  • Deprecate ggml_ftype and add GGML_VERSION_{MAJOR,MINOR,PATCH} macros plus the ggml_tensor_t typedef llama/32647

Core changes

  • Allow backends to reserve scratch memory in graph_optimize through a new add_scratch callback llama/31898
  • Add a generic ggml_backend_tensor_memset() fallback; start a split at incompatible weights even without inputs llama/32574 llama/31775
  • RPC: add typed request helpers with a single validation step and reuse one context for request tensors on the server llama/32651 llama/32896
  • GGUF: reject invalid enum values created from untrusted file data llama/32641
  • Add BF16 support to RMS_NORM, ROPE, ROPE_BACK and SET_ROWS on CPU and CUDA llama/32135 llama/32387
  • Speed up IQ2 quantization with pattern caching, F8_E4M3 decoding, and range-reduced log1p for softplus llama/31910 llama/32477 llama/32655
  • CPU: add ARM repack kernels without dotprod, SVE q5_0/q5_1 and x86 VNNI Q2_0 dots, and multithread large GET_ROWS llama/32142 llama/30867 llama/26348 llama/32514
  • CPU: reduce excessive polling on builds without OpenMP and improve the mul_mat memory access pattern llama/32378 llama/30846
  • WASM: use relaxed SIMD dot products llama/19590
  • llamafile: add QK and Q0 quant support for s390x llama/32600 llama/32203
  • KleidiAI: allow the OHOS AArch64 target and treat the sources as vendored llama/32265 llama/32605
  • Apply .scale tensors automatically in the backend meta implementation llama/32669
  • Tests: add backend scheduler tests and fail test-backend-ops on unsupported types or backends llama/27258 llama/30279
  • Build: use LLVM 22.1.8, fix the MATH_LIBRARY check when it is NOTFOUND, and require ROCm 6.3 llama/32548 llama/32864

Backend changes

CUDA / HIP

Metal

Vulkan

Read more

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 08:34
417a024

Overview

ggml 1.0.0 prunes the deprecated public API and the legacy DIAG_MASK ops, adds configurable YaRN truncation and FP8 support, and brings broad performance work across backends: few-row quantized matmuls and MoE fusion on CUDA/Metal, a Vulkan prefill FlashAttention path, a device-side MoE scheduler on SYCL, decomposed Adreno FlashAttention in OpenCL, new WebGPU kernels, expanded Hexagon op coverage, and scheduler improvements that avoid uploading unused inputs.

API changes

  • Pruned deprecated API and removed the legacy DIAG_MASK_INF/DIAG_MASK_ZERO ops, bumping the RPC protocol to reject incompatible peers (llama/29801, llama/31946)
  • Added ggml_rope_set_truncate/ggml_rope_get_truncate to control YaRN correction-bound rounding (llama/30206, llama/30802)
  • Implemented the backward pass for TRI (llama/30712)
  • Added MUL_MAT src1 precision tests and gating for ggml_prec_set_acc (llama/31896, llama/31851)
  • Bumped the RPC protocol to v9 with faster loading and graceful failure on unreachable endpoints or failed handshakes (llama/29413, llama/30415)

Core changes

  • Scheduler skips uploading inputs that are not read and prefetches only inputs produced by earlier splits (llama/31419, llama/32100)
  • MoE cache can compute a share of the cache misses on the CPU and copy the results back asynchronously (llama/30966)
  • Meta backend raises the compute view limit for buffers with few tensors (llama/31447)

Backend changes

CUDA

Metal

Vulkan

SYCL

OpenCL

WebGPU

Hexagon

CPU

  • Switched MUL_MAT to F32 src1 and accumulate FlashAttention V in F32 (llama/31854, llama/29810)
  • Added SpacemiT GATED_DELTA_NET RVV and Q4_1 32x256 HP kernels and enabled IME2 MXFP4 repack...
Read more

v0.29.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 09:56
57e2c2c

Overview

ggml v0.29.0 adds an OCP FP8 E4M3 tensor type, a new ggml_flash_attn_ext_rows op where each query slice attends to its own list of K/V rows, a batched tensor copy API, and initial support for multi-node tensor parallelism through a new multi-process communicator interface. Core improvements include bounding tensor views by the bytes their strides reach, zero-copy GGUF export of host-buffer tensors, and vm_allocate-based allocations on Apple platforms. Performance work spans all major backends: new SVE kernels in the CPU backend, DPAS flash attention for quantized KV in SYCL, fused MoE MMQ in CUDA, faster MXFP4 mat-vec in Metal, split-K tuning in Vulkan, and a large expansion of quantized GEMM/GEMV coverage in OpenCL. The Hexagon backend gains support for several new ops, including the lightning indexer, top-k mask, conv2d and upscale.

API changes

  • Add GGML_TYPE_F8_E4M3 (OCP FP8 E4M3) with float conversion helpers and GGML_FTYPE_MOSTLY_F8_E4M3 (#27512)
  • Add ggml_flash_attn_ext_rows(): FA variant where each q slice attends to its own K/V row list via index tensor (#29510)
  • Add batched ggml_backend_tensor_copy_n(), ggml_backend_tensor_set_n() and ggml_backend_tensor_get_n() APIs (#30881)
  • Add a multi-process communicator interface (ggml_backend_comm_init_rank_t) for collectives across separate ranks (#28967)

Core changes

  • Bound tensor views by the bytes their strides reach and validate strided views against the source extent (#31584)
  • GGUF writer: write host-buffer tensor data directly to the output stream without an intermediate copy (#31144)
  • Use vm_allocate instead of posix_memalign for large allocations on all Apple platforms (#31437)
  • Meta backend: keep tensor splits across permuted views and avoid mirrored splits for ARANGE (#30499 #30878)
  • Speed up IQ4 quantization with pre-computed halfway points (#31201)

Backend changes

CPU

  • Add SVE 256-bit kernels: MXFP4 GEMV (#28141), Q6_K GEMM (#27472) and q8_0 4x8 GEMV (#30585)
  • Gate RVV code on the target vector extension so it is not built for rv64gc without V (#31607)
  • Implement ggml_flash_attn_ext_rows (#29510)

CUDA

  • Add NCCL support for multi-node tensor parallelism via the multi-process communicator, used by the RPC server (#28967)
  • Gather batched tensor reads into mapped host memory for the batched copy APIs (#31391)
  • Fuse MoE (MUL_MAT_ID) gate/up projections with GLU in MMQ (#31188)
  • Implement ggml_flash_attn_ext_rows (#29510)
  • HIP: enable sparse attention on CDNA (#31259) and add RDNA4_M family for gfx1170/gfx1171 (#31373)
  • Fix Q8_1 correction sum in MMQ (#31247) and premature eviction of CUDA graphs (#30662)

SYCL

  • Add DPAS flash attention kernel for q4_0/q8_0 KV caches on XMX (#31125)
  • Vectorize reordered-layout dequantization stores for Q4_0, K-quants, IQ3 and MXFP4 (#30976)
  • Add fast ggml_sycl_comm_exchange() for tensor parallelism (#30956)
  • Add work-group argmax for short TOP_K rows (#31110)
  • Fix f32 -> q2_0/q4_0/q5_0 rounding in CPY (#31120) and FLASH_ATTN_EXT failures (#30761)

Metal

  • Faster MXFP4 mat-vec; launch unary/binary/GLU kernels with full threadgroups (#31075)
  • Implement ggml_flash_attn_ext_rows (#29510)
  • Fix cpy kernel for destinations non-contiguous in dim 0 (#31581)

Vulkan

  • Add tensor-parallel allreduce from shared host buffers (#25051)
  • Improve small-n split-K selection on RDNA3/RDNA4 (#30146) and avoid redundant scans when zeroing skipped rows (#31266)
  • Skip the maxStorageBufferRange pre-check for non-compute tensors (#31114)
  • Fix out-of-bounds NVFP4 UE4M3 scale lookup (#31079)

OpenCL

Hexagon

  • Add support for the LIGHTNING_INDEXER (#31289), TOP_K_MASK (#31552), UPSCALE (#31331), CONV_2D (#30995) and DSV4_HC_PRE/POST (#30953) ops
  • Faster TOP_K sampler (#31279), block-based HVX IM2COL (#31050), tiled HVX permute (#31446) and better DDR use in transposed CONCAT (#31277)
  • Fix DMA transfers with strides larger than 24 bits (#31442)

Other backends

  • ZDNN: share buffers with host (#31481) and fix a fattn test failure (#31583)
  • WebGPU: add ARANGE support (#31455)
  • OpenVINO: slice view inputs of SCALE (#31334)

More info

Changelog since v0.28.0

57e2c2c ggml : bump version to 0.29.0 (#1680)
68d509f scripts : add ci-status.sh
689e0cb sync : llama.cpp
f11cb47 ggml : Gate RVV code on the target extension (llama/31607)
5c9c721 sync : llama.cpp
71b8415 ggml : fix bf16 (llama/31609)
b8f6efc opencl: improve q2_0 GEMV for Adreno (llama/31577)
682dfdd sync : llama.cpp
8bdd9c3 ggml: bound views by the bytes their strides reach (llama/31584)
02dcc21 ggml : write host-buffer tensor data directly in gguf writer (llama/31144)
0c4fecd hexagon: add LIGHTNING_INDEXER support (llama/31289)
492ed92 hexagon: add TOP_K_MASK op (llama/31552)
d88c3d4 hexagon: faster TOP_K for the backend sampler (llama/31279)
c8e848e hexagon: add DSV4_HC_PRE and DSV4_HC_POST ops (llama/30953)
6496f89 ggml-zdnn: fix fattn test failure (llama/31583)
781e018 ggml: avoid signed overflow in ggml_roll bounds check (llama/30375)
5d3c669 cuda: potential fix for Q8_1 correction sum (llama/31247)
a044cd3 cuda : gather batched tensor reads into mapped host memory (PR to master) (llama/31391)
40c2633 Add nccl support for multi-node tensor parallelism (llama/28967)
1030236 meta: support GLM-5.3 next sm tensor (llama/30499)
7117df3 metal : fix cpy kernel for dst non-contiguous in dim 0 (llama/31581)
b4134b7 vulkan: skip maxStorageBufferRange pre-check for non-compute tensors (llama/31114)
f9be71f delta_net_base: refactor conv state (llama/30878)
c44f602 vulkan: fix out-of-bounds NVFP4 UE4M3 scale lookup (llama/31079)
e136ad2 cuda : prevent premature eviction of graphs about to be used (llama/30662)
43e15d2 opencl: add initial iq4_xs support (llama/31339)
cb27aa1 webgpu: add ARANGE support (llama/31455)
e96dee8 hexagon: tiled hvx permute (llama/31446)
c33c20d llama : flash_attn_ext_rows - more efficient unified kv for multi-seq (llama/29510)
842f76b ggml-zdnn: share buffers with host (llama/31481)
643b9af ggml : use vm_allocate instead of posix_memalign on all Apple platforms (llama/31437)
2956e59 opencl: add topk_mask (llama/31441)
aa632fc vulkan: add tensor-parallel allreduce function (llama/25051)
122edda vulkan: improve small-n spli...

Read more

v0.28.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 10:32
facdc44

Overview

This release adds a fused sparse-attention masking operation (GGML_OP_TOP_K_MASK) with CPU, CUDA and Metal implementations, plus accessors to read the precision configured on a compute node. MoE and sparse-attention dispatch got cleaner semantics: an index of -1 in MUL_MAT_ID / ADD_ID now means "skip this slot", so backends skip the work and zero the output row instead of relying on out-of-range index patching. The core relaxes SCALE to non-contiguous views and SUM to non-contiguous inputs. Backends gained a lot of throughput: MoE top-k and gate/up+GLU fusions and chunked graph launches on CUDA, graph record/replay and XMX matrix-engine kernels on SYCL, cooperative GEMMs, Q2_K/Q3_K weights and a lightning indexer on OpenCL, subgroup reductions and src1 precision control on Vulkan, and a restructured HTP backend with new repacking and fusion machinery on Hexagon. ZDNN gained flash attention and WebGPU gained Q2_0.

API changes

  • New GGML_OP_TOP_K_MASK op and ggml_top_k_mask() - fused top-k sparse attention mask over picks, blocks and extra cells llama/30640
  • New ggml_prec_get_acc() / ggml_prec_get_src() to query the accumulator and per-source precision of a compute node llama/30656
  • ggml_mul_mat_id and ggml_add_id accept -1 as an index: the slot is skipped and the output row is zeroed llama/26631
  • RPC protocol patch version bumped to 8.0.1 for the new op (GGML_OP_COUNT is now 102)

Core changes

  • ggml_scale now accepts non-contiguous row views instead of requiring contiguous input llama/31146
  • SUM supports non-contiguous inputs on CPU, CUDA, Vulkan and WebGPU llama/28851
  • MUL_MAT_ID / ADD_ID skip the work for -1 indices in all major backends llama/26631
  • Meta backend: per-expert token scaling for MoE down projections, plus split-state support for the new masking op llama/30861 llama/31081
  • Fix potential counter overflow in ggml_time_ms / ggml_time_us on Windows llama/30969
  • ARGMAX added to the ops that may expand during allocation, avoiding undersized buffers llama/30862
  • RPC: handle oversized RDMA transfers and std::length_error on message receive instead of aborting llama/30399 llama/31204

Backend changes

CPU

  • New CONCAT implementation as a single row kernel covering all types llama/31179
  • KleidiAI: Q8_0 SVE dotprod GEMV and SVE i8mm GEMM kernels, with runtime SVE-i8MM feature detection llama/30808
  • Vectorized v_silu and v_expf, NEON fp32->fp16 conversion, fp32 gelu_quick/geglu_quick without the fp16 table llama/30791 llama/30505 llama/30737
  • Reduce AVX2 tiled accumulators together to cut register pressure in the tiled matmul path llama/30296

CUDA / HIP

  • MoE: fused grouped-experts top-k, plus a dedicated fusion path for large expert counts (up to 384) llama/29181 llama/31288
  • Fuse the FFN gate/up matmuls with GLU in MMQ using interleaved gate/up rows; fuse MRoPE with SET_ROWS llama/29948 llama/31025
  • Chunk CUDA graph launches to amortize the launch overhead; clear graphs after a legacy memory pool flush llama/30804 llama/26771
  • Faster MMVQ for low-bit types; MMQ Stream-K capped at available work; DP4A MMQ tile height aligned to the warp size llama/30517 llama/30553 llama/30837
  • SSM_CONV supports kernel size 7; RMS_NORM variants loading float4 and keeping x in registers llama/30873 llama/29720
  • HIP: byte-permute Q1_0 unpacking with a portable fallback; fix bf16 WMMA operand type for gfx11/gfx12 llama/29927 llama/30915 llama/30885
  • Fix shared-memory WAR hazard in vectorized flash attention and a tile-width selection bug in the matmul reduction llama/30573 llama/30836
  • Limit the maximum pinned host buffer size to 4 GB llama/30449

Metal

  • Implement TOP_K_MASK llama/31230
  • Optimized ARGMAX and POOL_1D kernels; removed the amax rescaling from the MoE matmul llama/30862 llama/30924
  • Fix 32-bit overflow in large matrix output offsets llama/30072
  • Fix missing MoE kernel variant for 9 experts per token, and a moe_reduce fusion race when dst aliases its inputs llama/30699 llama/30795
  • Fix memory leaks and cleanup logic in the GPU capture path llama/30890

Vulkan

  • Support the src1 precision attribute on matmul ops, configurable through the standard precision setters llama/30656
  • RMS_NORM rewritten with subgroup reductions llama/29882
  • Small matmul tiles now use one warp tile per subgroup; larger conv3d tile for coopmat2; clamp coopmat1 int8 prefetch llama/30106 llama/29920 llama/30283
  • Allow dim-3 broadcast in MUL_MAT and fix gpu-visible host memory handling llama/31239 llama/30468

SYCL

OpenCL

Read more

v0.27.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 13:14
a05c992

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)
  • Add a scheduler realloc callback (ggml_backend_sched_set_realloc_callback) for compute buffer reallocations (llama/30329)
  • Bump RPC_PROTO_MAJOR_VERSION to 8 for the new tensor-parallel RPC server mode (llama/26610)
  • Document that ggml_mul_mat_id is undefined for ids that repeat an expert for the same token (llama/30501)
  • Document that ggml_gated_delta_net only guarantees the latest state slot when n_tokens > K (llama/29353)
  • Default symbol visibility is now hidden, removing internal symbols accidentally exported through GGML_API (llama/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)
  • Fix ggml_conv_1d result layout for batched input so the output is [N, OC, OL] (llama/28738)
  • Make CLAMP correct on non-contiguous views in the CPU and CUDA backends (llama/29517)
  • Meta backend: treat views of host-buffer tensors as unsplit and skip them in subgraph mapping (llama/30217)
  • Meta backend: recreate all subgraphs when the compute arena is reallocated (llama/30453)
  • RPC: make GGML_RPC_DEBUG a verbosity level, add transport logs and clearer tensor transfer logs (llama/29544, llama/30481)

Backend changes

CPU

  • Add AVX2 dot product kernel for Q2_0 (llama/30447)
  • KleidiAI: add SME2 matmul for Q4_K and route Q6_K to the Q8_0 path (llama/29219)
  • Restore the FP16->FP32 lookup table when F16C is available, and fix AVX2 builds not using F16C (llama/30342, llama/30343, llama/30270)
  • Vectorize the fp32->fp16 conversion and optimize pad_f32 (llama/30157, llama/30526)
  • Add F16 reference implementation and validation for SWIGLU_OAI (llama/29200)
  • Size the set_rows conversion buffer for all threads (llama/30454)

CUDA / HIP

Metal

  • Add a BF16 tensor-API flash attention kernel and new 128/96 head-dim FA kernels combinable across dtypes (llama/30491, llama/30209)
  • Extend the few-row MMA mat-mul to the remaining src0 types and fix tensor-API mul_mm on large tensors (llama/30065, llama/28748)
  • Fix MUL_MAT+ADD fusion when the residual is itself a MUL_MAT, and excess threadgroup memory in quantized FA (llama/30100, llama/29340)
  • Fix mul_mat_id with duplicate expert ids (llama/30373)

Vulkan

  • L2-friendly workgroup scheduling for coopmat2 matmuls, and dispatch splitting beyond workgroup count limits (llama/30215, llama/29533)
  • Support bf16 activations in mul_mat and extend sparse flash attention to coopmat2 (llama/29069, llama/30003)
  • Handle duplicate mul_mat_id ids in the prepass instead of looping, and use 4 rows for NVIDIA MUL_MAT_ID MMVQ (llama/29998, llama/29274)
  • Overhaul host-visible memory so several devices can share it, and fix concurrent first-device initialization (llama/29741, llama/29766)
  • Copy strided f16 KV once on AMD so reads spread across memory channels (llama/27703)
  • Pack FMAs for f16 accumulation without the dot product op, and speed up large-window pool_2d (llama/29877, llama/30119)
  • Fixes: TOP_K with +inf/NaN and k = 1 on negatives, rms_norm workgroup overflow, slow AMD iGPU reads (llama/30107, llama/30145, llama/30049)
  • Intel GPU workarounds: handle free memory reporting above total memory, set shader counts for Arc Pro B65/B70 (llama/29835, llama/30431)

SYCL

Read more

v0.26.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 14:36
d7cb574

Overview

ggml v0.26.0 brings a new alloc_buffer_n/get_alloc_size_n buffer allocation API, sparse flash attention kernels on SYCL, Vulkan and Metal, and major lightning indexer improvements (halved score memory, tiling, MUSA support). The CPU backend gains BF16 ops and a tiled k-quant mul_mat, CUDA gains a model-driven W4A4 (NVFP4/MXFP4) mul_mat path plus MMVQ shared-expert fusion, and the Hexagon backend adds a sampler and more quant types. Model loading is faster with stricter GGUF size validation, Windows ARM64 MSVC builds are enabled, and WebGPU/OpenVINO/OpenCL/SYCL pick up numerous new kernels, ops and fixes.

API changes

  • Add alloc_buffer_n and get_alloc_size_n to the buffer type interface with public APIs ggml_backend_buft_alloc_buffer_n/ggml_backend_buft_get_alloc_size_n for multi-buffer allocation and size planning (llama/23671)
  • Add new public header include/ggml-zdnn.h for the zDNN backend (llama/29541)

Core changes

  • Speed up model loading and fix a hang on crafted GGUFs with very large KV dimensions (llama/29598)
  • Harden tensor/GGUF size validation: fix integer overflows and reject tensor sizes that wrap after padding (llama/29384, llama/26979)
  • Collect all input tensors into graph_inputs up front and require them to be GGML_OP_NONE, fixing spurious graph re-reserves with pipeline parallelism (llama/29634, llama/29647)
  • Meta backend: clear inactive AllReduce shards with FILL instead of SCALE (llama/29793)
  • ggml-quants: avoid invalid rounding in the qkx3 scale search (llama/29817)
  • Enable Windows ARM64 builds with MSVC cl.exe (llama/28362)

Backend changes

CPU

  • Support BF16/FP16/FP32 K tails in tinyBLAS on x86 (llama/29806)
  • BF16 op support: add unary, GLU, binary and scale ops (with CUDA) and accept BF16 in src1 of mul_mat (llama/29675, llama/28937)
  • Tiled mul_mat for k-quants via int8 unpack tiles and 16x16 microkernels (llama/27851)
  • Enable tiled flash attention for non-vector-multiple head dims on x86 (llama/29423)
  • Accumulate f16 dot products in f32 on AVX512-FP16 (llama/29545)
  • Add Q8_0 IME1 matrix kernel for SpacemiT X60 (llama/28479)
  • Fix soft_max_back wrong output when dst aliases src1 (llama/27096)

CUDA / HIP

  • Add model-driven W4A4 (NVFP4/MXFP4) mul_mat path with llama_prec_policy (llama/24364)
  • NVFP4: optimize MMQ accumulation and handle the compute type on the cuBLAS path (llama/29857, llama/29173)
  • Fuse shared experts into MMVQ (llama/29184)
  • Use MMVF for thin f16/bf16 mul_mat at small batch size (llama/29633)
  • FlashAttention: prefer whole-tile scheduling for two-stage kernels, tune fp16 tile configs for head sizes 40-112, fix 2 broken Volta cases (llama/29435, llama/26289, llama/29803)
  • Lightning indexer: halve the score memory (CUDA/Metal/Vulkan) and tile over keys and tokens for 4 heads (llama/29825, llama/29901)
  • Fuse RMS_NORM + SCALE into one kernel (llama/29393)
  • Bitonic argsort handles rows wider than one block (llama/28957)
  • Add F16 support to FWHT and a F16 kernel for CONV_2D_DW (llama/29096, llama/29064)
  • SSM_SCAN: support state size 96 (llama/28717)
  • Fixes: batch-independent alloc_deps check, unexpected graph reallocation in k-pool models, MMQ memory fault when n_expert >> n_ubatch, cpy transposed path corrupting non-contiguous dst (llama/29986, llama/29958, llama/29941, llama/27663)
  • Make the CCCL version configurable and pin it for CI (llama/29792)
  • HIP: enable the fattn-mma kernel on CDNA for dkq > 256 at large batch sizes, fixing template skip and DGX Spark misdetection (llama/28907, llama/29559, llama/29572)
  • HIP: optimize packed byte subtraction (llama/29478)
  • MUSA: fix PH1 (MTT S5000) operator and build issues, use the vector lightning indexer kernel (llama/29193, llama/29990)

Metal

Vulkan

  • int8 coopmat1 matmul implementation for AMD RDNA3 and RDNA4 (llama/27952)
  • Sparse flash attention for quantized K/V (llama/29639)
  • Perf: reuse descriptor sets when bindings are constant, fuse the SCALE→SIGMOID→SCALE→HC_POST chain (llama/29280, llama/29520)
  • Flash attention: fix shmem write out of bounds and stale prealloc_y reuse across FA and soft_max (llama/29988, llama/29591)
  • Fix wrong results when a mul_mat reads a slice of a larger cache (llama/28956)
  • Tuning: GDN kernel on Intel, RDNA4 mat_vec, disable large matmul tile on Samsung GPUs with 32KB shared memory, argsort kernel selection on Adreno (llama/29476, llama/29934, llama/28531, llama/29469)
  • Fix build with legacy GLSLC without cooperativeMatrix API (llama/29409)

WebGPU

  • Add MMVQ support for Q1_0/Q5_0/Q5_1/Q3_K/Q5_K/Q6_K/MXFP4 (llama/29483)
  • Add bfloat16 support for MUL_MAT/MUL_MAT_ID/GET_ROWS and f16 support for fill/set_rows (llama/29358, llama/29897)
  • Fix SSM_SCAN binding aliasing and unaligned writes in buffer_set_tensor (llama/29750, llama/29471)

SYCL

  • Add sparse flash attention (llama/28796)
  • Q8_0 DMMV ESIMD and MMVQ wide load (llama/29186)
  • FWHT kernels for block widths above 512, large register file for D=512 FA vec kernels (llama/29243, llama/29062)
  • Avoid the slow oneDNN reference matmul and fattn (llama/28985)
  • Reduce tensor allreduce sync with pinned host buffers (llama/29604)

OpenCL

Read more

v0.25.3

Choose a tag to compare

@github-actions github-actions released this 24 Sep 19:20
353b63b

Overview

A small maintenance release: the core graph size calculation (ggml_graph_nbytes) no longer triggers a UBSan "non-zero offset to null pointer" diagnostic, and the CI setup moves CUDA builds to the hf-jobs runner and adds a new AMD Vulkan build job.

Core changes

  • Fix a UBSan error in ggml_graph_nbytes by computing the layout relative to a non-null base pointer
    (ggml#1644)

More info

Changelog since v0.25.2

353b63b ggml : bump version to 0.25.3 (#1645)
d991c9b pi : update gg/SYSTEM.md
74b191a ggml : fix ubsan error in ggml_graph_nbytes (#1644)
58be011 ci : move cuda to hf-jobs and add amd-vulkan (#1641)

v0.25.2

Choose a tag to compare

@github-actions github-actions released this 24 Sep 13:05
a0d15e2

Overview

A small point release focused on backend improvements: a new CUDA convolution kernel with an implicit-GEMM fast path, Vulkan fixes and tuning (misalignment handling in convolution shaders and cooperative-matrix support for Adreno GPUs), an optimized DP4A binary kernel for OpenCL Q6_K GEMM, and a precision guard in the Hexagon backend.

Backend changes

CUDA

  • added conv3d kernel with an implicit-GEMM fast path (F16 weights) and a direct fallback for F32 shapes (ggml-org/llama.cpp#29137)

Vulkan

OpenCL

Hexagon

More info

Changelog since v0.25.1

a0d15e2 ggml : bump version to 0.25.2 (#1642)
c5bf7e2 sync : llama.cpp
10e36b6 vulkan: handle misalignment in conv_2d and conv_3d (llama/29365)
0d1fb47 vulkan: tune KHR cooperative matrix support for Adreno GPUs (llama/29328)
749a9eb sync : llama.cpp
aebfeef cuda : add conv3d with implicit GEMM (llama/29137)
9a7b3c1 hexagon: reject MUL_MAT_ID when src1 precision is F32 (llama/29348)
600ec61 opencl: add A8 Q6_K non-MoE dp4a binary kernel (llama/29057)
64302f4 scripts : make-release-desc - link previous release in changelog title (#1638)