FitMyLLM
Microsoft/Dense

MicrosoftPhi-4-mini 3.8B

Phi-4 Mini — Microsoft's latest small model with strong reasoning and coding.

chatcodingreasoningThinkingTool Use
3.8B
Parameters
125K
Context length
9
Benchmarks
6
Quantizations
1.5M
HF downloads
Architecture
Dense
Released
2025-02-27
Layers
32
KV Heads
8
Head Dim
128
Family
phi

Quantization Options

Context length:
QuantBitsVRAM @ 16KQuality
Q4_K_M4.89
4.3 GB
2.8 + 1.5 KV
good
Q5_K_S5.57
4.6 GB
3.1 + 1.5 KV
good
Q5_K_M5.7
4.7 GB
3.2 + 1.5 KV
good
Q6_K6.56
5.1 GB
3.6 + 1.5 KV
excellent
Q8_08.5
6.0 GB
4.5 + 1.5 KV
lossless
FP1616
9.6 GB
8.1 + 1.5 KV
lossless

Select your GPU above to see speed estimates and compatibility for each quantization.

Deploying for a team or in production? Size GPUs, cost & scaling in Enterprise →
Ready to run this?Rent by the hour

Rent a GPU and run Phi-4-mini 3.8B now

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Benchmarks (9)

Run this model

Easiest way to get started·Beginners
Docs ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run phi4-mini:3.8b-q4_K_M

Downloads and runs automatically. Add --verbose for speed stats.

Setup guide
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

NVIDIA Tesla C2050
3 GB VRAM • 144 GB/s
NVIDIA
NVIDIA Tesla M2050
3 GB VRAM • 148 GB/s
NVIDIA
NVIDIA Tesla S2050
3 GB VRAM • 148 GB/s
NVIDIA

Find the best GPU for Phi-4-mini 3.8B

Build Hardware for Phi-4-mini 3.8B

Phi-4 Mini — Microsoft's latest small model with strong reasoning and coding.

Spec sheet

Phi-4-mini 3.8B — 3.8B Dense.

Specifications
Parameters
3.8B
Architecture
Dense Transformer
Context Length
125K tokens
Capabilities
chat, coding, reasoning
Release Date
2025-02-27
Provider
Microsoft
Family
phi
VRAM requirements
QuantBPWVRAMQuality
Q4_K_M4.892.8 GB94%
Q5_K_S5.573.1 GB96%
Q5_K_M5.73.2 GB96%
Q6_K6.563.6 GB97%
Q8_08.54.5 GB100%
FP16168.1 GB100%
Benchmark scores
HumanEval80.5
MMLU-PRO52.8
MATH71.2
IFEval66.8
BBH46.5
GPQA24.6
MUSR16.8
BigCodeBench33.1
Arena Elo1465
Run command

Run Phi-4-mini 3.8B locally with Ollama — needs 2.8 GB VRAM at Q4_K_M:

$ollama run phi4-mini:3.8b
Compatible GPUs
30 @ Q4_K_M