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 参数。

原文 · Julien Chaumond

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

I'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 tokens per sec for most use cases. 2x generation speed = Truly a game changer. 🔥 How to run it? brew upgrade llama.cpp # or you might need to install from source until build 9200 is in your package manager: brew install llama.cpp --HEAD Then pick either the Dense 27B or the 35B A3B MoE. Personally I tend to stick to the Dense model where I achieve ~30 tok/sec on my machine. The MoE is of course way faster at an impressive ~100 tok/sec on my machine. Truly rapid. ⚡️ In both cases you probably want 48GB or better 64GB RAM or VRAM, though 36GB might work with more strongly-quantized versions. # Dense: llama-server -hf ggml-org/Qwen3.6-27B-MTP-GGUF --spec-type draft-mtp --spec-draft-n-max 2 # MoE: llama-server -hf ggml-org/Qwen3.6-35B-A3B-MTP-GGUF --spec-type draft-mtp --spec-draft-n-max 3 Enjoy! 💬 8 🔄 9 ❤️ 118 👀 5398 📊 41 ⚡

llama.cpp 运行 MTP 多 token 预测教程 · AI 热点