whatmodel.sh / Phi-4-mini-reasoning 3.8B
Phi-4-mini-reasoning 3.8B
↗ share
+ contribute
Phi-4-mini-reasoning 3.8B is an open-weights language model from Microsoft, released April 2025. Its published size is 3.8B parameters and a 128k-token context window. Licence: mit.
Model information sources
Also: "the 3.8B parameters Phi-4-mini-reasoning model". Repo safetensors header total 3,836,021,760 (HF API); sibling phi-4-mini entry uses 3.84. Dense: active_b = params_b.
$ how it compares
The LLMs ranked either side of Phi-4-mini-reasoning 3.8B, out of 828 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 472 | 47±2 | local | |||
| 473 | 47±3 | local | |||
| 474 | 47±2 | api $0.13/M +local | |||
| 475 | 47±1 | local | |||
| 476 | 47±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
math▁▂▃▅▆▅▄█▄▁▁▁ #178 of 398 * · 32% of its score · 2 tests
Beats MiniMax-M2.1, GPT-4.1, DeepSeek V3 0324 here, though they rank higher overall.
other tests4 not in a task · 66% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GPQA Diamond lab | 52.0% ✎ | ▁▁▁▁▂▄▅▅███▄ beats 93/310 | 32% |
| BRIDGE clinical text, zero-shot average (87 tasks) | 21.3% ✎ | ▁▁▁▁▁▃▂▃▄▆█▃ beats 14/97 | 20% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 41.0% ✎ | ▃·▁▁▂▃▂▅█▇▄▁ beats 22/100 | 7.7% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 55.7% ✎ | ▁▁▁▁▁▁▁▃▄█▄▃ beats 26/146 | 5.5% |
$ 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-reasoning' (GA), 128K context: input $0.075, output $0.30, region US East. 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-reasoning 3.8B · needs ~2.49 GB · from huggingface.co/unslothchat in the terminal
llama cli -hf unsloth/Phi-4-mini-reasoning-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf unsloth/Phi-4-mini-reasoning-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Phi-4-mini-reasoning 3.8B · needs ~2.49 GB · from huggingface.co/unsloth
- Or download it in the terminal
lms get https://huggingface.co/unsloth/Phi-4-mini-reasoning-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Phi-4-mini-reasoning 3.8B · needs ~3.15 GB · from ollama.comchat in the terminal
ollama run phi4-mini-reasoning: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-reasoning 3.8B · needs ~2.2 GB, Mac only · from huggingface.co/lmstudio-communitychat in the terminal
mlx_lm.chat --model lmstudio-community/Phi-4-mini-reasoning-MLX-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model lmstudio-community/Phi-4-mini-reasoning-MLX-4bit
Official weights and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · microsoft/Phi-4-mini-reasonin… 64%, BRIDGE Medical Leaderboard (H… 20%, EuroEval leaderboards (result… 13%
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 |
|---|---|---|
| 3 | 64% | |
| 1 | 20% | |
| 2 | 13% | |
| prior · pull toward the middle | 2% | |
| weighted average | = 47.0 |
$ 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