GGUF
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 1bit-MONSTER/phi-2-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf 1bit-MONSTER/phi-2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf 1bit-MONSTER/phi-2-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf 1bit-MONSTER/phi-2-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf 1bit-MONSTER/phi-2-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama cli -hf 1bit-MONSTER/phi-2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/1bit-MONSTER/phi-2-GGUF:Q4_K_M
Quick Links

phi-2 β€” GGUF (Q4_K_M)

Below our quality bar. phi-2.Q4_K_M.gguf measures 89.9 % same top-1 (mean KLD 0.0383) against the BF16 of microsoft/phi-2 (16 Γ— 512 wikitext-2, CPU, 2026-11-29). Our bar for an advertised quant is 95 %. This is a Q4_K_M file: fine for its size, but for quality use a Q8_0 or larger GGUF of this model.

Family: Phi Β· all families Β· start here
Runs on: 1bit engine, llama.cpp GGUF route. On 1bit OS v2026.49-rc1 the HRX GPU gives wrong text for this model (no error; the CPU backend on the same file is correct; engine#3580, measured 2026-11-27). Use --device cpu until that issue is fixed.

TheBloke's Q4_K_M GGUF, re-hosted with measured performance for the 1bit engine on Strix Halo.

Contents

  • phi-2.Q4_K_M.gguf

Measured performance (Strix Halo, Vulkan)

These numbers were measured in 2026-09 with the engine's Vulkan backend, which has since been removed. The engine now runs this file on the HRX GPU route; HRX numbers are being re-measured.

pp512: 3210 tok/s Β· tg128: 91.3 tok/s

Running it

1bit serve -m phi-2.Q4_K_M.gguf --device hrx

Attribution

Downloads last month
106
GGUF
Model size
3B params
Architecture
phi2
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for 1bit-MONSTER/phi-2-GGUF

Base model

microsoft/phi-2
Quantized
(65)
this model

Collection including 1bit-MONSTER/phi-2-GGUF