llama.cpp Metal MoE 优化

Reddit r/LocalLLaMA 工具

摘要

一位开发者分享了针对 llama.cpp 的 Metal 优化方案,可提升 Apple Silicon 上 IQ3_XXS 模型的解码速度,并在 GitHub 提交了拉取请求,呼吁社区参与测试。

我为 llama.cpp 做了一项 Metal 优化,能显著提升 Apple Silicon 上 IQ3_XXS 模型的解码速度:https://github.com/ggml-org/llama.cpp/pull/28086 在我的测试负载下,解码速度从约 65.6 tok/s 提升至 73.9 tok/s(tiel coder 35B A3B)。非常希望大家尝试并分享优化前后的性能数据。我即将发布后续更新,预期也会改善预填充阶段的性能。
查看原文

相似文章

Llama.cpp PR 带来 8% 速度提升

Reddit r/LocalLLaMA

一个 llama.cpp PR 将采样从 CPU 移至 GPU,在 RTX 5090 上为 Qwen3.6-35B 推理带来 8% 的 token 速度提升,在 Tesla P40 上约为 4%。