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.

41.1±1.5#554 of 743 LLMsfrom 10 benchmark results across 7 sources

Score within the LMArena (text) comparison set only.

$ how it compares

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

#modelscorewhereRAMreleased
662North Micro Vision Instruct (2.4B) Cohere41±2local~3.8GB2026-08
663Vicuna 33B v1.3 LMSYS41±1local~22GB2023-06
664Phi-3-mini-128k-instruct (Apr 2024) Microsoft41±2local~9.5GB2024-04
665Code Tulu 2 13B Allen Institute for AI41±2local~29GB2023-11
666Bielik 1.5B v3.0 Instruct SpeakLeash41±3local~2.4GB2025-04
more from Microsoft
273Phi-4-reasoning-plus 14B Microsoft58±1local~11GB2025-04
289Phi-4-reasoning 14B Microsoft57±1api $0.22/M +local~10GB2025-04
391Phi-4 14B Microsoft53±1api $0.087/M +local~11GB2024-12

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▁▃▆▇█▆▆▃▃▁ #343 of 474 · 14% of its score · 4 tests

Beats Qwen3-VL 8B Instruct, Qwen3-VL 4B Instruct, LFM2.5 2.6B here, though they rank higher overall.

testresultvs the others in its rundifficultycountswhy
CodeReviewQA: solution identification (hard), invariant accuracy45.9% ✎▃··▁▂▂▃▂█▃▄▂ beats 22/47medium · avg 52%▇▇ 5.3%sharp · noisy
CodeReviewQA: automated code refinement, exact match rate7.7% ✎▁▁▁▁▃▁▂▂▃█▅▄ beats 6/47hard · avg 32%▇▇ 4.4%typical
CodeReviewQA: change localisation (hard), invariant accuracy30.7% ✎█▂▁▁▂▂▂▃▅▅▅▇ beats 26/47hard · avg 34%▇▇ 3.9%sharp · noisy
CodeReviewQA: change type recognition, invariant accuracy76.9% ✎▁▁▁······▁▃█ beats 39/47easy · avg 67%▇ 0.2%blunt · at its level · noisy
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #374 of 405 · 74% of its score · 3 tests

Beats Code Llama 70B Instruct, Gemma 4 E2B 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 47%▇▇▇▇▇▇▇▇▇▇▇▇ 30%sharp
LMArena (text)1130.0 ✎▁▁▁▃▃▂▃▆▆▇█▃ beats 27/388avg 1262▇▇▇▇▇▇▇▇▇ 22%blunt
Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024)1072.0 ✎▂▁▂▁▃▇█▆▇▄▂▂ beats 34/95avg 1189▇▇▇▇▇▇▇▇▇ 21%typical
other tests3 not in a task · 12% of its score
testresultvs the others in its rundifficultycountswhy
Open PT-LLM Leaderboard average (9 Portuguese tasks)65.7% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 119/276medium · avg 72%▇▇ 5.4%at its level · noisy
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy80.2% ✎▁▁▁▁▁▁▁▂▄█▄▃ beats 65/146easy · avg 82%▇▇ 3.8%at its level · noisy
Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate)96.9% ✎▁▁▂▃▄▄█▆▃▂▂▁ beats 101/140very easy · avg 94%▇ 2.2%blunt · noisy

$ where to run it

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.

Other ways to run it

  1. Run it as published · needs 9.5 GB memory, 7.64 GB download · 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'])"

Model repository and documentation: huggingface.co/microsoft ↗

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