llama.cpp 运行 MTP 多 token 预测教程

I've seen some confusion online on how to run llama.cpp with MTP (Multi-token prediction) in the sim...

精选理由

教你用 Qwen3.6 跑出 2 倍速推理

AI 摘要

llama.cpp 支持 MTP(多 token 预测),这是一种内置于模型中的推测解码,可将 token 生成速度提升约 2 倍。需要升级 llama.cpp 到 build 9200 以上(可使用 brew install --HEAD)。可选 Dense 27B 或 35B A3B MoE 模型,前者在 48-64GB 内存下约 30 tok/s,后者可达约 100 tok/s。运行命令为 llama-server 加上 --spec-type draft-mtp 参数。

AI 翻译 · 中文

llama.cpp 支持 MTP(多 token 预测),这是一种内置于模型中的推测解码,可将 token 生成速度提升约 2 倍。需要升级 llama.cpp 到 build 9200 以上(可使用 brew install --HEAD)。可选 Dense 27B 或 35B A3B MoE 模型,前者在 48-64GB 内存下约 30 tok/s,后者可达约 100 tok/s。运行命令为 llama-server 加上 --spec-type draft-mtp 参数。

Julien ChaumondI've seen some confusion online on how to run llama.cpp with MTP (Multi-token prediction) in the simplest way possible. ICYMI, MTP is a new flavor of speculative decoding built-in to the model itself, that ~2x your t