llama.cpp 1.0 Is Here — Can It Finally Catch Strata?

llama.cpp 1.0 Is Here — Can It Finally Catch Strata?

Llama.cpp Version 1.0.0 Release Overview

Key Features and Improvements

  • On November 13th, llama.cpp transitioned from version 0.x to 1.0.0, marking a significant milestone after three and a half years of development.
  • The new release introduces a host memory expert cache with a configurable CPU share, enhancing performance for models larger than the graphics card's memory.
  • While version 1.0 is not primarily focused on speed improvements, it emphasizes stability and follows semantic versioning for future updates.

Changes in Functionality

  • The update removed 35 deprecated functions from the public header and integrated speculative decoding into the main API, improving usability for applications built on llama.cpp.
  • Notable features include an FP8 KV cache format and smarter rules for managing experts in memory, which optimize model performance.

Performance Comparisons with Strata

Competitive Landscape

  • Following Strata's head-to-head benchmark showing it was significantly faster than tuned llama.cpp, the introduction of expert caching aims to close this performance gap.
  • Pull request 3966 merged on November 7th introduced crucial changes that allow missed experts to be computed by the CPU instead of solely relying on GPU processing.

Testing Results

  • A tester demonstrated that using a CPU share can drastically improve token generation speeds; results showed up to a 63% increase in efficiency under optimal conditions.

Cache Management Strategies

Cache Efficiency Insights

  • Small caches can hinder performance; tests indicated that an improperly sized cache could lead to slower speeds compared to having no cache at all.
  • Adjustments in how models are loaded (direct IO vs. memory mapping) also impacted generation speeds significantly during testing.

Configuration Recommendations

  • The tuning script provided with version 1.0 helps users determine optimal cache sizes and CPU shares based on their specific hardware configurations.

Expert Management Enhancements

New Expert Scoring System

  • A new scoring system prioritizes frequently used experts while allowing less utilized ones to fade over time, ensuring efficient use of resources within the cache.

Performance Gains from Reordering Logic

  • Minor adjustments in processing order have led to measurable speed improvements across various models by reducing unnecessary waiting times between CPU and GPU operations.

Future Outlook and Testing Considerations

Upcoming Benchmarks

  • No definitive tests comparing llama.cpp 1.0 against Strata have been published yet; future benchmarks will need controlled conditions for accurate comparisons.

Important Testing Parameters

  • For meaningful results, tests should utilize identical GGUF files across both engines while maintaining consistent machine specifications and settings.

Conclusion: Transitioning Towards Generalist Solutions

Implications of Version 1.0 Release

  • Llama.cpp’s transition to version 1.0 signifies its evolution towards integrating specialized techniques into generalist frameworks without compromising stability or compatibility with existing applications.

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

llama.cpp just hit version 1.0.0. And one line in the release notes matters to anyone running a model bigger than their GPU: the MoE expert cache now has a configurable CPU share. On one RTX 3090, a tester kept the cache at the same size, changed only that share, and went from 19.5 to 31.8 tokens per second. About 63% faster. But the details change what that number means, and nobody has yet tested llama.cpp 1.0 against Strata on the same machine. 🔔 Subscribe https://www.youtube.com/@Code-Unpacked?sub_confirmation=1 📌 Chapters: 00:00 - llama.cpp has a one in front 00:53 - What 1.0 actually means 01:44 - A month of real changes 02:03 - How the race got here 02:52 - How the CPU share works 03:57 - A small cache can be worse than none 04:32 - The RTX 3090 run, in detail 05:55 - It depends on the machine 06:34 - The tuning script 07:25 - Which experts stay in the cache 08:02 - The CPU stopped waiting 08:14 - Sixteen days, and a rewrite 08:38 - Can llama.cpp 1.0 catch Strata? 09:35 - Strata is not standing still 10:10 - What a fair test looks like 10:35 - How to try it 11:06 - What it means In this video, we unpack llama.cpp v1.0.0: what the version number promises, the MoE cache changes that shipped in it, and how far they take llama.cpp toward Strata. Every number here was published by someone else; I did not run these tests myself. • What 1.0 means: semantic versioning for llama.cpp and ggml. A breaking change to the public C API means a new major version. 35 deprecated functions removed; the speculative decoding (NextN/MTP) API moved into llama.h. More than 150 architecture variants supported • The CPU share (PR #30966 by am17an, merged Nov 7): a cache miss can be computed by the CPU from RAM instead of uploaded over PCIe. Until the cache is full, every miss is still uploaded • A small cache can be worse than none: RTX 2080 Ti, Qwen3.6-35B, no cache 42.1 tok/s, a 2.7 GB cache at share 0 23.5, at share 0.95 51.9 • RTX 3090, Qwen3.8-Flash-Next UD-IQ4_XS, 5.5 GB cache: 19.5 / 26.6 / 31.8 tok/s at share 0 / 0.5 / 0.95 with the default memory mapping. With direct I/O (pinned experts): 32.1 / 35.9 / 33.4. Most of the 63% wins back what the default loading mode costs • Not universal: an R9700 on PCIe 5 got about 15% slower with any share above zero. On the developer's card, 6 GB of cache went 24.2 → 47.6, while 19 GB went 65.5 → 54.1 • The tuning script runs six configurations, measures upload and CPU speed, replays the routing for sizes and shares it never ran, and recommends the lowest share within 5% of the fastest. An automatic mode (#31286) was closed: a fixed 0.95 did about as well • ClassLRU (#31233): a usage score that halves after 128 unused tokens, eight classes, +6% on Qwen3.8-Flash-Next, +7% on GLM, 8% fewer uploads. #31888: the CPU no longer waits for the GPU each layer, 7–9% on Gemma 4 Can it catch Strata? Nobody has published that test. The closest numbers: on an RTX 3090, InsiderLLM measured tuned llama.cpp (before any cache) at 19.1 tok/s, Strata at 77.6 without drafting and 118.9 as shipped. The 1.0 cache on a different RTX 3090, with a bigger file and longer context: about 32–36. Different machines and files, so a rough distance, not a result. Meanwhile Strata's own run of 0.2.1 on its October RTX 3060 box reached 55.4 tok/s (41.6 on October 6th, different protocol), and Piotr Wilkin's draft to beat Strata (#30971) is still open. To try it: the cache is off by default. Keep experts in RAM (-cmoe / -ncmoe), set --moe-cache-mib and --moe-cache-cpu-share, or put scripts/moe-cache-tune.py in front of your server command. Check your load mode, and leave VRAM free for a vision model. What do you think: should llama.cpp keep adding specialist tricks like this, or stay general and let forks chase Strata? Let me know in the comments. 🔗 Sources & Further Reading: llama.cpp v1.0.0 release notes: https://github.com/ggml-org/llama.cpp/releases/tag/v1.0.0 The ggml team's v1.0.0 post: https://huggingface.co/blog/ggml-org/llama-cpp-v1 PR #30966, CPU share and tuning script: https://github.com/ggml-org/llama.cpp/pull/30966 MoE cache documentation: https://github.com/ggml-org/llama.cpp/blob/v1.0.0/docs/moe-cache.md PR #31233, ClassLRU cache rule: https://github.com/ggml-org/llama.cpp/pull/31233 PR #31888, no CPU wait on cached experts: https://github.com/ggml-org/llama.cpp/pull/31888 PR #31286, automatic CPU share (closed): https://github.com/ggml-org/llama.cpp/pull/31286 PR #30971, Piotr Wilkin's draft to beat Strata: https://github.com/ggml-org/llama.cpp/pull/30971 InsiderLLM, Strata vs llama.cpp on an RTX 3090: https://insiderllm.com/guides/strata-vs-llama-cpp-rtx-3090/ Strata 0.2.1 benchmark run: https://github.com/Niko1221/Strata/blob/main/bench/results/2026-10-20-0.2.1-bench/README.md #llamacpp #LocalAI #LocalLLM #MoE #Strata