Leaderboard / Microsoft (Phi)

Phi-4-mini

Microsoft (Phi) · Phi-4 · released 2025-02-26 · data checked 2026-11-01 Needs verification

Phi-4-mini is a 3.8B-parameter dense model from Microsoft (Phi) (United States), released 2025-02-26 under the MIT license. It doesn't have enough reported benchmarks for an index score yet. It needs about 4 GB of memory at 4-bit with an 8K-token context.

Small LM Index
—
Needs 2 core benchmarks (has 1)
Parameters
3.8B
Dense
Price per 1M tokens
—
No hosted API on OpenRouter; self-host
Context window
128K
tokens

Benchmarks

Each bar shows this model's score. The tick marks the best tiny model on that benchmark. Sources: 1 reported by Microsoft (Phi). How we label sources.

MMLU-Pro Lab-reported Knowledge52.8
Class best: Qwen3.5 4B 79.1

Specifications

Lab
Microsoft (Phi) (US · United States)
Architecture
Dense transformer
Total parameters
3.8B
Active parameters
All (dense)
Size class
Tiny
Context window
128K tokens
Input modalities
text
Reasoning
Instruct (no thinking)
License
MIT
Openness
Open weights
Memory to run
~4 GB at 4-bit, 8K context (more sizes)
Hugging Face
343.6K downloads (30 days) · 878 likes

Compare with

Sources

Something wrong here? Report it.

Run it locally

Uses unsloth/Phi-4-mini-instruct-GGUF (Q4_K_M). Swap the tag for another size: BF16, Q2_K, Q2_K_L, Q3_K_M, Q4_K_M, Q5_K_M, Q6_K, Q8_0.

Ollama
ollama run hf.co/unsloth/Phi-4-mini-instruct-GGUF:Q4_K_M
llama.cpp
llama-server -hf unsloth/Phi-4-mini-instruct-GGUF:Q4_K_M
Then open http://localhost:8080 for a chat window.
MLX (Mac)
pip install -U mlx-lm
mlx_lm.chat --model mlx-community/Phi-4-mini-instruct-4bit
vLLM (GPU server)
vllm serve microsoft/Phi-4-mini-instruct
Full-precision weights, for a server GPU.

Open in LM Studio

Memory needed: weights, context cache and runtime buffers.

Quantization4K context32K context128K context
16-bit F168.7 GB12 GB25 GB
8-bit Q8_05.2 GB8.9 GB21 GB
4-bit Q4_K_M3.4 GB7.2 GB20 GB

Check it against your GPU, Mac or phone →