How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mcm07/phi-4-GGUF-imatrix:
# Run inference directly in the terminal:
llama cli -hf mcm07/phi-4-GGUF-imatrix:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mcm07/phi-4-GGUF-imatrix:
# Run inference directly in the terminal:
llama cli -hf mcm07/phi-4-GGUF-imatrix:
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 mcm07/phi-4-GGUF-imatrix:
# Run inference directly in the terminal:
./llama-cli -hf mcm07/phi-4-GGUF-imatrix:
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 mcm07/phi-4-GGUF-imatrix:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf mcm07/phi-4-GGUF-imatrix:
Use Docker
docker model run hf.co/mcm07/phi-4-GGUF-imatrix:
Quick Links

llama.cpp and ik_llama.cpp imatrix Quantizations of unsloth/phi-4-GGUF

Imatrix and quantizations created from https://huggingface.co/unsloth/phi-4-GGUF/phi-4-F16.gguf

Imatrix dataset from bartowski1182

llama.cpp

phi-4-IQ2_S.gguf
phi-4-IQ3_XS.gguf
phi-4-Q4_K_M.gguf
phi-4-IQ4_XS.gguf
phi-4-IQ4_NL.gguf

ik_llama.cpp

phi-4-IQ4_KS.gguf
phi-4-IQ4_NL_R4.gguf

Credits

llama.cpp, ik_llama.cpp, bartowski, microsoft, unsloth, huggingface

Downloads last month
24
GGUF
Model size
15B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

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

Model tree for mcm07/phi-4-GGUF-imatrix

Base model

microsoft/phi-4
Quantized
(159)
this model