2024-07-05 18:08:32 +02:00
# Install pre-built version of llama.cpp
2026-06-15 17:12:25 +02:00
| Install via | Windows | Mac | Linux |
|-------------|---------|------|-------|
| conda-forge | ✅ | ✅ | ✅ |
2025-06-03 13:09:36 +02:00
| Winget | ✅ | | |
| Homebrew | | ✅ | ✅ |
| MacPorts | | ✅ | |
| Nix | | ✅ | ✅ |
2024-07-05 18:08:32 +02:00
2026-06-15 17:12:25 +02:00
## conda-forge (Windows, Mac and Linux)
conda-forge provides builds for:
- CUDA (Windows and Linux)
- Vulkan (Windows and Linux)
- Apple Metal (macOS)
```sh
2026-07-28 16:51:20 +02:00
conda install -c conda-forge llama.cpp
2026-06-15 17:12:25 +02:00
```
```sh
2026-07-28 16:51:20 +02:00
mamba install -c conda-forge llama.cpp
2026-06-15 17:12:25 +02:00
```
```sh
# Project-local installation
2026-07-28 16:51:20 +02:00
pixi add llama.cpp
2026-06-15 17:12:25 +02:00
# Global installation
2026-07-28 16:51:20 +02:00
pixi global install llama.cpp
2026-06-15 17:12:25 +02:00
```
2026-07-28 16:51:20 +02:00
This distribution is managed on [`conda-forge/llama.cpp-feedstock` ](https://github.com/conda-forge/llama.cpp-feedstock/ ).
2026-06-15 17:12:25 +02:00
Shall you have any problems, please open an issue on [its issue tracker ](https://github.com/conda-forge/llama.cpp-feedstock/issues ).
2025-06-03 13:09:36 +02:00
## Winget (Windows)
```sh
winget install llama.cpp
```
The package is automatically updated with new `llama.cpp` releases. More info: https://github.com/ggml-org/llama.cpp/issues/8188
## Homebrew (Mac and Linux)
2024-07-05 18:08:32 +02:00
```sh
brew install llama.cpp
```
2025-06-03 13:09:36 +02:00
2025-02-15 16:40:57 +02:00
The formula is automatically updated with new `llama.cpp` releases. More info: https://github.com/ggml-org/llama.cpp/discussions/7668
2024-07-05 18:08:32 +02:00
2025-06-03 13:09:36 +02:00
## MacPorts (Mac)
2025-03-23 09:21:48 +01:00
```sh
sudo port install llama.cpp
```
2025-06-03 13:09:36 +02:00
See also: https://ports.macports.org/port/llama.cpp/details/
2024-07-05 18:08:32 +02:00
2025-06-03 13:09:36 +02:00
## Nix (Mac and Linux)
2024-07-05 18:08:32 +02:00
```sh
nix profile install nixpkgs#llama-cpp
```
2025-06-03 13:09:36 +02:00
2024-07-05 18:08:32 +02:00
For flake enabled installs.
Or
```sh
nix-env --file '<nixpkgs>' --install --attr llama-cpp
```
For non-flake enabled installs.
This expression is automatically updated within the [nixpkgs repo ](https://github.com/NixOS/nixpkgs/blob/nixos-24.05/pkgs/by-name/ll/llama-cpp/package.nix#L164 ).