whatmodel.sh / Phi-3-mini-4k-instruct (June 2024 update)
Phi-3-mini-4k-instruct (June 2024 update)
↗ share
+ contribute
Phi-3-mini-4k-instruct (June 2024 update) is an open-weights language model from Microsoft, released June 2024. Its published size is 3.82B parameters. Licence: mit.
Catalogue identity notes
Comparison-only. Arena entry 'phi-3-mini-4k-instruct-june-2024' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'phi-3-mini-4k-instruct-june-2024' as 'Phi-3-Mini-4K-Instruct-June-24' (Microsoft, MIT), linking https://huggingface.co/microsoft/Phi-3-mini-4k-instruct. Maker repo microsoft/Phi-3-mini-4k-instruct @f39ac1d: licence tag mit. 3,821,079,552 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-06: card: 'Release dates: June, 2024' ('June 2024 Update'). LMArena labels it 'Phi-3-Mini-4K-Instruct-June-24'. The current HF repo revision is this update; no ollama tag states its version.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Phi-3-mini-4k-instruct (June 2024 update), out of 897 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 569 | 46±1 | local | |||
| 570 | 46±1 | local | |||
| 571 | 46±1 | local | |||
| 572 | 46±1 | local | |||
| 573 | 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
coding▁▁▁▃▆▇█▆▆▃▃▁ #335 of 474 * · 23% of its score · 1 test
Beats Solar Open 100B (102B-A12B), Qwen3 4B Instruct 2507, Qwen3-VL 8B Instruct here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, WizardLM 70B V1.0, Llama 3.2 11B Vision Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| CRUXEval (ZeroEval, 800 problems) | 44.8% ✎ | ▁▂▆▃▆█▆▃▂·▁▁ beats 8/47 | 23% |
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #365 of 405 * · 7.8% of its score · 1 test
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 H 350M here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LMArena (text) | 1143.3 ✎ | ▁▁▁▃▃▂▃▆▆▇█▃ beats 35/388 | 7.8% |
math▁▁▃▅█▆▅█▄▁▁▁ #389 of 440 * · 22% of its score · 2 tests
Beats Command R Plus (04-2024) here, though they rank higher overall. Trails GPT-Neo 125M, GPT-Neo 1.3B, OPT-1.3B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GSM8K (ZeroEval, zero-shot) | 75.5% ✎ | ▁▄·▁▄█▅▅▅███ beats 6/43 | 15% |
| MATH Level 5 (ZeroEval, 721 problems) | 16.2% ✎ | ▁▁▁▆█▂▇▇▄··▂ beats 4/38 | 6.9% |
other tests3 not in a task · 47% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| MMLU-Redux (ZeroEval, 2,778 questions) | 70.3% ✎ | ▁·▁▁▄▄▄▅█▄▂▁ beats 15/53 | 40% |
| ZebraLogic (ZeroEval, 1,000 puzzles) | 11.6% ✎ | ▁▁▃▆██▁▁·▁▁▁ beats 12/57 | 6.3% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 80.2% ✎ | ▁▁▁▁▁▁▁▂▄█▄▃ beats 67/146 | 1.2% |
$ 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.
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-3-mini-4k-instruct (June 2024 update) · needs 6 GB memory, 2.39 GB download · from huggingface.co/bartowskichat in the terminal
llama cli -hf bartowski/Phi-3.1-mini-4k-instruct-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf bartowski/Phi-3.1-mini-4k-instruct-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Phi-3-mini-4k-instruct (June 2024 update) · needs 6 GB memory, 2.39 GB download · from huggingface.co/bartowski
- Or download it in the terminal
lms get https://huggingface.co/bartowski/Phi-3.1-mini-4k-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-3-mini-4k-instruct (June 2024 update) · needs 6 GB memory, 2.39 GB download · from huggingface.co/bartowskichat in the terminal
ollama run hf.co/bartowski/Phi-3.1-mini-4k-instruct-GGUF:Q4_K_M
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Phi-3-mini-4k-instruct (June 2024 update) · needs 5.8 GB memory, 2.15 GB download, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/Phi-3-mini-4k-instruct-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/Phi-3-mini-4k-instruct-4bit
Model repository and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · WildEval ZeroEval published r… 91%, LMArena leaderboard dataset 8%, EuroEval leaderboards (result… 1%
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 |
|---|---|---|
| 5 | 91% | |
| 1 | 8% | |
| 1 | 1% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 45.5 |
$ 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