Phi-4 Mini VRAM Requirements
Phi-4 Mini needs about 4.1 GB of VRAM at Q4_K_M with an 8K context: 2.2 GB for weights, 1.0 GB for the KV cache and 0.9 GB of runtime overhead. At Q8_0 it needs 5.7 GB and at full FP16 precision 9.1 GB. The smallest GPU that runs it fully is the RTX 3050 8GB.
4.1 GB VRAM
Phi-4 Mini at Q4_K_M with 8K context and the KV cache in FP16.
- Weights 2.2 GB
- KV cache 1.0 GB
- Runtime overhead 0.9 GB
Which GPUs can run it
- RTX 3060 12GBFits~80 tok/s
- RTX 4060 Ti 16GBFits~64 tok/s
- RTX 3090 24GBFits~199 tok/s
- Radeon RX 7900 XTX 24GBFits~174 tok/s
- RTX 4090 24GBFits~213 tok/s
- RTX 5090 32GBFits~360 tok/s
- RTX 6000 Ada 48GBFits~204 tok/s
- A100 80GBFits~403 tok/s
- H100 80GB SXMFits~611 tok/s
- Ryzen AI Max+ 395 128GBFits~53 tok/s
- Apple M4 Max 128GBFits~119 tok/s
- Apple M5 Max 128GBFits~133 tok/s
- RTX PRO 6000 Blackwell 96GBFits~360 tok/s
- NVIDIA DGX Spark 128GBFits~56 tok/s
- Apple M3 Ultra 512GBFits~175 tok/s
Phi-4 Mini VRAM by quantization
Total memory with an FP16 KV cache. "Smallest tier" is the smallest standard VRAM size with a 6% safety margin at 8K.
| Quantization | Bits/weight | Weights | Total at 8K | Total at 32K | Smallest tier |
|---|---|---|---|---|---|
| Q4_K_M | 4.85 | 2.2 GB | 4.1 GB | 7.1 GB | 6 GB |
| Q5_K_M | 5.69 | 2.5 GB | 4.5 GB | 7.5 GB | 6 GB |
| Q6_K | 6.59 | 2.9 GB | 4.9 GB | 7.9 GB | 6 GB |
| Q8_0 | 8.50 | 3.8 GB | 5.7 GB | 8.7 GB | 8 GB |
| FP16 / BF16 | 16.00 | 7.2 GB | 9.1 GB | 12.1 GB | 10 GB |
| Q3_K_M | 3.91 | 1.7 GB | 3.7 GB | 6.7 GB | 4 GB |
| Q2_K | 3.00 | 1.3 GB | 3.3 GB | 6.3 GB | 4 GB |
VRAM by context length
At Q4_K_M. The KV cache grows linearly with context: 0.13 GB per 1,000 tokens in FP16.
| Context | KV cache (FP16) | KV cache (Q8_0) | Total, FP16 cache | Total, Q8_0 cache |
|---|---|---|---|---|
| 4K tokens | 0.5 GB | 0.3 GB | 3.6 GB | 3.4 GB |
| 8K tokens | 1.0 GB | 0.5 GB | 4.1 GB | 3.6 GB |
| 32K tokens | 4.0 GB | 2.1 GB | 7.1 GB | 5.2 GB |
| 128K tokens | 16.0 GB | 8.5 GB | 19.1 GB | 11.6 GB |
GPUs that can run Phi-4 Mini
At Q4_K_M with 8K context. "Best quant" is the highest-quality format that fits fully; "max context" is at Q4_K_M.
| GPU | Usable memory | Status | Best quant | Max context | Speed |
|---|---|---|---|---|---|
| RTX 3050 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~50 tok/s |
| RTX 4060 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~61 tok/s |
| RTX 4060 Ti 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~64 tok/s |
| Radeon RX 7600 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~54 tok/s |
| RTX 3060 Ti 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~98 tok/s |
| RTX 3070 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~98 tok/s |
| RTX 5060 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~98 tok/s |
| RTX 5060 Ti 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~98 tok/s |
| RTX 3070 Ti 8GB | 8.0 GB | Fits | Q8_0 | 35K | ~132 tok/s |
| Intel Arc B570 10GB | 10.0 GB | Fits | FP16 / BF16 | 50K | ~65 tok/s |
| RTX 3080 10GB | 10.0 GB | Fits | FP16 / BF16 | 50K | ~163 tok/s |
| Apple M4 16GB | 10.7 GB | Fits | FP16 / BF16 | 55K | ~27 tok/s |
| RTX 2080 Ti 11GB | 11.0 GB | Fits | FP16 / BF16 | 57K | ~134 tok/s |
| RTX 2060 12GB | 12.0 GB | Fits | FP16 / BF16 | 65K | ~74 tok/s |
About Phi-4 Mini
A 3.8B model trained heavily on synthetic reasoning data, with a 200K vocabulary for better multilingual coverage. MIT-licensed, so it suits commercial edge use.
| Spec | Value |
|---|---|
| Parameters | 3.84B |
| Layers | 32 |
| Hidden size | 3072 |
| Attention heads / KV heads | 24 / 8 |
| Head dimension | 128 |
| Vocabulary | 200,064 |
| Max context (used here) | 128K tokens |
| KV cache per token (FP16) | 128 KB |
| Released | 2025-02 |
| License | MIT |
Phi-4 Mini VRAM: common questions
What is the smallest GPU for Phi-4 Mini?
About 4.1 GB at Q4_K_M with an 8K context, so 6 GB cards are comfortable. A 4 GB card works with about 5K of context.
How much VRAM does Phi-4 Mini need?
About 4.1 GB at Q4_K_M with an 8K context, 5.7 GB at Q8_0 and 9.1 GB at FP16. Longer contexts add 0.13 GB per 1,000 tokens with an FP16 cache.
What is the cheapest GPU that can run Phi-4 Mini?
The smallest listed device that fits it fully at Q4_K_M with 8K context is the RTX 3050 8GB (8.0 GB usable).