Magnitude 按硬件自动调优 kernel,本地推理比 Ollama 快超 2 倍

thisdudelikesAI · x · 2026-11-27

本地 LLM 推理工具 llama.cpp、Ollama、LM Studio 对所有硬件只提供同一套 kernel,同样的代码在 M4 MacBook 和 RTX 5090 上表现迥异却未被针对性优化。开源推理引擎 Magnitude 采取不同思路:下载模型时会花约一分钟在本机 benchmark 不同 kernel 配置——GPU 线程分组、工作块大小、预取深度——然后保留输出不变前提下最快的组合,为你的具体硬件生成定制 kernel。团队报告在 11 个热门本地模型上平均对比 Ollama:Mac 上 prefill 快 1.32 倍、decode 快 2.19 倍;NVIDIA 上 prefill 快 1.34 倍、decode 快 2.17 倍。项目还支持把模型分布到 GPU、内存和 SSD 上运行,兼容 Apple Silicon/NVIDIA/AMD/Intel/CPU,可一键接入 Pi、OpenCode、Hermes、Codex 等 agent。

所属事件:Magnitude 按硬件自动调优,本地推理提速超 2 倍(2 条相关)→

原文链接 →

「Infra」频道最新

更多「Infra」频道 AI 资讯 →