█

AI/TLDR

Spendier mir einen Kaffee
Spendier mir einen Kaffee

llama.cpp

LLMs in C/C++ auf CPU, Apple Silicon und GPU ausführen, mit geringem Speicherbedarf

Local RuntimesOpen Source
Neueste
v1.0.0
Aktualisiert
13. Nov. 2026
Sprache
C/C++
Lizenz
MIT
Abdeckung
8 stories
$brew install llama.cpp

Neu

v1.0.013. Nov. 2026

The first stable release of llama.cpp and ggml, which now follow semantic versioning: a major bump means a breaking change to the public C API. The deprecated public API (llama_set_warmup and 35 other functions) is removed, and the release adds an FP8 (E4M3) KV cache, Kimi-K3.1 support and an OpenAI-compatible /v1/audio/speech server endpoint.

Neueste News

alle 8 ↓
KURZ

Was ist llama.cpp?

llama.cpp ist eine schlanke C/C++-Inferenz-Engine, um große Sprachmodelle lokal und in der Cloud auszuführen. Es lädt Modelle im GGUF-Format und läuft mit minimalem Setup auf einer breiten Palette an Hardware, vom Laptop-Prozessor bis zu NVIDIA-, AMD- und Apple-GPUs. Es gehört zur Kategorie Local Runtimes der Models & Inference-Tools, ist Open Source, in C/C++ geschrieben und unter MIT lizenziert.

Aktualisiert Markdown-Version ↗
Terminal screenshot of a vision-language model chat session running in the llama.cpp command-line tool
A VLM session in the llama.cpp CLIllama.cpp README ↗

Überblick

llama.cpp ist eine schlanke C/C++-Inferenz-Engine, um große Sprachmodelle lokal und in der Cloud auszuführen. Es lädt Modelle im GGUF-Format und läuft mit minimalem Setup auf einer breiten Palette an Hardware, vom Laptop-Prozessor bis zu NVIDIA-, AMD- und Apple-GPUs.

Es ist für Entwickler gedacht, die Open-Modelle auf eigenen Rechnern betreiben wollen, ohne schweren Python-Stack oder externe Abhängigkeiten. Integer-Quantisierung (von 1.5-Bit bis 8-Bit) senkt den Speicherbedarf, und CPU+GPU-Hybrid-Inferenz erlaubt es Ihnen, Modelle, die größer als das gesamte VRAM sind, teilweise zu beschleunigen.

Als lokale Runtime im Bereich Inferenz und Serving bietet llama.cpp Ihnen sowohl ein Command-Line-Tool (llama-cli) für einmalige Prompts als auch einen OpenAI-kompatiblen Server (llama-server), auf den Sie bestehenden Client-Code richten können. Außerdem ist es der wichtigste Spielplatz für die zugrunde liegende ggml-Bibliothek.

Was es kann

  • Schlanke C/C++-Implementierung ohne externe Abhängigkeiten
  • Führt GGUF-Modelle auf CPU, Apple Silicon (Metal/NEON/Accelerate) und GPUs über CUDA, HIP, MUSA, Vulkan und SYCL aus
  • Integer-Quantisierung von 1.5-Bit bis 8-Bit für schnellere Inferenz und geringeren Speicherbedarf
  • CPU+GPU-Hybrid-Inferenz, um Modelle, die größer als das gesamte VRAM sind, teilweise zu beschleunigen
  • Eingebauter REST-API-Server (llama-server) mit OpenAI-kompatibler Schnittstelle und Multimodal-Unterstützung
  • Modelle direkt von Hugging Face herunterladen und ausführen, mit dem Flag -hf

Erste Schritte

Installieren Sie ein vorkompiliertes Binary oder bauen Sie es aus dem Quellcode, und zeigen Sie llama.cpp dann auf eine GGUF-Modelldatei oder ein Hugging-Face-Repo.

llama.cpp installieren

Installieren Sie es über einen Paketmanager (brew, nix oder winget), starten Sie es mit Docker, laden Sie ein vorkompiliertes Binary von der Releases-Seite herunter oder bauen Sie es aus dem Quellcode. Details stehen in den Install- und Build-Anleitungen des Projekts.

bashbash
brew install llama.cpp

Modell über die Kommandozeile ausführen

Verwenden Sie llama-cli mit einer lokalen GGUF-Datei oder übergeben Sie -hf, um ein Modell direkt von Hugging Face herunterzuladen und auszuführen.

bashbash
# Use a local model file
llama-cli -m my_model.gguf

# Or download and run a model directly from Hugging Face
llama-cli -hf ggml-org/gemma-3-1b-it-GGUF

OpenAI-kompatiblen Server starten

Starten Sie llama-server, um eine REST-API bereitzustellen, die OpenAI-kompatible Clients aufrufen können.

bashbash
llama-server -hf ggml-org/gemma-3-1b-it-GGUF
llama.cpp's built-in web UI chatting with a Qwen 3.6 model served locally
The built-in web UI talking to the local llama.cpp serverllama.cpp README ↗

Befehle und Code stammen aus der Dokumentation des Projekts — prüf immer die offizielles Repo für das Neueste.

Wann man es nutzt

  • Offene Modelle offline auf einem Laptop oder einer Workstation ausführen, ohne Python-Stack
  • Lokale OpenAI-kompatible API für Apps und Agents während der Entwicklung bereitstellen
  • Größere Modelle auf begrenzter Hardware betreiben, dank Quantisierung und CPU+GPU-Hybrid-Inferenz
  • Inferenz auf Apple Silicon oder Nicht-NVIDIA-GPUs über Metal, Vulkan, HIP oder SYCL ausführen

Versionshistorie

Every verified update to llama.cpp that AI/TLDR tracked, newest first — each links to our coverage and the official changeset.

  1. 13. Nov. 2026v1.0.0

    The first stable release of llama.cpp and ggml, which now follow semantic versioning: a major bump means a breaking change to the public C API. The deprecated public API (llama_set_warmup and 35 other functions) is removed, and the release adds an FP8 (E4M3) KV cache, Kimi-K3.1 support and an OpenAI-compatible /v1/audio/speech server endpoint.

  2. 14. Sept. 2026v0.4.1

    Adds architecture support for Maple 20B-A1B (a ternary mixture of experts, on CPU), Tencent Hy 4 as a preview architecture, and Spark2.5. ggml moves to v0.24.0, JSON schema handling is rebuilt around a common_schema representation, and the deprecated --mmap, --mlock, and --direct-io flags are removed in favour of --load-mode.

  3. 4. Sept. 2026v0.4.0

    Adds initial support for the Qwen3.8-Flash-Next (qwen4exp), NVIDIA Nemotron-3-Puzzle-75B-A9B, Nemotron 3.5 DSpark, and nanbeige4.2-3B architectures. A new --lazy-mode flag reads tensors from disk on demand, the server gains per-slot context limits, and ggml moves to 0.23.0 with sparse flash attention and Apple RDMA as an RPC transport.

llama.cpp in the news

  1. 26. Nov. 2026WICHTIGllama-cpp-rdna-boosts — patches that speed up llama.cpp on AMD GPUs
  2. 13. Nov. 2026GROSSllama.cpp v1.0.0 — first stable release, with semantic versioning
  3. 16. Okt. 2026WICHTIGPS5LM v0.9.0 — llama.cpp runs on a jailbroken PS5's GPU
  4. 30. Sept. 2026GROSSMagnitude — a local inference engine for agents, up to 2x faster than llama.cpp
  5. 14. Sept. 2026GROSSOllama 0.34.1 — MLX safetensors leave experimental, GGUF needs llama.cpp
  6. 14. Sept. 2026GROSSllama.cpp v0.4.1 — Maple 20B-A1B and Tencent Hy 4 now run locally
  7. 4. Sept. 2026GROSSllama.cpp v0.4.0 — Qwen3.8-Flash-Next support and lazy tensor loading
  8. 11. Aug. 2026GROSSMetal Capability Shim — llama.cpp runs up to 16x faster inside macOS VMs

Aus dem AI/TLDR Release-Feed – jeder Eintrag wird bei Veröffentlichung quellengeprüft.

How llama.cpp compares

llama.cpp im Vergleich zu anderen Open-Source-Tools der Kategorie „local runtimes“, die AI/TLDR trackt, sortiert nach GitHub-Stars.

ToolSterneWas es kann
Ollama★ 189kOffene LLMs lokal im Terminal herunterladen und ausführen
llama.cpp★ 137kLLMs in C/C++ auf CPU, Apple Silicon und GPU ausführen, mit geringem Speicherbedarf
GPT4All★ 77.3kGroße Sprachmodelle privat auf normalen Laptops und Desktops ausführen
Colibrì★ 54.3kEine reine C-Inferenz-Engine, die Mixture-of-Experts-Gewichte von der Festplatte streamt, damit Modelle in Frontier-Größe auf Consumer-Hardware laufen
LocalAI★ 50.7kSelf-hosted, OpenAI-kompatible API zum lokalen Betrieb von LLMs, Vision-, Voice- und Bildmodellen
Strata★ 50kEine lokale Inference Engine mit One-Click-Installation, die das 125B Qwen3.8-Flash-Next auf einem Gaming-PC mit 12-GB-Grafikkarte ausführt
Jan★ 46.3kOpen-Source-LLMs offline auf dem eigenen Computer ausführen, wie ein privater ChatGPT
AirLLM★ 43.8kAuch 70B-Modelle und größere auf einer kleinen GPU laufen lassen, indem jeweils nur eine Schicht gestreamt wird