phi
3.8B parameters
Commercial OK

Phi-4 Mini 4B

Microsoft's edge-tier Phi-4 variant. 3.8B params; designed for phone / tablet / Pi deployment. Strong reasoning per parameter — Phi family's traditional advantage carries to the smallest tier.

License: MIT·Released Feb 25, 2026·Context: 131,072 tokens

Overview

Microsoft's edge-tier Phi-4 variant. 3.8B params; designed for phone / tablet / Pi deployment. Strong reasoning per parameter — Phi family's traditional advantage carries to the smallest tier.

Family & lineage

How this model relates to others in its lineage. Family members share architecture and training-data roots; parent / children edges record direct distillation or fine-tune relationships.

Parent / base model
Phi-4 14B14B
Consumer

Strengths

  • Edge-tier deployment (phone, Pi)
  • MIT license
  • Strong reasoning per parameter

Weaknesses

  • Small parameter count limits open-ended generation

Quantization variants

Each quantization trades model quality for file size and VRAM. Q4_K_M is the most popular starting point.

QuantizationFile sizeVRAM required
Q4_K_M2.4 GB4 GB

Get the model

HuggingFace

Original weights

huggingface.co/microsoft/Phi-4-mini

Source repository — direct quantization required.

Hardware that runs this

Cards with enough VRAM for at least one quantization of Phi-4 Mini 4B.

Compare alternatives

Models worth comparing

Same parameter band, plus what's one tier above and below — so you can decide what actually fits your hardware.

Step down
Smaller — faster, runs on weaker hardware

Frequently asked

What's the minimum VRAM to run Phi-4 Mini 4B?

4GB of VRAM is enough to run Phi-4 Mini 4B at the Q4_K_M quantization (file size 2.4 GB). Higher-quality quantizations need more.

Can I use Phi-4 Mini 4B commercially?

Yes — Phi-4 Mini 4B ships under the MIT, which permits commercial use. Always read the license text before deployment.

What's the context length of Phi-4 Mini 4B?

Phi-4 Mini 4B supports a context window of 131,072 tokens (about 131K).

Source: huggingface.co/microsoft/Phi-4-mini

Reviewed by RunLocalAI Editorial. See our editorial policy for how we research and verify model claims.