whatmodel.sh / Phi-3-medium-4k-instruct

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'.

46.2±1.0#458 of 743 LLMsfrom 7 benchmark results across 7 sources

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.

#modelscorewhereRAMreleased
553QwQ-32B-Preview Alibaba46±2local~21GB2024-11
554LFM2 8B-A1B Liquid AI46±1comparison only2025-10
555Phi-3-medium-4k-instruct Microsoft46±1local~9.9GB2024-05
556Minerva 62B Google46±2never released2022-06
557DeepSeek R1 Distill Llama 8B DeepSeek46±1local~6.2GB2025-01
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

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.

testresultvs the others in its rundifficultycountswhy
Arena-Hard (v0.1, GPT-4-1106 judge)33.4% ✎▂▁▁▅█▅▄▃▃▅▃▁ beats 29/60medium · avg 47%▇▇▇▇▇▇▇▇▇ 23%sharp · at its level
LMArena (text)1198.1 ✎▁▁▁▂▃▃▃▆▆▇█▃ beats 68/388avg 1262▇▇▇▇ 10%blunt
Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024)1126.0 ✎▂▁▂▁▃▇█▆▇▄▂▂ beats 58/95avg 1189▇▇▇▇ 10%typical
other tests4 not in a task · 56% of its score
testresultvs the others in its rundifficultycountswhy
LiveBench 2024-07-2631.2% ✎▁▁▁▂▂▃▂█▆▃▅▃ beats 30/61medium · avg 39%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%at its level
EvalPerf correctness (118 tasks, 20240328)68.4% ✎▂·▂▂▂▆▅▆▆▆▃█ beats 5/29easy · avg 75%▇▇▇ 7.3%at its level
Polish EQ-Bench v2 (SpeakLeash)57.1% ✎▁··▁▁▂▂▆▅▆█▆ beats 34/70medium · avg 62%▇▇▇ 6.8%at its level
Open PT-LLM Leaderboard average (9 Portuguese tasks)72.3% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 194/276medium · avg 72%▇ 2.6%at its level · 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.

llama.cpp · recommended

version

  1. 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 | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run Phi-3-medium-4k-instruct · needs 10.6 GB memory, 8.57 GB download · from huggingface.co/bartowski
    chat in the terminal
    llama cli -hf bartowski/Phi-3-medium-4k-instruct-GGUF:Q4_K_M
  3. 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

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Phi-3-medium-4k-instruct · needs 10.6 GB memory, 8.57 GB download · from huggingface.co/bartowski

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/bartowski/Phi-3-medium-4k-instruct-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Phi-3-medium-4k-instruct · needs 10.6 GB memory, 8.57 GB download · from ollama.com
    chat in the terminal
    ollama run phi3:14b-medium-4k-instruct-q4_K_M

MLX (Mac)

version

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run Phi-3-medium-4k-instruct · needs 9.9 GB memory, 7.85 GB download, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/Phi-3-medium-4k-instruct-4bit
  3. 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

$ 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