unsloth
Phi 4 mini instruct
Phi 4 mini instruct is a 3.84B dense phi3 model from unsloth. Configured context length is 131,072 tokens. License: mit. Quant sizes are the GGUF file bytes published on Hugging Face when a file exists.
Parameters3.8B
Context128K
Attentiongqa
Licensemit
32 layers · 8 KV heads · head dim 128 · GGUF repo · config
Quant file sizes
| Quant | File size | Source |
|---|---|---|
| BF16 | 7.15 GB | Hugging Face file bytes |
| Q8_0 | 3.80 GB | Hugging Face file bytes |
| Q6_K | 2.94 GB | Hugging Face file bytes |
| Q5_K_M | 2.65 GB | Hugging Face file bytes |
| Q4_K_M | 2.32 GB | Hugging Face file bytes |
| Q3_K_M | 1.97 GB | Hugging Face file bytes |
| Q2_K | 3.13 GB | Hugging Face file bytes |
On common machines
| Device | Verdict | Quant | Speed |
|---|---|---|---|
| GeForce RTX 4060 Ti 8GB | Runs | Q8_0 | 31–42 |
| GeForce RTX 3060 12GB | Runs | BF16 | 23–31 |
| GeForce RTX 4060 Ti 16GB | Runs great | BF16 | 18–25 |
| GeForce RTX 4090 | Runs great | BF16 | 63–86 |
| GeForce RTX 5090 | Runs great | BF16 | 113–154 |
| Apple M4 Pro | Runs great | BF16 | 17–23 |
| Apple M5 | Runs | BF16 | 9.6–13 |
| CPU only · DDR5-5600 | Runs on CPU | BF16 | 5.6–7.7 |
Smallest devices that fit it fully
- GeForce RTX 3050 6GB — Tight fit, Q8_0, 20–27 tok/s
- GeForce RTX 2060 6GB — Tight fit, Q8_0, 40–55 tok/s
- GeForce GTX 1660 Super — Tight fit, Q8_0, 40–55 tok/s
- GeForce GTX 1660 Ti — Tight fit, Q8_0, 34–47 tok/s
- Intel Arc A380 — Tight fit, Q8_0, 22–30 tok/s
- GeForce RTX 5060 Ti 8GB — Runs, Q8_0, 48–65 tok/s
Run it
Commands for the GeForce RTX 4060 Ti 16GB estimate (BF16).
llama.cpp
llama-server -hf unsloth/Phi-4-mini-instruct-GGUF:BF16 -c 8192 -ngl 32
Ollama
ollama run phi
LM Studio
lms get unsloth/Phi-4-mini-instruct-GGUF # Then load quant BF16