Skip to content

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

WebGPU

OpenCL

SYCL

Hexagon

OpenVINO

zDNN

More info

Changelog since v1.0.0

2ca3266 ggml : bump version to 1.1.0 (#1699)
f599b35 sync : llama.cpp
bc7b032 ggml-cpu : accept the flash_attn_ext indexed bias (llama/33016)
c159807 metal : commit the graph in chunks with one command buffer thread (llama/32947)
ffa7a9d ggml: allow input async copies (llama/30685)
442dd76 ggml: allow reserving scratch memory in graph_optimize (llama/31898)
601ce74 sycl: F8 e4m3 initial support SET_ROWS, CPY, ADD, MUL_MAT, MUL_MAT_ID (llama/31871)
36bf278 SYCL : ROLL op handles permuted source (llama/31799)
8573678 opencl: add clc coopmat moe kernel for q4_0/q4_1/q4_k/q5_0/q5_1/q5_k/q6_k/mxfp4 (llama/32971)
26af367 cuda : fix int overflow of the MMVF matrix offsets (llama/32965)
986cf25 ggml : fix SpacemiT flash attention null mask, ALiBi and softcap (llama/32182)
741b878 ggml-cpu: repack kernels for targets without dotprod (ARMv8.0 64-bit) for Q4_0/Q8_0 (llama/32142)
6890ec7 ggml-cpu: add SVE-optimized q5_0 and q5_1 dot-product kernels (llama/30867)
cd9df3c context : prevent excessive CPU polling without OpenMP (llama/32378)
55a60ca metal : reserve the top-k scratch only for short rows (llama/32942)
e2ad4cd vulkan: add chunked GDN replay support (llama/32721)
23c0a19 sync : llama.cpp
779e961 cuda : fuse RMS_NORM + MUL + MROPE/IMROPE and tune block size (llama/32500)
cb47107 sync : llama.cpp
747f563 CUDA: ignore strides of size-1 dims in bin_bcast (llama/32854)
0e06ef9 CUDA: reduce all cooperative softmax partials when nsm > 256 (llama/32897)
6374b01 CUDA: NVFP4 dequant, pack 8 blocks per CTA (llama/32875)
083fe6d webgpu : Fix indexing bug in softmax kernel (llama/32691)
f5eb0b6 webgpu : add POOL_1D support (llama/32254)
b90019a hip: use MMQ over MMVQ for Q4_K,N8 and NVFP4,N7-8 on VEGA20 (llama/32805)
2d779dc HIP: CDNA1 MMQ config without stream-k (llama/32837)
d8c75ca rpc : reuse one context for request tensors on the server (llama/32896)
13bd9a6 ggml : use a range-reduced log1p for softplus (llama/32655)
a11c697 vulkan: support state size 96 in ssm_scan (llama/32162)
3ff6316 opencl: fix GDN QK offsets (llama/32747)
b8218ad opencl: add c8 q6_k coopk GEMM for up to n=8 spec verify (llama/32909)
2073904 fix editor config in master (llama/32914)
78848c5 GDN: use replay instead of rollback (llama/31669)
689239b opencl: fetch the Adreno binary kernel library at configure time for Windows on Snapdragon (llama/31759)
bd20495 metal : add NVFP4 support (llama/32825)
943ba2f metal : batch concat rows and copy them in vector chunks (llama/32824)
039e64c ggml: compact bias on the existing FLASH_ATTN_EXT (llama/32740)
9dd6d94 metal : support BF16/F32 src1 for MUL_MAT and MUL_MAT_ID (llama/32677)
3802f32 metal: resolve gpu timeout on iPhone for Bonsai (llama/31815)
0186be4 ggml-openvino: CI fixes, new model support, fixes and improvements. (llama/32861)
6437fb1 rpc : typed request helpers and a single validation step on the server (llama/32651)
05d0469 ggml-cuda : handle zero blocks in few-row MMQ quantization (llama/32566)
9cc77b4 cmake: treat kleidiai files as vendored (llama/32605)
d20b244 ggml : update cmake MATH_LIBRARY check (llama/32864)
f51ef44 requirements : skip keras for python 3.15
479fcce ci : fail fast when pip install fails
e821965 requirements : fix torch for python 3.15
82bd27e examples : adapt to ggml (#0)
0979d2a cuda : fix sync conflicts (llama/0)
d1f1c4e sync : llama.cpp
25a1645 webgpu : add ROLL support (llama/31887)
64636d5 opencl: add xielu (llama/32791)
0b81c31 opencl: add q4_k coop-k c8 GEMM for spec verify (llama/32716)
61e358a tests : compare only the guaranteed GDN snapshot slots (llama/32820)
6898b91 ggml-backend : generic fallback in ggml_backend_tensor_memset (llama/32574)
8cdfbfb ggml/gguf : avoid creating invalid enum values from untrusted file data (llama/32641)
ae6c917 ggml : add SIGMOID backward pass (llama/32126)
786487d ggml : fix nonzero clear on WebGPU and non-UMA devices (llama/32727)
f22b65e HIP: fix double halving of NVFP4 scales on CDNA3 (llama/32790)
6b91103 webgpu : update GDN supports_op check (llama/32782)
dcb1889 opencl: add coopmat GEMM for Adreno 850 (Q4_0, Q5_0, Q8_0, Q4_K, Q5_K, Q6_K) (llama/32686)
fdbe303 vulkan : support non-contiguous src in SCALE (llama/32735)
feaa110 vulkan : fix memset for unaligned ranges for non-UMA devices (llama/32725)
e2bb8e1 model: apply .scale tensors automatically + fix correctness (llama/32669)
a288338 sycl: bound CONV_TRANSPOSE_1D input iteration (llama/31109)
44fe973 ggml : improvements to the memory access pattern in ggml_compute_forward_mul_mat_one_chunk (llama/30846)
21c8694 sycl: add IQ4_NL and IQ4_XS weight reorder (llama/31998)
5d9b042 sycl: column-blocked gated_delta_net kernel (llama/32456)
e0b4c05 sycl: add fused ADD, RMS_NORM, MUL and vectorize rms norm (llama/31753)
6611154 CUDA: abort on UB in fastdiv (llama/32698)
bfa93c3 vulkan: unroll FA coopmat1 array due to a driver bug on AMD Windows (llama/32466)
64c15b4 vulkan: improve RDNA4 MMVQ performance for Q3_K, Q5_K and IQ4_XS (llama/31804)
dccf43f ggml-zdnn: fix ztensor load race condition (llama/32279)
6d313ef ggml-cpu: fix nc aligment in tinyBLAS_PPC_Q0 (llama/32659)
945c27a sycl: Improve Grouped XMX GEMM by avoiding SLM staging (llama/31428)
c491976 hip: add RDNA1 MMVQ parameter table (1 warp per block for ncols=1) (llama/32389)
a142ec9 metal : allow the norm chain in either operand of the fused MUL/ADD (llama/32300)
fc0995b ggml : major version bump reminders + deprecate ggml_ftype (llama/32647)
898fb16 vulkan: add support for COL2IM_1D misalign bytes and split workgroups (llama/32673)
54338b6 cuda : update GDN supports_op check (llama/32660)
0870b08 llamafile(s390x): add QK data type support (llama/32600)
2cbb620 kleidiai : allow OHOS (HarmonyOS) AArch64 target (llama/32265)
f5f3225 webgpu : fix 2D indexing for copy kernel (llama/32576)
c4a3a9b CUDA: optimize Orin single-column MMVQ (llama/31268)
4f6a070 CUDA: keep the MUL_MAT_ID precision in the per-expert fallback (llama/31345)
8ab3047 vulkan: optimize RMS_NORM_MUL_ROPE loop control (llama/31149)
235d223 vulkan: chunked GATED_DELTA_NET implementation (llama/30207)
a538bbd webgpu : add COL2IM_1D support (llama/31708)
f0d9b95 opencl: fold GQA head for f16 FA for better efficiency (llama/32631)
6641fde vulkan: disable subgroup arithmetic on Qualcomm's driver (llama/30826)
334b65b CUDA: implement support for duplicate expert IDs (llama/32505)
36164c9 opencl: support dp4a for KQ mm in decomposed FA (llama/32577)
a322d50 ggml : add BF16 support to ROPE and SET_ROWS (CPU, CUDA) (llama/32387)
b4593ad ggml-openvino: fix OpenVINO CI, minor fixes and optimizations (llama/32590)
2d7f8b4 sync : llama.cpp
7f822a2 cuda: Scatter kernel for set_n (llama/32489)
b73615a sync : llama.cpp
1868f8a ggml : add backend scheduler tests (llama/27258)
1e64f7c metal : fix the second argument of NSMakeRange (llama/32602)
23dc2e4 webgpu: add POOL_2D support (llama/32250)
5c94b11 metal : CONV_2D tensor API for M5, split-K for all chips (llama/32542)
421bdd0 ggml : IQ2 creation speedup through caching (llama/31910)
48a79e2 vulkan : enable MMQ with mixed signedness integer dots (llama/31045)
9424dfd vulkan: Implement stream-k MUL_MAT (llama/28528)
0181cc7 vulkan: use floating-point zero for storage-only FP16 in DIAG/TRI (llama/32379)
c860d53 CUDA: use 64-bit dst offsets in mul_mat_q (llama/32374)
f870516 opencl: allow adjusting KV padding in decomposed FA (llama/32522)
90fb5c5 ggml : WASM Relaxed SIMD Enhancement (llama/19590)
67ee05c ggml, ci : use llvm 22.1.8 (llama/32548)
c7a7fe0 Add SKU-aware FP16/BF16 accumulation precision gating for NVIDIA GPUs (llama/30672)
9fddd71 webgpu: (fix CI) allow the FA mask to be broadcast over the Q batch (llama/32535)
f0315f8 ggml-cpu : use all threads for large GET_ROWS (llama/32514)
a0ad951 model:add Zaya1 8B (Zyphra) (llama/32071)
b31ca1d cuda : fuse NORM + MUL (+ ADD) (llama/32454)
ef38e94 vulkan: add bfloat16 support to various ops (llama/32202)
712adec cuda : increase Pascal DP4A MMQ I tile for J=64 (llama/31352)
90dda8f ggml-openvino: expand model support, optimize NPU,GPU and memory usage (llama/32172)
bbcad39 CUDA: use MMQ for MoE on V100 (llama/32504)
c18fe55 cuda: decode the conv2d patch indices with fastdiv (llama/32492)
4fb478f vulkan: run rms_norm with a runtime loop count on Qualcomm (llama/30824)
f8a5744 ggml-cuda: hip: Tune stream_k algo and mmq configs to use stream_k on AMD GCN (llama/30022)
e2e6d46 cuda: use the implicit GEMM conv2d path for F32 kernels (llama/32482)
ce70d92 opencl: add A7 Q5_K non-MoE binary kernel (llama/31002)
a129888 ggml-cuda: disable quantized matvec fusion on all Pascal GPUs (llama/32239)
3e40d69 Title: CUDA: few-row MMQ for MUL_MAT_ID (llama/32065)
d6f7c1e CUDA: use block reductions for whole-row pool_1d (llama/31855)
90db859 ggml : decode F8_E4M3 to fp32 without ldexpf (llama/32477)
c976976 Rotate K/V read order for better L2 cache hit rates (llama/32407)
f15c55d cuda : raise shared mem limit only for the launched kernel (llama/32392)
2544946 vulkan: disable flip Flash Attention shader on AMD Windows due to a driver bug (llama/32415)
853fe0c sycl : Fix FA mkl issue: a mask broadcast over heads or batches (llama/31536)
c6f5196 metal : add implicit GEMM kernel for CONV_2D (llama/28069)
58f057f webgpu : Implement timestep embedding (llama/31695)
6be67e3 webgpu : use f32 while dequantizing to avoid FTZ (llama/32140)
a9233d5 opencl: support f16 and non-contig f32 silu (llama/32319)
ac986c4 sycl: use fast division in bin-bcast kernels (llama/32213)
19e4238 opencl: add A7 Q8_0 non-MoE binary kernel (llama/31003)
a08b1d3 opencl: add A7 Q4_K non-MoE binary kernel (llama/30948)
5f874ac opencl: fix three defects of the bin flash-attention prefill path (llama/32110)
bfee3be MMVQ: Tune ne11 Gate for RDNA3_5 (llama/32308)
c214d2a vulkan: Support split_k for conv3d. (llama/29929)
c5e33ff HIP/CUDA: enable GDN mma kernel on CDNA (llama/31327)
fd137bd vulkan: fix Nvidia fp32 FA shmem overflow, disable shmem staging if it takes too much memory (llama/32244)
50e7683 hip: add gfx1013 to rdna1 (llama/32236)
62e1d96 webgpu: support per-head flash attention masks (llama/32394)
65c43a1 vulkan : fix 32-bit compilation (llama/32275)
1f2af5c vulkan: make the radix top-k tie selection deterministic (llama/31931)
e2f209f cuda : fix MUL_MAT_ID abort with odd src0 columns on AMD (llama/32385)
3f79bcc ggml-cuda: fix MoE regression on HIP with #29948 (llama/32344)
9b1140a ggml-cpu: add x86 VNNI Q2_0 dot product (llama/26348)
e311936 CUDA/HIP: Refactor the use of _sync warp primitives (llama/31617)
8787813 tests: Fail test-backend-ops and exit with error status 1 when missing and/or unsupported types and/or unsupported backends are provided in the command line (llama/30279)
ce58b15 opencl: add A7 Q6_K non-MoE binary kernel (llama/30949)
3662b49 feat: add Inkling 2 support (text + vision) (llama/32217)
8db9a59 hexagon: add TIMESTEP_EMBEDDING HVX kernel (llama/32228)
524d086 llamafile: introduce more Q0 quant support for s390x (llama/32203)
971b8c3 vulkan: Explicitly include SPIRV-Headers (llama/31416)
b7719c2 vulkan: optimize prompt processing Flash Attention for RDNA3 and RDNA4 (llama/31323)
e89c328 cuda : keep columns in registers for cooperative softmax (llama/28982)
ed12deb vulkan: optimize matrix multiplication for narrow N (llama/31990)
3c2cf99 vulkan: use GPU copies on UMA with uncached memory on Intel (llama/32024)
0577282 sycl : optimize mtmd image processing (llama/32109)
f21b228 opencl: fixes for q4_k mv oob access, f16 swiglu_oai, cpy with strided dst, batched group_norm and bf16 sigmoid (llama/32251)
ecd5e4e hexagon: fix fa no-mask tail (llama/32243)
832b0b1 ggml-backend : start a new split at an incompatible weight in a split without inputs (llama/31775)
d5cb3fb Hexagon: add support for IQ2_XXS and NVFP4 (llama/31954)
faa5a67 metal : fix mul_mv destination offset overflow (llama/32221)
5f0092f hexagon: add support for SSM_SCAN op (llama/31921)
5bb7915 ggml-cuda: hip: tune GCN MMQ configs (llama/30021)
e7e2b27 hexagon: improve buffer allocations and mappings (mmap stacking) (llama/32144)
9d1aa03 CUDA: add SM103 SASS to non-native builds (llama/30099)
612b715 sync : llama.cpp
2ba2fe4 ggml : add BF16 support to RMS_NORM (CPU, CUDA) (llama/32135)
9d32646 sync : llama.cpp
f581e95 vulkan: add TOP_K_MASK (llama/31544)
14396be ggml-vulkan: add optional device keepalive (llama/29267)
5b34638 CUDA: split the PAD_REFLECT_1D grid to stay within the HIP grid limit (llama/32179)
d9fe7bf examples : remove explict version from test-cmake (#1692)