Skip to content
AI NEWS JOURNAL
llama.cpp releasesAI NEWS / JOURNAL

llama.cpp 发布 b11866 版本:移除 Metal 后端冗余 AMAX 缩放逻辑,精简 MoE 计算路径

llama.cpp v.b11866 移除了 Metal 后端中已过时的 src1 power-of-two AMAX 缩放机制,转而依赖计算图内更精细的 per expert-token amax 缩放,确保 MoE 下投影激活值在 f16 表示范围内;同步删除相关两阶段归约核、F32 精度调度及越界测试用例。

llama.cpp’s publicly released version b11866 (tagged at: https://github.com/ggml-org/llama.cpp/releases/tag/b11866)中,对) has undergone a key simplification in its Metal backend: the src1 power-of-two AMAX scaling logic within kernel_mul_mm_id has been removed (PR #30924). This operation has been replaced by an earlier, graph-level per expert-token amax scaling step (see PR #30861), which ensures that, in mixture-of-experts (MoE) models, the activation values of the projection layers remain within the f16 numerical safety range before entering the matrix multiplication.

This adjustment simultaneously deprecates the two-stage reduction kernels, the corresponding scratch buffer memory allocations, and the GGML_PREC_F32 scheduling branch added in PR #26223—features that were previously introduced to support the legacy scaling mechanism. Additionally, test cases in the relevant driver where the MUL_MAT_ID input exceeds the f16 range have been removed as well. Development verification was conducted on a MacBook equipped with an M5 Max chip and 128 GB of memory, using the Qwen3.8-Flash-Next-GGUF model (via pi:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF).

b11866 provides cross-platform binary distributions, supporting macOS (Apple Silicon / Intel), iOS, Linux (including CUDA 12.8/13.4, ROCm 10.0, Vulkan, OpenVINO, SYCL, and Snapdragon), Android (with arm64 and Snapdragon backends), Windows (x64/arm64, supporting CUDA, Vulkan, OpenCL, OpenVINO, SYCL, and ROCm), and openEuler (with some backends marked DISABLED). The UI components have also been updated accordingly (llama-b11866-ui.tar.gz). All builds are generated automatically via CI from the source code; no third-party signatures or independent security audit statements are provided.

Sources

Read original ↗

Related topics

← Continue to all updates