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

QuantBitsVRAMQuality
Q4_K_M4.892.8 GBgood
Q5_K_S5.573.1 GBgood
Q5_K_M5.73.2 GBgood
Q6_K6.563.6 GBexcellent
Q8_08.54.5 GBlossless
FP16168.1 GBlossless

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

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)

Arena Elo1465
HumanEval80.5
MATH71.2
IFEval66.8
MMLU-PRO52.8
BBH46.5
BigCodeBench33.1
GPQA24.6
MUSR16.8

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.8B3.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%
§ 01BENCHMARK SCORES
HumanEval80.5
MMLU-PRO52.8
MATH71.2
IFEval66.8
BBH46.5
GPQA24.6
MUSR16.8
BigCodeBench33.1
Arena Elo1465.0
§ 02RUN 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