macOS
How to install the llama.cpp libraries on macOS.
The installation has two steps.
yzma command line tool.yzma command to install the llama.cpp libraries for your platform.You need Go 1.26 or later. You do not need a C compiler.
go install github.com/hybridgroup/yzma@latest
Check that the command works:
yzma version
The yzma command downloads the prebuilt llama.cpp libraries for your machine. Follow the page for your platform.
yzma must know where the libraries are. Set the YZMA_LIB environment variable to that directory.
export YZMA_LIB=/path/to/lib
set YZMA_LIB=C:\yzma\lib
Add this line to your shell profile to keep the setting.
Download a model, then run your first program. See Download models.
How to install the llama.cpp libraries on macOS.
How to install the llama.cpp libraries on Linux.
How to install the llama.cpp libraries on Windows.
How to install the llama.cpp libraries on a Raspberry Pi.
How to install the llama.cpp libraries on an NVIDIA Jetson Orin.
How to install the llama.cpp libraries on an Arduino UNO Q.
How to install the WebAssembly build of llama.cpp for a browser.
How to install the llama.cpp libraries without the yzma installer.