llama.cpp

C and C++ engine for running local LLMs, with a server and tools

90.0
Score in best local LLM runners
Check github.com (opens in a new tab)AlternativesCompareShare

Opens the official site in a new tab. Check current plans and terms there; nothing is purchased on listme.name.

Ranked 2 of 10 in best local LLM runners

The engine many local tools build on, with GGUF support, a server and a library API. It needs command-line comfort, so beginners will find Ollama or Jan easier.

Best for Developers who want a local inference engine

About llama.cpp

llama.cpp is an inference engine for large language models, written in C and C++ and maintained under the ggml organization. Its repository describes it as LLM inference in C and C++ and includes a server, a library API and command-line tools for running GGUF model files on local hardware.

Many other local AI tools build on it. The Jan and GPT4All projects in this category and the llamafile project all list llama.cpp among their foundations. Because it is a low-level engine, llama.cpp suits developers and people who are comfortable with the command line. Users who want a graphical app are better served by Jan or GPT4All. The MIT license allows commercial use and modification.

Key features

  • GGUF model support
  • Built-in server
  • Library API
  • MIT license

Strengths

  • MIT license with source on GitHub
  • Runs many GGUF models on local hardware
  • Includes a server and a library API

Limits

  • Needs command-line and build knowledge
  • No built-in graphical app

Where llama.cpp ranks

How llama.cpp compares

ProductScorePricePlatformsInterfaceModel formatCloud option
#1Ollama92.0Free plan, paid upgradesmacOSLinuxWindowsCommand lineIts own model libraryPaid cloud models
#2llama.cpp90.0Free and open sourceCommand lineCommand line and serverGGUF model filesNot applicable
#3LM Studio89.0FreeWindowsmacOSLinuxDesktop chat app with local serverDownloadable local modelsNot listed
#4GPT4All87.5Free and open sourceWindowsmacOSLinuxDesktop chat appThousands of supported modelsSeparate hosted plans from Nomic
#5Jan86.0Free and open sourcemacOSWindowsLinuxDesktop chat app with local APILocal modelsOptional cloud providers

The full comparison table for best local LLM runners has all 10 products.

Questions about llama.cpp

Is llama.cpp free?
llama.cpp can be used without paying: Free and open source under the MIT license. Check the vendor’s pricing page for current limits.
Is llama.cpp open source?
Yes. llama.cpp publishes its source code under the MIT license.
Which platforms does llama.cpp support?
llama.cpp is available on: Command line.
What is llama.cpp best for?
Developers who want a local inference engine. In our ranking of local LLM runners it is number 2 of 10 with a score of 90.0.
What are the best alternatives to llama.cpp?
The highest-ranked alternatives on listme.name are Ollama, LM Studio, GPT4All, Jan.

Show this ranking on your site

If you make or maintain llama.cpp, this badge links back to this page and shows its current rank. It updates when the ranking does.

Ranked #2 of 10 local LLM runners on listme.name
<a href="https://listme.name/software/llama-cpp"><img src="https://listme.name/badge/llama-cpp.svg" height="28" alt="Ranked #2 of 10 local LLM runners on listme.name"></a>