快訊
  • LLM
  • Open Source

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/speech endpoint。
  • 新的 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.h drops 35 deprecated functions, llama_set_warmup, and defrag_thold / --defrag-thold.
  • The NextN/speculative decoding API moves from llama-ext.h into llama.h, and llama_set_embd_state_src is renamed to llama_set_ctx_state_src.
  • clip.h is gone; the multimodal code is consolidated into mtmd.

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-server hardening (SSRF, CORS, DNS rebinding, MCP tool cancellation) and a new OpenAI-compatible /v1/audio/speech endpoint.
  • 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.

來源