Phi-4 Mini 3.8B hardware requirements
3.84B parameters. Needs about 4 GB at Q4_K_M with 8K context.
Parameters3.84BDense
Q4_K_M · 8K4 GBthe usual download
FP16 · 8K9.4 GBfull precision
Runs well on51/51GPUs and Macs we track
Memory needed at each quantization
Weights, KV cache and runtime overhead, at 8K and 32K tokens of context.
| Quant | Quality | 8K context | 32K context | |
|---|---|---|---|---|
| FP16 | Full quality | 9.4 GB | 12.6 GB | |
| Q8_0 | Near-lossless | 5.8 GB | 9 GB | |
| Q6_K | Excellent | 4.8 GB | 8 GB | |
| Q5_K_M | Very good | 4.4 GB | 7.6 GB | |
| Q4_K_M | Good, most popular | 4 GB | 7.2 GB | |
| Q3_K_M | Noticeably degraded | 3.6 GB | 6.8 GB | |
| Q2_K | Heavily degraded | 3.1 GB | 6.3 GB |
Run it with Ollama
Downloads Q4_K_M by default.
ollama run phi4-mini:3.8b
Model card
microsoft/Phi-4-mini-instruct on Hugging Face: licence, prompt format and GGUF builds.
Run it in the cloud
Run Phi-4 Mini 3.8B on a rented GPU today.
It needs about 4 GB at Q4_K_M: a rented RTX 3090 / RTX 4090 runs it for about $0.18 to $0.89 an hour.
Every GPU and Mac checked
Sorted by memory. Bars show how much of each card Phi-4 Mini 3.8B fills at the best quant that fits.
51 Runs well
NameMemory usedBest quantSpeed
NVIDIA RTX 50608 GBQ8_0 · 5.8 GB~66 tok/s
NVIDIA RTX 5060 Ti 8GB8 GBQ8_0 · 5.8 GB~66 tok/s
NVIDIA RTX 3060 Ti8 GBQ8_0 · 5.8 GB~66 tok/s
NVIDIA RTX 30708 GBQ8_0 · 5.8 GB~66 tok/s
NVIDIA RTX 4060 Ti 8GB8 GBQ8_0 · 5.8 GB~42 tok/s
NVIDIA RTX 40608 GBQ8_0 · 5.8 GB~40 tok/s
NVIDIA RTX 3080 10GB10 GBFP16 · 9.4 GB~59 tok/s
NVIDIA RTX 2080 Ti11 GBFP16 · 9.4 GB~48 tok/s
NVIDIA RTX 3080 Ti12 GBFP16 · 9.4 GB~71 tok/s
NVIDIA RTX 507012 GBFP16 · 9.4 GB~53 tok/s
NVIDIA RTX 407012 GBFP16 · 9.4 GB~39 tok/s
NVIDIA RTX 4070 Super12 GBFP16 · 9.4 GB~39 tok/s
NVIDIA RTX 4070 Ti12 GBFP16 · 9.4 GB~39 tok/s
Intel Arc B58012 GBFP16 · 9.4 GB~36 tok/s
NVIDIA RTX 3060 12GB12 GBFP16 · 9.4 GB~28 tok/s
NVIDIA RTX 508016 GBFP16 · 9.4 GB~75 tok/s
NVIDIA RTX 5070 Ti16 GBFP16 · 9.4 GB~70 tok/s
NVIDIA RTX 4080 Super16 GBFP16 · 9.4 GB~58 tok/s
NVIDIA RTX 408016 GBFP16 · 9.4 GB~56 tok/s
NVIDIA RTX 4070 Ti Super16 GBFP16 · 9.4 GB~53 tok/s
AMD Radeon RX 907016 GBFP16 · 9.4 GB~50 tok/s
AMD Radeon RX 9070 XT16 GBFP16 · 9.4 GB~50 tok/s
AMD Radeon RX 7800 XT16 GBFP16 · 9.4 GB~49 tok/s
Intel Arc A770 16GB16 GBFP16 · 9.4 GB~44 tok/s
AMD Radeon RX 6800 XT16 GBFP16 · 9.4 GB~40 tok/s
NVIDIA RTX 5060 Ti 16GB16 GBFP16 · 9.4 GB~35 tok/s
AMD Radeon RX 9060 XT 16GB16 GBFP16 · 9.4 GB~25 tok/s
NVIDIA RTX 4060 Ti 16GB16 GBFP16 · 9.4 GB~23 tok/s
AMD Radeon RX 7600 XT16 GBFP16 · 9.4 GB~23 tok/s
Apple M5 (16GB)16 GBFP16 · 9.4 GB~12 tok/s
Apple M4 (16GB)16 GBFP16 · 9.4 GB~9 tok/s
Apple M1 (16GB)16 GBFP16 · 9.4 GB~5 tok/s
AMD Radeon RX 7900 XT20 GBFP16 · 9.4 GB~63 tok/s
NVIDIA RTX 409024 GBFP16 · 9.4 GB~79 tok/s
NVIDIA RTX 3090 Ti24 GBFP16 · 9.4 GB~79 tok/s
AMD Radeon RX 7900 XTX24 GBFP16 · 9.4 GB~75 tok/s
NVIDIA RTX 309024 GBFP16 · 9.4 GB~73 tok/s
Apple M4 Pro (24GB)24 GBFP16 · 9.4 GB~21 tok/s
NVIDIA RTX 509032 GBFP16 · 9.4 GB~140 tok/s
AMD Radeon AI PRO R970032 GBFP16 · 9.4 GB~50 tok/s
Apple M2 Pro (32GB)32 GBFP16 · 9.4 GB~16 tok/s
Apple M4 Max (36GB)36 GBFP16 · 9.4 GB~32 tok/s
Apple M3 Pro (36GB)36 GBFP16 · 9.4 GB~12 tok/s
Apple M4 Pro (48GB)48 GBFP16 · 9.4 GB~21 tok/s
Apple M4 Max (64GB)64 GBFP16 · 9.4 GB~43 tok/s
Apple M3 Max (64GB)64 GBFP16 · 9.4 GB~31 tok/s
Apple M1 Max (64GB)64 GBFP16 · 9.4 GB~31 tok/s
NVIDIA RTX PRO 6000 Blackwell96 GBFP16 · 9.4 GB~140 tok/s
Apple M4 Max (128GB)128 GBFP16 · 9.4 GB~43 tok/s
Apple M2 Ultra (192GB)192 GBFP16 · 9.4 GB~63 tok/s
Apple M3 Ultra (256GB)256 GBFP16 · 9.4 GB~64 tok/s