llama.cpp v0.7.0 runs MoE models up to 2.2x faster when the experts don't fit in VRAM
1 month ago
llama.cpp v0.7.0 adds a GPU cache for MoE experts kept in host memory (up to 2.2x faster decode when experts don't fit in VRAM), LiliCorr and GLM5-Next speculative decoding, new models from K2 Horizon to EmbeddingGemma-2, a Models Manager in the web UI, and a new default server port, 9931.
Links
Ask about this presentation
Chapters
0:00llama.cpp v0.7.0 runs MoE models up to 2.2x faster when the experts don't fit in VRAM
0:14The expert cache is shared across several GPUs
0:27Embedding models use up to 10x less VRAM
0:3902 Speculative decoding
0:45LiliCorr picks draft tokens with a small transformer
0:57GLM5-Next drafts its own tokens with MTP
1:08Draft fixes, a draft batch option and multimodal MTP
1:2303 New models
1:25K2 Horizon runs in dense and MoVA variants
1:39Prism Bonsai 2 27B, a ternary model
1:50MiniCPM-V 4.7 and two new Nemotron models
2:04EmbeddingGemma-2 embeds text, images and audio
2:17Five decision models join the server
2:3004 Server and web UI
2:33The web UI gets a Models Manager
2:47Saved slots keep more of your session
3:01llama-server now listens on port 9931
3:15API changes are listed in the v0.7.0 release notes
Show transcriptHide transcript
llama.cpp can now keep a mixture-of-experts model's experts in system memory and run them on the GPU from a cache. When the experts don't fit in VRAM, decoding gets up to 2.2 times faster.
Rigs with more than one GPU can now use the expert cache too, shared across every card. You switch it on with the moe-cache-mib flag and give it a size in mebibytes.
Embedding models got lighter. When pooling is on, llama.cpp now skips the language model head and its logits buffer, which cuts the VRAM they need by up to ten times.
Speculative decoding, where a small draft model guesses tokens for the big model to check.
LiliCorr is a new speculative decoding method. A small draft transformer, built on top of DFlash, selects the candidate tokens, and llama.cpp can now convert and run those draft models.
GLM5-Next gets multi-token prediction, so the model drafts its own next tokens. Its sparse attention also runs on a new, optimized path.
Draft sampling and token rejection are fixed, a new option sizes the draft model's batch on its own to save VRAM, and multi-token prediction drafts now handle images and other multimodal input.
New models you can run today.
K2 Horizon now runs in both its dense and MoVA variants. Conversion, the tokenizer and the chat template are all supported, and tensor splitting spreads one model across several GPUs.
Prism Bonsai 2 is a 27 billion parameter ternary model. Each of its weights is one of three values, and llama.cpp can now load and run it.
MiniCPM-V 4.7 and Nemotron Super 3.5 VL both take images as input. Nemotron Bolt also lands, a 74 billion parameter model with 9 billion parameters active.
EmbeddingGemma-2 puts text, images and audio into one embedding model. A local search index can now hold all three kinds of content in the same vector space.
LiquidAI's d1-3B and d1-omni, vLLM decision 2 and d3, and pplx-decider all run now. The server's system one endpoint serves every one of them.
The server and its web interface.
The web interface gets a Models Manager, one searchable table of every model the server can serve. Each row loads, unloads or deletes a model, and downloads resume where they stopped.
Rerank and embedding requests no longer fill the prompt cache, saved slots keep their context checkpoints and draft model state, and an off-by-two bug that threw away restored sessions is fixed.
llama-server now listens on port 9931 by default. Scripts and clients pointed at 8080 need the new port. Docker images still use 8080 inside the container.
Developers who build on the library or the server's chat code have API changes to check. The release notes for this version, under API changes, list each one.
Up next
2:25llama.cpp v1.1.0 speaks with Kokoro and sizes quants to fit your GPU
@llama-cpp
3 days ago
3:51llama.cpp v1.0.0 runs MoE models too big for your GPU up to 2× faster
@llama-cpp
2 weeks ago
3:22llama.cpp v0.9.0 processes prompts nearly 3× faster on Gemma 4 E2B
@llama-cpp
3 weeks ago
3:31llama.cpp v0.8.0 adds realtime voice chat and text-to-speech to llama-server
@llama-cpp
4 weeks ago