Phi-4 Mini (3.8B) — VRAM, Speed & Local Setup

Written by Jakub Rusinowski · Last updated February 4, 2025

Model libraryPhi-4 Mini → Phi-4 Mini (3.8B)

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.

Specifications

Parameters3.8 Billion
Context window128,000
ArchitectureDense
ProviderMicrosoft
LicenceMIT
Specified atQ4_K_M
System RAM6 GB
Record updated2025-02-04

Licence

MITcommercial use permitted. Commercial use permitted. No usage restrictions beyond attribution.

VRAM and Speed by Quantization

Modelled on a reference NVIDIA RTX 4090 (24 GB), at 8K context. Speed figures are ESTIMATES from the memory-bandwidth roofline described on the methodology page, not benchmarks we ran — rows marked measured come from published or reader-submitted runs. VRAM here includes the KV cache, so it reads higher than the headline figure above, which does not.

QuantWeightsVRAM neededEst. speedFit on 24 GB
Q2_K1.2 GB3.1 GB~217 tok/s (est.)Fits comfortably
Q3_K_M1.6 GB3.5 GB~196 tok/s (est.)Fits comfortably
Q4_K_M2.3 GB4.2 GB~167 tok/s (est.)Fits comfortably
Q5_K_M2.7 GB4.6 GB~153 tok/s (est.)Fits comfortably
Q6_K3.1 GB5.0 GB~141 tok/s (est.)Fits comfortably
Q8_04.0 GB5.9 GB~121 tok/s (est.)Fits comfortably
F167.6 GB9.5 GB~77 tok/s (est.)Fits comfortably

Want the memory numbers alone, at every quantization level and your own context length? Use the Phi-4 Mini (3.8B) VRAM calculator.

Buy This HardwareIntel Arc B570 10GB — 10 GB VRAM · 150 W board powerDeploy in the Cloud NowRTX 4090 on RunPod — from $0.34/hr · rate checked 2026-07

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.

Recommended GPU

The cheapest catalogued GPU that runs Phi-4 Mini (3.8B) is the Intel Arc B570 (10 GB).

Affiliate disclosure: Some links on this page are affiliate links — if you buy through them, LLM Configurator may earn a commission at no extra cost to you. As an Amazon Associate, LLM Configurator earns from qualifying purchases.
Intel Arc B570 10GB
10 GB VRAM · 150 W board power
2026 prices are volatile — check the current listing.
Check price on Amazon

How to Run Phi-4 Mini (3.8B)

Install Ollama, then run:

ollama run phi4-mini

Weights on Hugging Face: microsoft/Phi-4-mini-instruct.

Best for: mobile, edge devices, reasoning, fast chat.

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.

← All Phi-4 Mini models | VRAM calculator | Check your own hardware