ESC
AI 5 分钟阅读

ggml v1.0.0 发布

ggml v1.0.0 是一次重要更新,移除了已弃用的公共 API 和 legacy DIAG_MASK 运算,新增可配置的 YaRN 截断和 FP8 支持。性能方面,在 CUDA/Metal 上实现少量行量化矩阵乘法与 MoE 融合,Vulkan 新增预填充 FlashAttention 路径,SYCL 引入设备端 MoE 调度器,OpenCL 为 Adreno 实现分解式 FlashAtten

来源:Hacker News

Sorry, something went wrong.

Uh oh!

加载时出错。请重新加载此页面。

v1.0.0

概述

ggml 1.0.0 移除了已弃用的公共 API 和 legacy DIAG_MASK 运算,新增可配置的 YaRN 截断和 FP8 支持,并在多个后端实现广泛性能优化:CUDA/Metal 上的少量行量化矩阵乘法与 MoE 融合、Vulkan 的预填充 FlashAttention 路径、SYCL 的设备端 MoE 调度器、OpenCL 中 Adreno 的分解式 FlashAttention、全新的 WebGPU 内核、扩展的 Hexagon 算子覆盖,以及避免上传未使用输入的调度器改进。

提交记录

  • 417a024 ggml:将版本升级至 1.0.0(#1690)
  • 771b3d9 requirements:为 Python 3.14 修复 numpy(#1691)
  • f154959 sync:llama.cpp
  • ec04faf fix(hexagon):使主机构建在 Windows ARM64 上与 clang-cl 配合使用(llama/32011)
  • b45738e examples:适配 ggml_diag_mask_inf 的移除(llama/29801)
  • 1514439 sync:llama.cpp
  • 5f29555 ggml:精简(llama/29801)
  • 076861c hexagon:添加 Q5_0 和 Q5_1 支持(llama/32094)
  • 63ec52d CUDA:为 BS 2-24 添加少量行 MMQ(llama/31533)
  • c6fe796 ggml:将 GATED_DELTA_NET 路由至 SpacemiT RVV 内核(llama/31897)
  • 4ae6e72 vulkan:用于预填充的 Intel FA 内核(llama/29357)
  • b22071c ggml-cpu:在 ARM NEON 上使用 4x4 simd_gemm 瓦片(llama/32128)
  • ba8b013 CUDA:通过融合 w_s 比例优化预填充 epilogue MMQ(llama/26048)
  • 05f605a ggml-backend:仅预取由较早分片计算的输入(llama/32100)
  • b8a5b87 ggml:通过 HP 内核调度 SpacemiT Q4_1 32x256(llama/31929)
  • 7a8cef5 sycl:使 oneDNN FA 缓存线程安全并记忆化运行时失败(llama/31138)
  • 6dfea1a sycl:修复超过 4GB 的 AOT(llama/31873)
  • 012ff44 sycl:在 set_main_device 中使用缓存的设备 ID(llama/32013)
  • 2f9d47b CUDA:添加调试缓冲池(llama/31919)
  • 522d257 opencl:添加二进制内核 kernel_gemm_noshuffle_q4_0_f32_32b_trans_ila_a7_bin(llama/30947)
  • 0f9dcb7 CUDA:在 MMQ stream-k 修复中跳过空的 MoE 瓦片(llama/32067)
  • 6bed9a8 opencl:为 Adreno 添加分解式 FA(llama/32046)
  • a357e7b metal:防止 SOLVE_TRI 内核中的越界读取(llama/32103)
  • c36ccd8 vulkan:支持批量张量复制 API(llama/31418)
  • 1bffc59 backend:当内核的集群维度变化时重新实例化 CUDA 图(llama/31284)
  • 8153155 ROCm/HIP:修复 BLAS 工作区,改为每次调用分配而非 rocBLAS(llama/31838)
  • ad7d200 cpu:在 F32 中累积 flash attention V(llama/29810)
  • 7f4a2db webgpu:添加 PAD_REFLECT_1D 支持(llama/31877)
  • 0f51454 vulkan:允许使用 CM2 进行去量化 KV 优化(llama/31526)
  • eb4de49 vulkan:分配设备故障供应商二进制缓冲区(llama/32008)
  • 6b7f47a cuda:在小批量下对少量行 BF16 矩阵使用 MMVF(llama/31959)
  • 77d01f1 cuda:为 DKQ=256、DV=256、ncols=64 添加 sm70 FlashAttention 配置(llama/27997)
  • bd37ba0 cuda:fattn mma 头尺寸 40 72(llama/30285)
  • 161ca15 CUDA:添加 OCP FP8 支持(llama/28413)
  • 06faf80 sycl:修复 sycl CLAMP 以支持跨步视图(llama/31784)
  • a986181 cuda:移除未使用的 ids 和 type_src0 参数(llama/32018)
  • 55104b2 llama:添加 FP8 KV 缓存支持(llama/28392)
  • 0753641 ggml:添加 MUL_MAT src1 精度测试与门控(llama/31896)
  • 1cd16bd cuda:移除未使用的 quantize_cuda_t 类型定义(llama/31884)
  • 4a18cdd cuda:将 VMM 池预留大小减半,并在 cuMemAddressReserve 失败时重试(llama/30542)
  • 1c9ac9d CUDA:在图重用时跳过图兼容性检查(llama/32004)
  • 999c725 ggml:通过设置 _XOPEN_SOURCE=700 修复 FreeBSD Vulkan 构建(llama/31701)
  • 47bc1d8 CUDA:将图和并发流状态移出 common.cuh(llama/32001)
  • df70e12 cann:在检查缓冲区类型是否受支持时尽早失败(llama/31270)
  • e447eb5 sycl:添加设备端 MoE 调度器(llama/30156)
  • 9a1c582 vulkan:为 Qwen 模型添加分块转置拼接着色器(llama/30591)
  • 8b3c8cf ggml-rpc:在无法访问端点或握手失败时优雅失败(llama/30415)
  • f860f1d vulkan:将 GROUP_NORM 工作组划分为 2D 以避免 maxComputeWorkGroupCount 限制(llama/31930)
  • eb5571a vulkan:修复 MoltenVK 上的越界读写(llama/31890)
  • 5a9a264 vulkan:在 Qualcomm 上将标量 flash attention 限制为 8 行(llama/30829)
  • 5610f41 sycl:取消对 Alchemist 在 head_dim=64 时 oneDNN 融合 SDPA 的门控(llama/31574)
  • 487cadf hexagon:修复关闭时 64 位 FastRPC 句柄截断(llama/30952)
  • be37c9c ggml-zdnn:接受非 zdnn 张量,每次操作后使计算张量失效(llama/31824)
  • 294d5fc ggml:实现 TRI 的反向传播(llama/30712)
  • e18c2c6 ggml-backend:不上传未被读取的输入(llama/31419)
  • e84d36b

1b91663ccf64dc1e7820e5f2e5839) metal : prevent out-of-bounds writes to the Metal FA output buffer (llama/31662)

0dd184f metal : make ggml_tri select instead of scaling by the comparison (llama/30711)

b6d482c opencl : include climits (llama/31935)

62de780 RPC: Improve loading times (llama/29413)

a7276d0 ggml : support YaRN truncation config on openvino, sycl, vulkan, webgpu, rpc (llama/30802)

da89459 sycl: cache device-id (llama/31126)

fb57085 tests: bound the test_rope tolerance by the f32 angle resolution (llama/31874)

e43d847 opencl: add f32 MUL_MAT_ID (llama/31783)

d1c1e4b ggml-zdnn: fix release binary not detecting backend lib (llama/31905)

7e7b6e9 mtmd: refactoring: remove clip.h, consolidate code into mtmd (llama/31865)

5a0e536 cpu: enable SpacemiT IME2 MXFP4 dense repack (llama/31776)

7f4b25f llamafile: impl bf16 and q8_0 vxe (llama/31866)

f22fc6a ggml : update CUDA/Metal radix Top-K to make tied selections deterministic (llama/31084)

47b8b4f ggml-cuda : add d_state=64 fast path to SSM_SCAN kernel (llama/31818)

b524960 webgpu : add COUNT_EQUAL support (llama/31578)

75a4f5a ggml : switch to F32 src1 in the CPU backend (llama/31854)

6cddab2 llama, mtmd: follow the reference precision of ggml_prec_set_acc calls (llama/31851)

7353275 opencl: improve q8_0 and MoE small-n verification for spec (llama/31831)

8f1404e hexagon: support for automatic loading of libhtp without legacy env vars (llama/31781)

91c102a sycl: exact rounding in CPY to Q4_1, Q5_1 and Q8_0 (llama/31465)

8cf32bc sycl: refuse device buffers that would exceed VRAM (llama/31285)

d969b07 hexagon: n_hvx and n_threads cleanup (llama/31857)

5746ebd llama_moe_cache: run missed experts on CPU, add tuning script (llama/30966)

a49f174 sycl: add f16 support for SWIGLU_OAI (llama/30857)

c6a0780 metal : fix GROUP_NORM for ne03 > 1 and non-contiguous inputs (llama/31852)

1e5c3e0 webgpu : Implement group norm kernel (llama/31490)

37ecdca vulkan: Add ‘readonly’ to decodeBuf declarations. (llama/31833)

c08538b CUDA: fix shared memory bank conflicts in the lightning indexer (llama/31803)

07b8362 opencl: add arange (llama/31829)

f55a504 meta : raise the compute view limit for buffers with few tensors (llama/31447)

2870133 hexagon: fuse post-norm residual add into RMS_NORM_MUL (llama/31822)

a135ec6 hexagon: conv_2d optimizations and support for conv_3d (llama/31814)

e3d3633 tests : qualify isnan and signbit with std:: (llama/31791)

a7d3330 tests : override hardware_concurrency in CI (llama/31797)

ab7ca9c opencl: support repeat for f16, i32, i16, bf16 (llama/31782)

9290392 webgpu: add batched tensor API (get_tensor_n and set_tensor_n) (llama/31473)

f594fed vulkan: detect ReBAR support, avoid BAR allocations if unavailable (llama/31658)

38e4be2 CUDA: fix Maxwell build (llama/31787)

8bd6b61 opencl: add q6_k multi column tiled GEMV for speculative verification and refactoring (llama/31758)

d3ce63d hexagon: Implement set_tensor_n and improve repacking/tiling robustness (llama/31744)

9b1880f ggml-cuda: sanitize post-bias NaNs in MoE selection (llama/31005)

7e607b8 vulkan: Implement test-fusion interface (llama/30769)

2188d13 CUDA: use highest compiled arch in get_mmvq_mmid_max_batch (llama/31679)

114ce5e vulkan: RDNA3/4 Large-Tile Split-K Optimization (llama/30280)

e074347 metal : fuse DeepSeek-V4/V4.1 and GLM MoE routing (llama/31615)

f0f5b42 CUDA/HIP: matrix-core (MFMA) lightning indexer for CDNA2 (gfx90a) (llama/29050)

fa8c617 CUDA: linearize MoE data layout for MMQ/MMF (llama/31047)

1690d2e vulkan: FWHT kernels for block widths above 512 (llama/29772)

40278c4 vulkan : check combined K+V f16 scratch size in FA dequant path (llama/30487)

2dccfdb sync : llama.cpp

25b845e ggml : support truncate=false for YaRN (llama/30206)

accf2a1 sync : llama.cpp

b2ce926 metal : use mul_mm for 32 <= K < 64 (llama/30982)

1a5f477 webgpu : add MEAN support (llama/31591)

2ab6d6c vulkan: Re-enable large coopmat matmul configuration on AMD proprietary driver 26.10.1+ (llama/31587)

19df6cf tests: fix CI flakes of TOPK_MOE caused by near ties (llama/31426)

a0df99d metal: keep fusable node groups inside one command buffer (llama/31688)

3a996db opencl: enable f32 and q5_k multi column GEMV by default for Adreno X2 (llama/31694)

d75184e opencl: support non-contig sigmoid (llama/31687)

c634501 opencl: add DSV4_HC_PRE and DSV4_HC_POST (llama/31623)

0816137 Title: CUDA: fuse NVFP4 gate/up matmuls and GLU in MMQ (llama/31296)

4ac0dae opencl: improve decode perf with FA (llama/31633)

4f681f2 webgpu: return maxBufferSize from get_max_size and avoid whole-buffer bindings in memset/clear (llama/31348)

cd6d2b7 docs : sync ggml_type enum in gguf.md (#1685)