llama.cpp adaptive MTP PR speeds up code generation by up to 100%

Look_0ver_There · reddit · 2026-08-18

PR #27210 adds an adaptive MTP mode to llama.cpp: a simple counting-style state machine dynamically picks the speculative decoding draft depth, so users no longer need to tune MTP depth manually.

Measured results:

Recommended config: --spec-type draft-mtp-adaptive --spec-draft-n-max 12 (depth range 3-12), with --spec-draft-n-min-adaptive to lower the floor.

Original post →

More from Infra

Infra channel →