Pure C++. Runs on anything with a CPU or a modest GPU. Community packagers (bartowski, mradermacher) quantize most popular models within days of release. The practical default. Noticeable only on the hardest reasoning tasks.
What llama.cpp expects you to type to serve Llama 3.1 405B at Q4_K_M. Adjust the paths for your filesystem; the structure holds.
# Pull a GGUF quant from bartowski's mirror huggingface-cli download bartowski/Llama-3.1-405B-Instruct-GGUF \ --include "*Q4_K_M*" # Serve on port 8080 ./llama-server -m llama-3-1-405b.Q4_K_M.gguf -c 8192 --port 8080
Q4_K_M — The practical default. Noticeable only on the hardest reasoning tasks.
Expect to need around 235 GB of VRAM to hold the weights at this precision. This is a dense model: every parameter runs for every token. VRAM and compute both scale with the full 405B. Fits on 4× H100 — 320 GB — Half an 8-way HGX node.