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.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Phi-4-mini 3.8B, out of 897 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 583 | 45±2 | local | |||
| 584 | 45±1 | api $0.063/M +local | |||
| 585 | 45±1 | api $0.13/M +local | |||
| 586 | 45±1 | local | |||
| 587 | 45±1 | local | |||
| more from Microsoft | |||||
| 273 | 58±1 | local | |||
| 289 | 57±1 | api $0.22/M +local | |||
| 391 | 53±1 | api $0.087/M +local | |||
$ what it's good at
agent tasks▁▃▃▆█▄▅▅▃▃▂▁ #313 of 319 · 2.4% 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, Granite 4.0 H 350M, Qwen2.5 0.5B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BFCL v3 | 28.2% ✎ | ▁▁▃▁▁▃▅█▅▄▁▁ beats 6/114 | 1.0% |
| 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▁▁▁▃▆▇█▆▆▃▃▁ #322 of 474 · 7.2% of its score · 4 tests
Beats Solar Open 100B (102B-A12B), Qwen3-VL 30B-A3B Instruct, 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/145 | 0.6% |
math▁▁▃▅█▆▅█▄▁▁▁ #317 of 440 · 22% of its score · 5 tests
Beats Molmo 2 8B, GPT-4 (0613), Llama 3.1 Nemotron 70B Instruct here, though they rank higher overall. Trails DeepSeek R1 Distill Qwen 1.5B, Tulu 2 DPO 7B, Gemma 7B (base) here, though they rank lower overall.
other tests27 not in a task · 68% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ARC Challenge lab | 83.7% ✎ | ▂▂▂█▂···▄··▂ beats 6/10 | 7.6% |
| CLIcK Korean (Daekeun Kim) | 42.8% ✎ | ▆▄▄▄█▄▂·▄█·▄ beats 0/23 | 7.3% |
| MMLU lab | 67.3% ✎ | █▄█▄▄▄·▄▄··▄ beats 6/10 | 6.6% |
| HAE-RAE 1.0 (Daekeun Kim) | 44.5% ✎ | ▄▄▄▂▂█▂▄▂█▂▄ beats 1/22 | 6.6% |
| BIG-Bench Hard lab | 70.4% ✎ | ██▄·█▄·▄▄··▄ beats 8/10 | 5.3% |
| OpenBookQA lab | 79.2% ✎ | ▂··▄█▂·▂···▄ beats 1/10 | 4.2% |
| MMLU-Pro lab | 52.8% ✎ | █▄▄·█▄▄▄·▄·▄ beats 8/10 | 3.8% |
| CPTUB average (SpeakLeash, 0-5 judge scale) | 43.4% ✎ | ▁▂▃▂▃█▃▆▅▄▂▃ beats 11/95 | 3.5% |
19 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Multilingual MMLU (Microsoft) lab | 49.3% ✎ | █▄▄██··█···▄ beats 2/10 | 3.3% |
| Polish EQ-Bench v2 (SpeakLeash) | 50.8% ✎ | ▁··▁▁▂▂▆▅▆█▆ beats 25/70 | 2.7% |
| GPQA Diamond lab | 36.9% ✎ | ▁▁▁▁▂▃▅▆▇▇█▂ beats 38/336 | 2.6% |
| BRIDGE clinical text, zero-shot average (87 tasks) | 24.5% ✎ | ▁▁▁▁▁▂▃▃▄▆█▃ beats 17/97 | 2.2% |
| HellaSwag lab | 69.1% ✎ | ▃▅█·▃▃▃···▃▃ beats 0/10 | 1.6% |
| KCL-Essay vanilla | 6.0% ✎ | ▃···▁▃▂█▂▃▃▂ beats 0/23 | 1.5% |
| WinoGrande lab | 67.0% ✎ | ▃····▃▃█▃·▅▅ beats 6/10 | 1.4% |
| Social IQA lab | 72.5% ✎ | ▃·▃▅▅█·▃···▃ beats 2/10 | 1.2% |
| BoolQ lab | 81.2% ✎ | ▃··▃··██▃·▃▃ beats 7/10 | 1.1% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 66.5% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 127/276 | 1.0% |
| GPQA (subset unspecified) lab | 25.2% ✎ | █··▄▂··▂▂··▄ beats 3/10 | 0.9% |
| BigCodeBench (Complete) lab | 43.0% ✎ | ▂▁▁▃▂▅▇█▅▂▂▂ beats 35/60 | 0.8% |
| KMMLU-HARD (Daekeun Kim, zero-shot) | 25.3% ✎ | █···▁▁▁▂▃·▆▂ beats 5/23 | 0.6% |
| KCL-MCQA vanilla | 22.0% ✎ | ▃···█▂▆▆██▆▂ beats 0/23 | 0.6% |
| BigCodeBench (Instruct) lab | 33.8% ✎ | ▁▁··▁▁▂▅█▅▅▅ beats 20/49 | 0.5% |
| PIQA lab | 77.6% ✎ | ▃·▅·▃█·▃▅··▃ beats 4/10 | 0.4% |
| Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate) | 96.6% ✎ | ▁▁▂▃▄▄█▆▃▂▂▁ beats 96/140 | 0.3% |
| TruthfulQA MC2 lab | 66.4% ✎ | ▂·█▂▃▄····▂▂ beats 6/10 | 0.2% |
| Vectara hallucination leaderboard (HHEM-2.3, factual consistency rate) | 76.5% ✎ | ▃▂▁▂▅█▂▃▃▃▁▁ beats 1/100 | 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.
Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.
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 4.3 GB memory, 2.49 GB download · 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 4.3 GB memory, 2.49 GB download · 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 4.3 GB memory, 2.49 GB download · 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 4 GB memory, 2.16 GB download, 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
Model repository and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · microsoft/Phi-4-mini-instruct… 57%, Daekeun Kim Korean LLM benchm… 15%, Microsoft — Phi-4-Mini Techni… 14% 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 | 57% | |
| 3 | 15% | |
| 11 | 14% | |
| 1 | 4% | |
| 1 | 3% | |
| 1 | 2% | |
| 2 | 2% | |
| 2 | 2% | |
| 1 | 1% | |
| 2 | 0% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 45.0 |
$ 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