qmetrics.net

llama.cpp

LLM inference engine in C/C++ for local and cloud hardware

llama.cpp screenshot

llama.cpp runs large language models and multimodal models locally or in the cloud with minimal setup. It includes a CLI, an OpenAI-compatible server with a built-in chat app, and a C library API.

Overview

llama.cpp is an inference engine for large language models and multimodal models, written in C/C++ on top of the ggml library. Its stated goal is to run models with minimal setup and strong performance on a wide range of hardware, both locally and in the cloud.

The project ships several tools: a command-line interface for chatting with models (including vision-language models), a completion tool, and a server that exposes a REST API and a built-in browser chat app. It also has a library API for embedding inference in other programs, support for text-to-speech models, and GBNF grammars for constraining output.

The server speaks OpenAI- and Anthropic-compatible endpoints, with streaming, tool calling, structured output and vision, so existing coding agents, editors and scripts can point at a local address instead of a hosted API. Models can be pulled from Hugging Face, and the local cache is shared with other tools.

It can be installed from pre-built binaries, run through Docker, or built from source. Documentation covers Android builds, multi-GPU usage, performance troubleshooting and an XCFramework. A companion desktop app named Llama, made by the llama.cpp team and Hugging Face, wraps the engine in a menu bar or system tray app for Mac and Windows. It picks model settings automatically and loads models only when requested.

Key features

  • Local and cloud LLM inference on many hardware types
  • Command-line chat tool with vision model support
  • Built-in server with REST API and browser chat app
  • OpenAI- and Anthropic-compatible endpoints
  • Streaming, tool calling and structured output
  • GBNF grammars for constrained output
  • Text-to-speech model support
  • Multi-GPU usage

Use cases

  • Running open LLMs privately on your own computer
  • Serving a local OpenAI-compatible API for coding agents and editors
  • Embedding LLM inference in C/C++ applications
  • Running models on Android or multi-GPU machines

Does the same job as

llama.cpp doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare llama.cpp

Similar software

Ollama

Run open AI models locally or in the cloud

Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.

★ 188.3k⟳ 2 days agoMIT
Open Source Alternative to:OpenAI API

Whisper

General-purpose speech recognition and translation model

Whisper is a speech recognition model trained on diverse audio. It supports multilingual transcription, speech-to-English translation, and language identification via Python or the command line.

★ 113.6k⟳ 2 months agoMIT

GPT4All

Desktop app for running LLMs privately on local hardware

GPT4All is a desktop chat application that runs large language models locally on everyday computers, with no API calls or GPU required. It also offers a Python client and an OpenAI-compatible API server.

★ 77.3k⟳ 1 year agoMIT
Machine Learning InfrastructureNo commits in 18+ monthsDesktop/CLI app
Open Source Alternative to:LM StudioMicrosoft Copilot

Real-Time Voice Cloning

Real-time multispeaker text-to-speech voice cloning toolbox

Real-Time Voice Cloning implements a three-stage deep learning pipeline that builds a voice embedding from seconds of audio and synthesizes speech from arbitrary text in real time.

★ 60.3k⟳ 8 months agoMIT

LocalAI

Self-hosted OpenAI-compatible server for running open AI models locally

LocalAI runs open models for chat, images, speech, video and music on your own hardware, with OpenAI- and Anthropic-compatible APIs. It works on CPU or GPU and adds team chats, files, agents and add-ons.

★ 50.6k⟳ todayMIT
Open Source Alternative to:Anthropic APIChatGPT+2

Jan

Open-source desktop ChatGPT alternative that runs local or cloud LLMs

Jan is a desktop app for downloading and running large language models locally, with optional connections to cloud models. It also offers custom assistants, MCP support and a local OpenAI-compatible API server.

★ 46.2k⟳ 10 days agoApache-2.0
Open Source Alternative to:ChatGPTLM Studio+1