Views
No views yet
microsoft/Phi-4-mini-instruct, built and optimized for on-device inference on iPhone, iPad, and Apple Silicon Macs via llama.cpp or apps that wrap it (e.g. Haplo).Built and quantized by jc-builds for the Haplo ecosystem. Original weights © Microsoft Corporation, redistributed under the MIT License per the upstream license.
| File | Size | Bits/weight | Recommended use |
|---|---|---|---|
Phi-4-mini-instruct-Q4_K_M.gguf | 2.3 GB | 4.8 | Default — best size/quality tradeoff for phone & laptop |
Phi-4-mini-instruct-Q5_K_M.gguf | 2.6 GB | 5.7 | Slightly better reasoning, ~13% bigger; recommended for iPad / Mac |
Phi-4-mini-instruct-Q8_0.gguf | 3.8 GB | 8.5 | Near-FP16 quality; only worth it on Apple Silicon Mac |
Q4_K_M for general use. Phi-4-mini's reasoning quality holds up well at Q4_K_M. Avoid Q3 quants for this model — reasoning quality degrades noticeably.llama-cli.| Device | RAM | Q4_K_M tok/s | Notes |
|---|---|---|---|
| iPhone 15 Pro | 8 GB | ~18 tok/s | Smooth, but reasoning mode adds latency before the first token |
| iPhone 16 Pro | 8 GB | ~22 tok/s | Recommended phone target |
| iPad Pro M2 | 8 GB | ~38 tok/s | Snappy |
| MacBook Pro M3 | 16 GB | ~70 tok/s | Effectively instant |
Reference numbers — Q5_K_M and Q8_0 are roughly 15% / 40% slower than Q4_K_M.
https://huggingface.co/jc-builds/Phi-4-mini-instruct-GGUF/resolve/main/Phi-4-mini-instruct-Q4_K_M.gguf1huggingface-cli download jc-builds/Phi-4-mini-instruct-GGUF Phi-4-mini-instruct-Q4_K_M.gguf --local-dir .
2
3./llama-cli \
4 -m Phi-4-mini-instruct-Q4_K_M.gguf \
5 -p "If x^2 + 3x - 10 = 0, find x." \
6 -n 512 \
7 --temp 0.0--temp 0.0 and let the model deterministically work through the problem.1cat <<'EOF' > Modelfile
2FROM ./Phi-4-mini-instruct-Q4_K_M.gguf
3PARAMETER temperature 0.0
4PARAMETER top_p 1.0
5EOF
6ollama create phi-4-mini -f Modelfile
7ollama run phi-4-mini--rope-scaling yarn --rope-scale 2.0 in llama.cpp.temperature=0.0, top_p=1.0.
For chat / general output: temperature=0.7, top_p=0.9.--chat-template flag isn't required.<|system|>
{system}<|end|>
<|user|>
{user}<|end|>
<|assistant|>
{assistant}<|end|>e43431b (May 7, 2026).microsoft/Phi-4-mini-instruct safetensors checkpoint via huggingface-cli.convert_hf_to_gguf.py --outtype f16 (Phi-4 reuses the Phi-3 architecture path in convert).llama-quantize:
1llama-quantize Phi-4-mini-F16.gguf Phi-4-mini-instruct-Q4_K_M.gguf Q4_K_M
2llama-quantize Phi-4-mini-F16.gguf Phi-4-mini-instruct-Q5_K_M.gguf Q5_K_M
3llama-quantize Phi-4-mini-F16.gguf Phi-4-mini-instruct-Q8_0.gguf Q8_0Phi-4-mini by Microsoft Corporation. Licensed under the MIT License.