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'.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Phi-3-medium-4k-instruct, out of 897 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 553 | 46±2 | local | |||
| 554 | 46±1 | comparison only | |||
| 555 | 46±1 | local | |||
| 556 | 46±2 | never released | |||
| 557 | 46±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
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #314 of 405 · 43% of its score · 3 tests
Beats Gemma 4 E4B, OpenThinker3 7B, Code Llama 70B Instruct here, though they rank higher overall. Trails LFM2 350M, Gemma 3 1B, Qwen3 0.6B 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 | 23% |
| LMArena (text) | 1198.1 ✎ | ▁▁▁▂▃▃▃▆▆▇█▃ beats 68/388 | 10% |
| Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024) | 1126.0 ✎ | ▂▁▂▁▃▇█▆▇▄▂▂ beats 58/95 | 10% |
other tests4 not in a task · 56% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LiveBench 2024-07-26 | 31.2% ✎ | ▁▁▁▂▂▃▂█▆▃▅▃ beats 30/61 | 40% |
| EvalPerf correctness (118 tasks, 20240328) | 68.4% ✎ | ▂·▂▂▂▆▅▆▆▆▃█ beats 5/29 | 7.3% |
| Polish EQ-Bench v2 (SpeakLeash) | 57.1% ✎ | ▁··▁▁▂▂▆▅▆█▆ beats 34/70 | 6.8% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 72.3% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 194/276 | 2.6% |
$ 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-medium-4k-instruct · needs 10.6 GB memory, 8.57 GB download · 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 10.6 GB memory, 8.57 GB download · 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 10.6 GB memory, 8.57 GB download · 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 9.9 GB memory, 7.85 GB download, 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
Model repository and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · LiveBench model judgments (HF… 40%, Arena-Hard-Auto v0.1 leaderbo… 23%, LMArena leaderboard dataset 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 | 40% | |
| 1 | 23% | |
| 1 | 10% | |
| 1 | 10% | |
| 1 | 7% | |
| 1 | 7% | |
| 1 | 3% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 46.2 |
$ 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