whatmodel.sh / Phi-3-mini-128k-instruct (Apr 2024)

Phi-3-mini-128k-instruct (Apr 2024) is an open-weights language model from Microsoft, released April 2024. Its published size is 3.82B parameters. Licence: mit.

Catalogue identity notes

Comparison-only. Arena entry 'phi-3-mini-128k-instruct' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'phi-3-mini-128k-instruct' as 'Phi-3-Mini-128k-Instruct' (Microsoft, MIT), linking https://azure.microsoft.com/en-us/blog/introducing-phi-3-redefining-whats-possible-with-slms/. Maker repo microsoft/Phi-3-mini-128k-instruct @f3c06ae: licence tag mit. 3,821,079,552 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-04: month the maker's Hugging Face repo was created (createdAt 2024-04-22). LMArena's table links the April 2024 Phi-3 announcement. The HF repo was later updated in place (June 2024), so the current download is not asserted to be this checkpoint.

39.3±1.6#541 of 719 LLMsfrom 10 benchmark results across 7 sources

$ how it compares

The LLMs ranked either side of Phi-3-mini-128k-instruct (Apr 2024), out of 828 with a score, then more from Microsoft.

#modelscorewhereRAMreleased
631OpenHermes 2.5 Mistral 7B Nous Research39±1local~6.1GB2023-10
632Granite 3.3 2B Instruct IBM39±1local~3GB2025-04
633Phi-3-mini-128k-instruct (Apr 2024) Microsoft39±2local~9.5GB2024-04
634Mistral 7B Instruct v0.3 Mistral39±1local~5.8GB2024-05
635Vicuna 33B v1.3 LMSYS39±1local~23GB2023-06
more from Microsoft
252Phi-4-reasoning-plus 14B Microsoft59±1local~10GB2025-04
261Phi-4-reasoning 14B Microsoft58±1api $0.22/M +local~10GB2025-04
365Phi-4 14B Microsoft53±1api $0.087/M +local~10GB2024-12

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▁▃▆██▇▆▄▃▁ #321 of 458 · 11% of its score · 4 tests

Beats GLM-4.7-Flash, Qwen3-VL 8B Instruct, Qwen3-VL 4B Instruct here, though they rank higher overall.

testresultvs the others in its rundifficultycountswhy
CodeReviewQA: solution identification (hard), invariant accuracy45.9% ✎▃··▁▂▂▃▂█▃▄▂ beats 22/47medium · avg 54%▇▇ 4.5%sharp · noisy
CodeReviewQA: automated code refinement, exact match rate7.7% ✎▁▁▁▁▃▁▂▂▃█▅▄ beats 6/47hard · avg 33%▇ 3.5%typical
CodeReviewQA: change localisation (hard), invariant accuracy30.7% ✎█▂▁▁▂▂▂▃▅▅▅▇ beats 26/47medium · avg 36%▇ 3.3%sharp · noisy
CodeReviewQA: change type recognition, invariant accuracy76.9% ✎▁▁▁······▁▃█ beats 39/47easy · avg 67%▇ 0.1%blunt · at its level · noisy
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #363 of 393 · 77% of its score · 3 tests

Beats Gemma 4 E2B, Code Llama 70B Instruct here, though they rank higher overall. Trails Gemma 3 270M IT, SmolLM2 360M Instruct, Granite 4.0 350M here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
Arena-Hard (v0.1, GPT-4-1106 judge)15.4% ✎▂▁▁▅█▅▄▃▃▅▃▁ beats 9/60medium · avg 52%▇▇▇▇▇▇▇▇▇▇▇▇▇ 32%sharp
Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024)1072.0 ✎▂▁▂▁▃▇█▆▇▄▂▂ beats 34/95avg 1201▇▇▇▇▇▇▇▇▇ 23%blunt
LMArena (text)1129.8 ✎▁▁▁▃▃▃▃▆▆▇█▃ beats 27/379avg 1268▇▇▇▇▇▇▇▇▇ 23%blunt
other tests3 not in a task · 10% of its score
testresultvs the others in its rundifficultycountswhy
Open PT-LLM Leaderboard average (9 Portuguese tasks)65.7% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 119/276medium · avg 73%▇▇ 4.8%at its level · noisy
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy80.2% ✎▁▁▁▁▁▁▁▂▄█▄▃ beats 65/146easy · avg 83%▇ 3.5%at its level · noisy
Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate)96.9% ✎▁▁▂▃▄▄█▆▃▂▂▁ beats 101/140very easy · avg 94%▇ 2.1%blunt · noisy

$ where to run it

Other ways to run it

  1. Run it as published · needs ~7.64 GB · from huggingface.co/microsoft (official)
    uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='microsoft/Phi-3-mini-128k-instruct', revision='bb5bf1e4001277a606e11debca0ef80323e5f824', torch_dtype='auto', device_map='auto')('Once upon a time', max_new_tokens=40)[0]['generated_text'])"

Official weights and documentation: huggingface.co/microsoft ↗

$ how the score was worked out · Arena-Hard-Auto v0.1 leaderbo… 32%, Polyrating: A Cost-Effective… 23%, LMArena leaderboard dataset 23% and 4 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

$ 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