PhiText LLMMITFeb 2025

Phi-4 Mini 3.8B

Phi-4 Mini is Microsoft's February 2025 successor to Phi-3.5 Mini — same 3.8 B footprint but with first-class function calling, a 128K context window, and a tokenizer overhaul that doubles non-English efficiency. It beats Phi-3.5 Mini on every reasoning benchmark and approaches Phi-4 14B on math while running at ~2.3 GB VRAM at Q4_K_M. MIT licensed. The realistic deployment target: AI PCs with NPUs, mini PCs, edge servers, and even a Raspberry Pi 5 via llama.cpp. For a Lagos solo dev on a 6 GB laptop GPU, this is the local agent model that actually fits.

Parameters
3.8B
dense
Context
128K
tokens
Min VRAM (Q4)
2.3 GB
weights only
Run locally?
YES
fits ≤48 GB GPU
Quick answer

What hardware do I need to run Phi-4 Mini 3.8B?

Phi-4 Mini 3.8B needs at minimum 2.3 GB of VRAM at Q4_K_M quantization (8.4 GB at FP16). The cheapest GPU that comfortably fits with KV-cache headroom is the Intel Arc A380 6GB (6 GB VRAM, $139 MSRP). Community benchmark submissions are open. This model fits a single consumer GPU under 48 GB, so a one-card build works.

Source: MyAIHardware model card: Phi-4 Mini 3.8B (Phi, 3.8B params)As of 2025-02-26

TL;DR, what to buy

Recommended GPU
Intel Arc A380 6GB
6 GB VRAM · $139 MSRP
Min VRAM at Q4_K_M
2.3 GB
+ ~20-30% headroom for KV cache
Best measured speed
no community benchmarks yet
submit yours below

VRAM requirements by quantization

Weights only. Add ~20-30% for KV cache at typical context lengths.

QuantVRAMQualityNotes
FP168.4 GBReferenceTraining-precision weights
Q8_04.2 GBNear-lossless8-bit, ~0.1% perplexity hit
Q6_K3.4 GBVery high6-bit, near Q8 quality
Q5_K_M2.9 GBHighStrong middle ground
Q4_K_M2.3 GBBalanced (recommended)Default for local deployments
Q4_02.4 GBLegacy 4-bitOlder GGUF, kept for compatibility
Q3_K_M1.8 GBLossyWhen VRAM is very tight
Q2_K1.3 GBExtremeRescue option, quality degrades visibly
Open the VRAM calculator with KV cache + batch size

GPUs that fit this model

Filtered from MyAIHardware's GPU database. FP16 needs 8.4 GB; Q4_K_M needs 2.3 GB.

At full precision (FP16)

  • Intel Arc B57010 GB · $219
  • Intel Arc A580 12GB (variant) [VERIFY]12 GB · $219
  • Intel Arc B58012 GB · $249
  • NVIDIA GeForce RTX 2060 (12 GB refresh)12 GB · $299
  • Intel Arc Pro B5016 GB · $299
  • AMD RX 7600 XT16 GB · $329
  • Intel Arc A770 16GB16 GB · $329
  • NVIDIA GeForce RTX 3060 (12 GB)12 GB · $329
  • AMD RX 9060 XT 16GB16 GB · $349
  • Intel Arc B770 16GB [VERIFY]16 GB · $349

At Q4_K_M quantization

  • Intel Arc A380 6GB6 GB · $139
  • NVIDIA GeForce RTX 3050 (6 GB)6 GB · $169
  • Intel Arc A580 8GB8 GB · $179
  • Intel Arc A750 8GB8 GB · $199
  • Intel Arc B57010 GB · $219
  • Intel Arc A580 12GB (variant) [VERIFY]12 GB · $219
  • NVIDIA GeForce GTX 1660 SUPER6 GB · $229
  • Intel Arc B58012 GB · $249
  • NVIDIA GeForce RTX 3050 (8 GB)8 GB · $249
  • AMD RX 76008 GB · $269
  • NVIDIA RTX 5060 8GB8 GB · $299
  • NVIDIA RTX 4060 8GB8 GB · $299

Community benchmarks

We don't have community benchmarks for this exact model yet.

No benchmarks yet for this exact model. Submit your own measurement.

Where to download

Official weights + popular runtime tags.

Hugging Face
Official weights
Open on Hugging Face
Ollama
One-line install
ollama pull phi4-mini
LM Studio
GGUF format
lms get bartowski/Phi-4-mini-instruct-GGUF

Related tutorials

Step-by-step guides that use this model.

Compare with other open models

Models in a similar size or capability class.

Cite this model card

Use these in papers, blog posts, or internal docs.

BibTeX
@misc{phi-4-mini-2025,
  title={Phi-4 Mini 3.8B},
  author={Microsoft Research},
  year={2025},
  url={https://huggingface.co/microsoft/Phi-4-mini-instruct}
}
APA
Microsoft Research (2025). Phi-4 Mini 3.8B [Model card]. Hugging Face. https://huggingface.co/microsoft/Phi-4-mini-instruct
Plain text
Phi-4 Mini 3.8B (Phi, Microsoft Research, 2025). Available at https://huggingface.co/microsoft/Phi-4-mini-instruct.
Browse the full model catalog
30 deep-dive pages covering every major open model.
All 30 models