Skip to main content
Build a Flint-compatible llama.cpp runtime on an M4/M5 Pro or Max with at least 48 GB of unified memory. You need Git, CMake, and the Xcode command-line tools. For automatic installation and optimized inference, use rec.
1

Set your artifact and runtime

Download the model through your runtime setup instructions. Set the exact values supplied with it:
FLINT_CONTEXT must be an integer token count. Do not substitute a model’s advertised maximum for the tested limit on your machine.
2

Build the supplied revision

If your runtime documentation specifies additional patches or build flags, apply those before building.
3

Start the server

This is the basic text-serving configuration. Tool use may require additional parser or grammar options from your runtime documentation.
4

Verify a response

In another terminal:
This localhost server does not require authentication. LOCAL_API_KEY is the placeholder for SDKs that require a key; keep your Nebius credential in NEBIUS_API_KEY for hosted requests. Check this local server directly:
Check the server log for successful model loading and Metal initialization. Keep the server running while you use the API or coding agent.
If your build reports an unknown architecture or fails while loading the model, check the artifact–runtime pairing before changing performance settings. See troubleshooting.