llama.cpp 推出 v1.0.0,之後 API 改版照 semver 走
llama.cpp 在 2026-11-13 發布 v1.0.0,底層的 tensor 函式庫 ggml 也同步到 v1.0.0。官方說專案做了 3.5 年,下游依賴的應用越來越多,所以要給一個穩定的 API。
版本規則
- MAJOR:
./include裡的公開 C API 有破壞性變更。 - MINOR:相容的新功能、backend 更新、新模型支援或 API 新增。
- PATCH:只修 bug,API 不變。
升級前要注意
llama.h移除 35 個 deprecated 函式、llama_set_warmup,以及defrag_thold和--defrag-thold。- NextN/speculative decoding 的 API 從
llama-ext.h搬進llama.h,llama_set_embd_state_src改名為llama_set_ctx_state_src。 clip.h移除,多模態相關的程式整合進mtmd。
這版還加了什麼
- FP8 KV cache(
-ctk/-ctv f8_e4m3)。 - MoE expert cache,可以設定 cache miss 時交給 CPU 處理的比例。
llama-server補強安全性(SSRF、CORS、DNS rebinding、MCP tool 取消),並新增 OpenAI 相容的/v1/audio/speechendpoint。- 新的 web UI,支援聊天分組和 markdown 編輯器。
- 發布管道包括 Docker、Debian、Homebrew、conda-forge、MacPorts、Winget 和 XCFramework。
如果你是透過上層工具在用,通常等上游跟進就好;直接 link libllama 的人,升級前先對照 release notes 改掉被移除的呼叫。
llama.cpp hits v1.0.0 and commits to semantic versioning for its API
llama.cpp released v1.0.0 on 2026-11-13, and its tensor library ggml moved to v1.0.0 at the same time. The team says that after 3.5 years, with more and more downstream apps depending on it, a stable API is now a priority.
Versioning rules
- MAJOR: a breaking change to the public C API in
./include. - MINOR: a backward-compatible feature, backend update, new model support, or API addition.
- PATCH: a bug fix with no API change.
Before you upgrade
llama.hdrops 35 deprecated functions,llama_set_warmup, anddefrag_thold/--defrag-thold.- The NextN/speculative decoding API moves from
llama-ext.hintollama.h, andllama_set_embd_state_srcis renamed tollama_set_ctx_state_src. clip.his gone; the multimodal code is consolidated intomtmd.
What else is in the release
- FP8 KV caches (
-ctk/-ctv f8_e4m3). - A MoE expert cache with a configurable share of misses handled on the CPU.
llama-serverhardening (SSRF, CORS, DNS rebinding, MCP tool cancellation) and a new OpenAI-compatible/v1/audio/speechendpoint.- A redesigned web UI with chat groups and a markdown editor.
- Distribution through Docker, Debian, Homebrew, conda-forge, MacPorts, Winget, and XCFramework.
If you use llama.cpp through a higher-level tool, you can usually wait for it to update. If you link libllama directly, check the release notes and replace the removed calls before upgrading.