GGUF quants
Collection
97 items โข Updated โข 1
How to use Xylolabs/Phi-4-mini-instruct-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
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 Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
docker model run hf.co/Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
How to use Xylolabs/Phi-4-mini-instruct-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Xylolabs/Phi-4-mini-instruct-GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Xylolabs/Phi-4-mini-instruct-GGUF",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
How to use Xylolabs/Phi-4-mini-instruct-GGUF with Ollama:
ollama run hf.co/Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
How to use Xylolabs/Phi-4-mini-instruct-GGUF with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"llama-cpp": {
"baseUrl": "http://localhost:9931/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M"
}
]
}
}
}# Start Pi in your project directory: pi
How to use Xylolabs/Phi-4-mini-instruct-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
How to use Xylolabs/Phi-4-mini-instruct-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
lemonade run user.Phi-4-mini-instruct-GGUF-Q4_K_M
lemonade list
How to use Xylolabs/Phi-4-mini-instruct-GGUF with Hermes Agent:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
hermes
How to use Xylolabs/Phi-4-mini-instruct-GGUF with OpenClaw:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
Imatrix-calibrated GGUF quantizations of microsoft/Phi-4-mini-instruct (cfbefacb) for llama.cpp, from Q2_K through Q8_0.
| Quant | File | Size |
|---|---|---|
| Q2_K | Phi-4-mini-instruct-Q2_K.gguf |
1.73 GB |
| Q3_K_M | Phi-4-mini-instruct-Q3_K_M.gguf |
2.12 GB |
| IQ4_XS | Phi-4-mini-instruct-IQ4_XS.gguf |
2.22 GB |
| Q4_K_S | Phi-4-mini-instruct-Q4_K_S.gguf |
2.35 GB |
| Q4_K_M | Phi-4-mini-instruct-Q4_K_M.gguf |
2.49 GB |
| Q5_K_M | Phi-4-mini-instruct-Q5_K_M.gguf |
2.81 GB |
| Q6_K | Phi-4-mini-instruct-Q6_K.gguf |
3.16 GB |
| Q8_0 | Phi-4-mini-instruct-Q8_0.gguf |
4.08 GB |
llama-cli -hf Xylolabs/Phi-4-mini-instruct-GGUF:Q4_K_M
Mean KL divergence and top-1 token agreement against the BF16 GGUF reference on WikiText-2 and held-out prose.
| Quant | Size | WikiText-2 KL | WikiText-2 top-1 | Held-out KL | Held-out top-1 |
|---|---|---|---|---|---|
| Q2_K | 1.73 GB | 0.570776 | 62.98% | 0.597561 | 63.81% |
| Q3_K_M | 2.12 GB | 0.115534 | 82.12% | 0.117640 | 81.85% |
| IQ4_XS | 2.22 GB | 0.069512 | 85.77% | 0.061689 | 86.31% |
| Q4_K_S | 2.35 GB | 0.062877 | 86.02% | 0.051198 | 87.52% |
| Q4_K_M | 2.49 GB | 0.078244 | 83.07% | 0.052753 | 87.79% |
| Q5_K_M | 2.81 GB | 0.051758 | 86.00% | 0.028567 | 90.80% |
| Q6_K | 3.16 GB | 0.045901 | 86.35% | 0.021302 | 92.35% |
| Q8_0 | 4.08 GB | 0.003492 | 96.28% | 0.002365 | 97.02% |
| Hardware | Memory | File | Context |
|---|---|---|---|
| RTX 4090 / 3090 | 24 GB | Phi-4-mini-instruct-Q8_0.gguf |
32K |
| RTX 5090 | 32 GB | Phi-4-mini-instruct-Q8_0.gguf |
32K |
| RTX 6000 Ada | 48 GB | Phi-4-mini-instruct-Q8_0.gguf |
32K |
| H100 | 80 GB | Phi-4-mini-instruct-Q8_0.gguf |
32K |
| RTX PRO 6000 | 96 GB | Phi-4-mini-instruct-Q8_0.gguf |
32K |
| Mac Studio M5 Max | 128 GB | Phi-4-mini-instruct-Q8_0.gguf |
32K |
Q2_K through Q8_0) with imatrix calibration and BF16 KL evaluation.2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Base model
microsoft/Phi-4-mini-instruct