whatmodel.sh / Phi-4-mini 3.8B
Phi-4-mini 3.8B
↗ share
+ contribute
Phi-4-mini 3.8B is an open-weights language model from Microsoft, released February 2025. Its published size is 3.84B parameters and a 128k-token context window. Licence: mit.
$ how it compares
The LLMs ranked either side of Phi-4-mini 3.8B, out of 828 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 557 | 44±2 | local | |||
| 558 | 44±1 | local | |||
| 559 | 44±1 | api $0.13/M +local | |||
| 560 | 44±1 | local | |||
| 561 | 44±1 | local | |||
| more from Microsoft | |||||
| 252 | 59±1 | local | |||
| 261 | 58±1 | api $0.22/M +local | |||
| 365 | 53±1 | api $0.087/M +local | |||
$ what it's good at
agent tasks▁▃▃▆█▆▅▅▅▄▃▁ #294 of 300 · 2.3% of its score · 3 tests
Beats QwQ-32B-Preview, DeepSeek-Coder-V2 Lite Instruct (16B-A2.4B) here, though they rank higher overall. Trails Granite 4.0 350M, Qwen2.5 0.5B Instruct, Granite 4.0 H 350M here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BFCL v3 | 28.2% ✎ | ▁▁▃▁▁▃▅█▅▄▁▁ beats 6/114 | 0.9% |
| BFCL V4 (2025-11-03 archive, models absent from the December archive) | 21.7% ✎ | ▃··▅▃▃·▅·▃·█ beats 0/10 | 0.8% |
| BFCL (version not stated) lab | 70.3% ✎ | ▄▆▄▃·█▆·▄··▂ beats 7/17 | 0.6% |
coding▁▁▁▃▆██▇▆▄▃▁ #309 of 458 · 8.0% of its score · 4 tests
Beats Solar Open 100B (102B-A12B), GLM-4.7-Flash, Qwen3 4B Instruct 2507 here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, WizardLM 70B V1.0 here, though they rank lower overall.
chat & writing█··········█ #1 of 2 * · 0.6% of its score · 1 test
| test | result | vs the others in its run | counts |
|---|---|---|---|
| IFEval (aggregation unspecified) lab | 70.1% ✎ | ▁▁▃▁▃▄▄▆█▃▂▁ beats 32/141 | 0.6% |
math▁▂▃▅▆▅▄█▄▁▁▁ #279 of 398 · 17% of its score · 5 tests
Beats Molmo 2 8B, DeepSeek-Coder-V2 Instruct (0724), Llama 3.1 Nemotron 70B Instruct here, though they rank higher overall. Trails DeepSeek R1 Distill Qwen 1.5B, Granite 8B Code Base (4K), Mixtral 8x7B v0.1 (base) here, though they rank lower overall.
other tests27 not in a task · 71% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ARC Challenge lab | 83.7% ✎ | ▂▂▂█▂···▄··▂ beats 6/10 | 9.5% |
| MMLU lab | 67.3% ✎ | █▄█▄▄▄·▄▄··▄ beats 6/10 | 6.2% |
| CLIcK Korean (Daekeun Kim) | 42.8% ✎ | ▆▄▄▄█▄▂·▄█·▄ beats 0/23 | 6.1% |
| BIG-Bench Hard lab | 70.4% ✎ | ██▄·█▄·▄▄··▄ beats 8/10 | 5.7% |
| HAE-RAE 1.0 (Daekeun Kim) | 44.5% ✎ | ▄▄▄▂▂█▂▄▂█▂▄ beats 1/22 | 5.5% |
| OpenBookQA lab | 79.2% ✎ | ▂··▄█▂·▂···▄ beats 1/10 | 5.5% |
| MMLU-Pro lab | 52.8% ✎ | █▄▄·█▄▄▄·▄·▄ beats 8/10 | 3.8% |
| Multilingual MMLU (Microsoft) lab | 49.3% ✎ | █▄▄██··█···▄ beats 2/10 | 3.5% |
19 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| CPTUB average (SpeakLeash, 0-5 judge scale) | 43.4% ✎ | ▁▂▃▂▃█▃▆▅▄▂▃ beats 11/95 | 3.1% |
| GPQA Diamond lab | 36.9% ✎ | ▁▁▁▁▂▄▅▅███▄ beats 38/310 | 2.8% |
| Polish EQ-Bench v2 (SpeakLeash) | 50.8% ✎ | ▁··▁▁▂▂▆▅▆█▆ beats 25/70 | 2.4% |
| WinoGrande lab | 67.0% ✎ | ▃····▃▃█▃·▅▅ beats 6/10 | 2.3% |
| HellaSwag lab | 69.1% ✎ | ▃▅█·▃▃▃···▃▃ beats 0/10 | 2.1% |
| BoolQ lab | 81.2% ✎ | ▃··▃··██▃·▃▃ beats 7/10 | 2.0% |
| Social IQA lab | 72.5% ✎ | ▃·▃▅▅█·▃···▃ beats 2/10 | 1.9% |
| BRIDGE clinical text, zero-shot average (87 tasks) | 24.5% ✎ | ▁▁▁▁▁▂▃▃▄▆█▃ beats 17/97 | 1.8% |
| KCL-Essay vanilla | 6.0% ✎ | ▃···▁▃▂█▂▃▃▂ beats 0/23 | 1.3% |
| GPQA (subset unspecified) lab | 25.2% ✎ | █··▄▂··▂▂··▄ beats 3/10 | 1.0% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 66.5% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 127/276 | 0.9% |
| BigCodeBench (Complete) lab | 43.0% ✎ | ▂▁▁▃▂▅▇█▅▂▂▂ beats 35/60 | 0.9% |
| TruthfulQA MC2 lab | 66.4% ✎ | ▂·█▂▃▄····▂▂ beats 6/10 | 0.6% |
| PIQA lab | 77.6% ✎ | ▃·▅·▃█·▃▅··▃ beats 4/10 | 0.6% |
| BigCodeBench (Instruct) lab | 33.8% ✎ | ▁▁··▁▁▂▅█▅▅▅ beats 20/49 | 0.6% |
| KMMLU-HARD (Daekeun Kim, zero-shot) | 25.3% ✎ | █···▁▁▁▂▃·▆▂ beats 5/23 | 0.5% |
| KCL-MCQA vanilla | 22.0% ✎ | ▃···█▂▆▆██▆▂ beats 0/23 | 0.5% |
| Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate) | 96.6% ✎ | ▁▁▂▃▄▄█▆▃▂▂▁ beats 96/140 | 0.3% |
| Vectara hallucination leaderboard (HHEM-2.3, factual consistency rate) | 76.5% ✎ | ▃▂▁▂▅█▂▃▄▃▁▁ beats 1/98 | 0.0% |
$ where to run it
Through an API
api · Microsoft Azure · $0.13/M · $0.075 in / $0.3 out per 1M tokens · 128k context · azure.microsoft.com ↗ · price sourceUSD per 1M tokens, Azure AI Foundry Models pay-as-you-go (Microsoft models table), 'Phi-4-mini' (Azure model id Phi-4-mini-instruct, GA), 128K context: input $0.075, output $0.30, region US East. Fine-tuned hosting/training rates excluded. Currency: USD. Microsoft Azure official pricing page (price cells carry the amounts in the page's own data), observed 2026-09-25.
llama.cpp · recommended
version
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run Phi-4-mini 3.8B · needs ~2.5 GB · from huggingface.co/lmstudio-communitychat in the terminal
llama cli -hf lmstudio-community/Phi-4-mini-instruct-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf lmstudio-community/Phi-4-mini-instruct-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Phi-4-mini 3.8B · needs ~2.5 GB · from huggingface.co/lmstudio-community
- Or download it in the terminal
lms get https://huggingface.co/lmstudio-community/Phi-4-mini-instruct-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Phi-4-mini 3.8B · needs ~2.8 GB · from ollama.comchat in the terminal
ollama run phi4-mini:3.8b
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Phi-4-mini 3.8B · needs ~2.2 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/Phi-4-mini-instruct-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/Phi-4-mini-instruct-4bit
Official weights and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · microsoft/Phi-4-mini-instruct… 59%, Microsoft — Phi-4-Mini Techni… 16%, Daekeun Kim Korean LLM benchm… 12% and 7 more
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
| source | results | share of the score |
|---|---|---|
| 16 | 59% | |
| 11 | 16% | |
| 3 | 12% | |
| 1 | 3% | |
| 1 | 2% | |
| 2 | 2% | |
| 1 | 2% | |
| 2 | 2% | |
| 1 | 1% | |
| 2 | 0% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 43.7 |
$ quantization evidence · 2 measurements
How much of the full-precision result a quantized version kept, measured within one study. Rows from the same study share a table and aren't independent.
| precision | test | full → quantized | kept | |
|---|---|---|---|---|
| FP8 W8A8 dynamic (weights symmetric static per-channel, activations symmetric dynamic per-token) | MMLU with chain-of-thought prompting (lm-evaluation-harness, vLLM) | 0.67 → 0.67 | 99.9% | source ↗ |
| FP8 W8A8 dynamic (weights symmetric static per-channel, activations symmetric dynamic per-token) | MMLU-Pro (lm-evaluation-harness, vLLM) | 0.468 → 0.456 | 97.5% | source ↗ |
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json