whatmodel.sh / Phi-3-medium-4k-instruct
Phi-3-medium-4k-instruct
↗ share
+ contribute
Phi-3-medium-4k-instruct is an open-weights language model from Microsoft, released May 2024. Its published size is 14B parameters and a 4k-token context window. Licence: mit.
Catalogue identity notes
Arena entry 'phi-3-medium-4k-instruct' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'phi-3-medium-4k-instruct' as 'Phi-3-Medium-4k-Instruct' (Microsoft, MIT), linking https://huggingface.co/microsoft/Phi-3-medium-4k-instruct. Maker repo microsoft/Phi-3-medium-4k-instruct @48d87cd: licence tag mit. 13,960,238,080 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-05: card: 'The model weight is released on May 21, 2024'.
$ how it compares
The LLMs ranked either side of Phi-3-medium-4k-instruct, out of 828 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 531 | 45±1 | comparison only | |||
| 532 | 45±2 | local | |||
| 533 | 45±1 | local | |||
| 534 | 45±2 | local | |||
| 535 | 45±1 | comparison only | |||
| 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
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #304 of 393 · 45% of its score · 3 tests
Beats Gemma 4 E4B, OpenThinker3 7B, Gemma 4 E2B here, though they rank higher overall. Trails LFM2 350M, Gemma 3 1B, Flan-T5 XXL here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Arena-Hard (v0.1, GPT-4-1106 judge) | 33.4% ✎ | ▂▁▁▅█▅▄▃▃▅▃▁ beats 29/60 | 24% |
| Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024) | 1126.0 ✎ | ▂▁▂▁▃▇█▆▇▄▂▂ beats 58/95 | 10% |
| LMArena (text) | 1197.9 ✎ | ▁▁▁▂▃▃▃▆▆▇█▃ beats 68/379 | 10% |
other tests4 not in a task · 55% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LiveBench 2024-07-26 | 31.2% ✎ | ▁▁▁▂▂▃▂█▆▃▅▃ beats 30/61 | 39% |
| EvalPerf correctness (118 tasks, 20240328) | 68.4% ✎ | ▂·▂▂▂▆▅▆▆▆▃█ beats 5/29 | 7.7% |
| Polish EQ-Bench v2 (SpeakLeash) | 57.1% ✎ | ▁··▁▁▂▂▆▅▆█▆ beats 34/70 | 6.0% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 72.3% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 194/276 | 2.3% |
$ where to run it
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-medium-4k-instruct · needs ~8.6 GB · from huggingface.co/bartowskichat in the terminal
llama cli -hf bartowski/Phi-3-medium-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-medium-4k-instruct-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Phi-3-medium-4k-instruct · needs ~8.6 GB · from huggingface.co/bartowski
- Or download it in the terminal
lms get https://huggingface.co/bartowski/Phi-3-medium-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-medium-4k-instruct · needs ~8.9 GB · from ollama.comchat in the terminal
ollama run phi3:14b-medium-4k-instruct-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-medium-4k-instruct · needs ~7.9 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/Phi-3-medium-4k-instruct-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/Phi-3-medium-4k-instruct-4bit
Official weights and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · LiveBench model judgments (HF… 39%, Arena-Hard-Auto v0.1 leaderbo… 24%, Polyrating: A Cost-Effective… 10% 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
| source | results | share of the score |
|---|---|---|
| 1 | 39% | |
| 1 | 24% | |
| 1 | 10% | |
| 1 | 10% | |
| 1 | 8% | |
| 1 | 6% | |
| 1 | 2% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 44.9 |
$ 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