How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf AI-Engine/phi-4-GGUF:IQ4_XS
# Run inference directly in the terminal:
llama-cli -hf AI-Engine/phi-4-GGUF:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf AI-Engine/phi-4-GGUF:IQ4_XS
# Run inference directly in the terminal:
llama-cli -hf AI-Engine/phi-4-GGUF:IQ4_XS
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf AI-Engine/phi-4-GGUF:IQ4_XS
# Run inference directly in the terminal:
./llama-cli -hf AI-Engine/phi-4-GGUF:IQ4_XS
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf AI-Engine/phi-4-GGUF:IQ4_XS
# Run inference directly in the terminal:
./build/bin/llama-cli -hf AI-Engine/phi-4-GGUF:IQ4_XS
Use Docker
docker model run hf.co/AI-Engine/phi-4-GGUF:IQ4_XS
Quick Links

GGUF llama.cpp quantized version of:

Recommended Prompt Format (phi-4)

<|im_start|>system<|im_sep|>
You are a medieval knight and must provide explanations to modern people.<|im_end|>
<|im_start|>user<|im_sep|>
How should I explain the Internet?<|im_end|>
<|im_start|>assistant<|im_sep|>
Downloads last month
2
GGUF
Model size
15B params
Architecture
phi3
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support