Phi-4 Mini (3.8B) — VRAM, speed & local setup
Written by Jakub Rusinowski · Last updated
Significant upgrade over Phi-3.5 Mini in reasoning and coding. Tiny footprint makes it ideal for iPhone, Android, and laptops without a GPU. MIT licensed for commercial use.
Phi-4 Mini (3.8B) needs about 3 GB of VRAM at Q4_K_M — quantized weights plus framework overhead, before any KV cache. On Apple Silicon that figure comes out of unified memory.
VRAM and speed by quantization
Quoted against NVIDIA RTX 4090 (24 GB). Includes the KV cache at 8K context, so it reads higher than the headline figure.
| Quant | Memory | VRAM | Speed (est.) | Fit |
|---|---|---|---|---|
| Q2_K 2.63 bpw | 3.1 GB | ~217 tok/s | Fits | |
| Q3_K_M 3.41 bpw | 3.5 GB | ~196 tok/s | Fits | |
| Q4_K_M 4.83 bpw | 4.2 GB | ~167 tok/s | Fits | |
| Q5_K_M 5.67 bpw | 4.6 GB | ~153 tok/s | Fits | |
| Q6_K 6.56 bpw | 5 GB | ~141 tok/s | Fits | |
| Q8_0 8.50 bpw | 5.9 GB | ~121 tok/s | Fits | |
| F16 16.00 bpw | 9.5 GB | ~77 tok/s | Fits |
Black marker = usable memory on the NVIDIA RTX 4090 (24 GB). Estimates from the memory-bandwidth roofline on the methodology page. Phi-4 Mini (3.8B) VRAM calculator →
Get Phi-4 Mini (3.8B) running
The cheapest catalogued GPU that runs Phi-4 Mini (3.8B) is the Intel Arc B570 (10 GB).
or compare on Vast.ai from $0.35/hr (typical low · varies)
As an Amazon Associate we earn from qualifying purchases. Cloud GPU links are referral links — we may earn a commission at no extra cost to you.
How to run Phi-4 Mini (3.8B)
Install Ollama, then run:
ollama run phi4-miniSpecifications
Curated — A hand-written entry from before this catalogue recorded its sources. The figures are long-standing but their provenance is not on file.
- Parameters
- 3.8 Billion
- Context window
- 128,000
- Architecture
- Dense
- Provider
- Microsoft
- Licence
- MIT
- Practical deployment
- Edge device (phone, SBC)
- Specified at
- Q4_K_M
- System RAM
- 6 GB
- Record updated
- 2025-02-04
Commercial use permitted. No usage restrictions beyond attribution.
Quality and use cases
Scores as published by the model’s authors or an independent evaluator — quality, not throughput, and not measured by us.
Can I run Phi-4 Mini (3.8B) on my GPU?
Phi-4 Mini (3.8B) — frequently asked questions
How much VRAM does Phi-4 Mini (3.8B) need?
About 3 GB at Q4_K_M — quantized weights plus framework overhead, before any KV cache. The cache grows with context length and is added on top; the table above folds it in. Apple Silicon counts unified memory toward the same figure.
Does Phi-4 Mini (3.8B) run on an RTX 4090 (24 GB)?
Yes. Phi-4 Mini (3.8B) needs about 3 GB at Q4_K_M, inside a 24 GB card, at an estimated 167 tokens/sec.
How do I run Phi-4 Mini (3.8B) locally?
Install Ollama and run `ollama run phi4-mini`. That pulls the weights and starts a local OpenAI-compatible endpoint; after the download nothing leaves the machine.