llama.cpp guide: running gpt-oss with llama.cpp

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers can run OpenAI's gpt-oss models locally on a Mac with two commands, removing the need for cloud API access.

Read this as

llama.cpp, a free tool for running AI models on your own computer, published an official guide for running OpenAI's gpt-oss models. Two commands install it on a Mac and start the smaller gpt-oss-20b model, which you can use through a chat web page on your own machine. The model file is 12GB and the author measured about 82 tokens per second on a 64GB M2 MacBook Pro.

This guide makes OpenAI's open-weight gpt-oss models genuinely easy to self-host: two commands on macOS via llama.cpp get gpt-oss-20b running locally with a chat interface on port 8080. It runs at roughly 82 tokens/second on a 64GB M2 MacBook Pro. Teams wanting on-premises AI without API costs or data leaving the building can follow it directly; NVIDIA and AMD notes are included but no Windows guidance is detailed.

The official ggml-org guide uses llama-server from llama.cpp, exposing an OpenAI-compatible localhost API plus a web UI. The macOS recipe is brew install llama.cpp then llama-server -hf ggml-org/gpt-oss-20b-GGUF --ctx-size 0 --jinja -ub 2048 -b 2048 -ngl 99 -fa, pulling a 12GB GGUF file from Hugging Face into ~/Library/Caches/llama.cpp/. Measured throughput was ~82 tokens/second on a 64GB M2 MacBook Pro; the guide also covers NVIDIA and AMD hardware.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

llama.cpp gpt-oss-20b OpenAI Hugging Face macOS

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading