Llama.cpp Just Merged MTP And You Should Be Using It.

Tim Carambat · Beginner ·🧠 Large Language Models ·2mo ago

Key Takeaways

Explains the benefits of using Multi-Token Prediction (MTP) in the llama.cpp engine for faster TPS

Original Description

MTP (Multi-Token prediction) is not a new idea, but it is *finally* supported in the beloved llama.cpp engine! MTP is basically SSD (Speculative Decoding) but all packaged into a single model! Depending on model/hardware you can get up to 2x faster TPS with no downside! Not **every** model supports MTP, and if you are using something like Qwen3.5 or Qwen3.6, youll need to redownload your GGUF file with MTP support since this was merged so recently. That being said, you can I was getting 25% faster TPS on my M4 Pro but depending on hardware you can get a lot more. All of this comes without any accuracy tradeoffs, you just get more TPS on the exact same hardware with a simple llama.cpp config option! Pretty cool and I am happy this got merged finally since its likely we see a lot more MTP models in the future. *Links* : LLamacpp PR: https://github.com/ggml-org/llama.cpp/pull/22673 Download Llamacpp: https://github.com/ggml-org/llama.cpp/releases/tag/b9209 AnythingLLM: https://github.com/Mintplex-Labs/anything-llm Qwen 3.5 9B MTP GGUF example: https://huggingface.co/unsloth/Qwen3.5-9B-MTP-GGUF *Chapters* : 0:00 Local AI is improving fast 1:35 Intro to AnythingLLM 2:35 MTP (Multi Token Prediction) is merged! 3:18 What is MTP? 5:37 What models support MTP? 7:20 MTP support is still in progress! 7:53 Here is the annoying part... 9:53 How to run llama.cpp with MTP support locally! 11:28 Benchmarking, running and tuning MTP for local AI 15:25 MTP is a welcome addition to local AI for llama.cpp!
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

Chapters (10)

Local AI is improving fast
1:35 Intro to AnythingLLM
2:35 MTP (Multi Token Prediction) is merged!
3:18 What is MTP?
5:37 What models support MTP?
7:20 MTP support is still in progress!
7:53 Here is the annoying part...
9:53 How to run llama.cpp with MTP support locally!
11:28 Benchmarking, running and tuning MTP for local AI
15:25 MTP is a welcome addition to local AI for llama.cpp!
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →