Pure C++. Runs on anything with a CPU or a modest GPU. Community packagers (bartowski, mradermacher) quantize most popular models within days of release. GGUF 8-bit. Near-reference quality.
What llama.cpp expects you to type to serve Phi-4 at Q8_0. Adjust the paths for your filesystem; the structure holds.
# Pull a GGUF quant from bartowski's mirror huggingface-cli download bartowski/phi-4-GGUF \ --include "*Q8_0*" # Serve on port 8080 ./llama-server -m phi-4.Q8_0.gguf -c 8192 --port 8080
Q8_0 — GGUF 8-bit. Near-reference quality.
Expect to need around 19 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 14B. Fits on Consumer 24 GB — RTX 3090 or 4090.