Quick install guide

How to install yzma on your machine.

The installation has two steps.

  1. Install the yzma command line tool.
  2. Use the yzma command to install the llama.cpp libraries for your platform.

Install the yzma command

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

Install the llama.cpp libraries

The yzma command downloads the prebuilt llama.cpp libraries for your machine. Follow the page for your platform.

Set the YZMA_LIB variable

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.

Next steps

Download a model, then run your first program. See Download models.


macOS

How to install the llama.cpp libraries on macOS.

Linux

How to install the llama.cpp libraries on Linux.

Windows

How to install the llama.cpp libraries on Windows.

Raspberry Pi

How to install the llama.cpp libraries on a Raspberry Pi.

NVIDIA Jetson Orin

How to install the llama.cpp libraries on an NVIDIA Jetson Orin.

Arduino UNO Q

How to install the llama.cpp libraries on an Arduino UNO Q.

Browser

How to install the WebAssembly build of llama.cpp for a browser.

Manual installation

How to install the llama.cpp libraries without the yzma installer.