How to use from
llama.cppInstall 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_XSUse 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_XSBuild 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_XSUse Docker
docker model run hf.co/AI-Engine/phi-4-GGUF:IQ4_XSQuick 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
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
Install from brew
# 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