# llama.cpp

CreateWithAI Hub page: https://createwithaihub.com/open-source/llama-cpp
Latest version of this file: https://createwithaihub.com/open-source/llama-cpp.md

- Type: Library · Category: Libraries & Open Source
- Publisher: ggml-org
- Pricing: Free · License: MIT
- Runs on: macOS, Windows, Linux, Docker / self-hosted

C/C++ engine for running LLMs and multimodal models locally on a wide range of hardware, with a built-in server.

llama.cpp is an open-source C/C++ project for LLM and multimodal model inference with minimal setup on a wide range of hardware, locally or in the cloud. Built on the ggml library, it can download GGUF models directly from Hugging Face, run them in a terminal chat and serve them through an OpenAI-compatible API with a built-in chat web app. Many local AI tools, including Ollama and LM Studio, build on it.

Useful for: Running quantized open models on a laptop or consumer GPU, serving a local OpenAI-compatible endpoint, or embedding LLM inference in a native app.

## Key features

- LLM and multimodal inference in C/C++
- Runs GGUF models pulled directly from Hugging Face
- OpenAI-compatible API server
- Built-in chat web app (Llama Chat)
- Install scripts, Docker images, prebuilt binaries or source build

## Connection

- Language: C / C++
- Focus: Inference / serving, Run models locally

## Install steps from the official documentation

Install (macOS/Linux):

```
curl -LsSf https://llama.app/install.sh | sh
```

Install (Windows PowerShell):

```
irm https://llama.app/install.ps1 | iex
```

Run a model from Hugging Face:

```
llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF
```

Start OpenAI-compatible server:

```
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF
```

## Limitations

- Models must be in the GGUF format; models in other formats can be converted with the convert_*.py scripts in the repo

## Official links

- Website: https://llama.app
- Source repository: https://github.com/ggml-org/llama.cpp
- Documentation: https://github.com/ggml-org/llama.cpp#documentation
- Source: https://github.com/ggml-org/llama.cpp (Description, install commands, CLI/serve usage, ggml basis; MIT; not archived)
- Source: https://github.com/ggml-org/llama.cpp/blob/master/docs/models.md (States llama.cpp requires GGUF; convert_*.py scripts for other formats)
- Source: https://api.github.com/repos/ggml-org/llama.cpp (archived: false; license MIT)
