llama.cpp 自适应 MTP PR:代码生成提速最高翻倍

Look_0ver_There · reddit · 2026-08-18

作者为 llama.cpp 提交了 PR #27210,加入自适应 MTP(Multi-Token Prediction)模式:用一个简单的计数式状态机动态决定投机解码的 draft 深度,用户不必再纠结 MTP 深度设多少。

实测表现:

推荐配置:--spec-type draft-mtp-adaptive --spec-draft-n-max 12(深度 3-12 自动调节),可用 --spec-draft-n-min-adaptive 调低深度下限。

原文链接 →

「Infra」频道最新

更多「Infra」频道 AI 资讯 →