whatmodel.sh / Phi-3 Medium 128K Instruct

Phi-3 Medium 128K Instruct is an open-weights language model from Microsoft, released April 2024. Its published size is 13.96B parameters and a 128k-token context window. Licence: mit.

Catalogue identity notes

Comparison model from the Epoch AI internal-evaluation CSVs (Epoch release date 2024-04-23). Exact checkpoint Phi-3-medium-128k-instruct (not the 4k variant). The Hugging Face repo has no weight updates after the May 2024 upload (commit history). 13,960,238,080 parameters.

46.4±1.2#454 of 743 LLMsfrom 10 benchmark results across 5 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Phi-3 Medium 128K Instruct, out of 897 with a score, then more from Microsoft.

#modelscorewhereRAMreleased
547Granite 3.3 8B Instruct IBM47±1local~6.3GB2025-04
548PaLM 540B Google47±0never released2022-04
549Phi-3 Medium 128K Instruct Microsoft46±1local~9.9GB2024-04
550Zephyr ORPO 141B-A35B v0.1 Hugging Face46±2local~56GB2024-04
551Qwen2-VL 7B Instruct Alibaba46±1local~5.8GB2024-08
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▁▁▁▃▆▇█▆▆▃▃▁ #273 of 474 · 12% of its score · 4 tests

Beats Qwen3-VL 32B Instruct, Solar Open 100B (102B-A12B), GLM-4.7-Flash here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, QwQ-32B-Preview here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
CodeReviewQA: solution identification (hard), invariant accuracy50.8% ✎▃··▁▂▂▃▂█▃▄▂ beats 26/47medium · avg 52%▇▇ 4.3%sharp · at its level · noisy
CodeReviewQA: change localisation (hard), invariant accuracy43.0% ✎█▂▁▁▂▂▂▃▅▅▅▇ beats 32/47hard · avg 34%▇▇ 4.0%sharp · noisy
CodeReviewQA: automated code refinement, exact match rate30.2% ✎▁▁▁▁▁▁▂▂▃█▅▄ beats 20/47hard · avg 32%▇ 3.3%at its level
CodeReviewQA: change type recognition, invariant accuracy76.7% ✎▁▁▁······▁▃█ beats 37/47easy · avg 67%▇ 0.1%blunt · at its level · noisy
math▁▁▃▅█▆▅█▄▁▁▁ #365 of 440 * · 17% of its score · 1 test

Beats GPT-3.5 Turbo (0125), DBRX Instruct here, though they rank higher overall. Trails OPT-2.7B, Gemma 2B (base), Stable Code 3B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
MATH level 517.6% ✎▂▂▅▆▄█▆▃▅▂▃▄ beats 15/92hard · avg 29%▇▇▇▇▇▇▇ 17%sharp
other tests5 not in a task · 71% of its score
testresultvs the others in its rundifficultycountswhy
LiveBench 2024-07-2630.3% ✎▁▁▁▂▂▃▂█▆▃▅▃ beats 28/61medium · avg 39%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 53%at its level
GPQA Diamond27.6% ✎▁▁▃▁▂▃▅▄▄▆█▃ beats 12/221hard · avg 39%▇▇▇▇ 10%sharp
Open PT-LLM Leaderboard average (9 Portuguese tasks)71.7% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 188/276medium · avg 72%▇ 3.5%at its level · noisy
RULER 64k78.6% ✎▁▁·▁·▂▃▄█▂·▁ beats 5/22easy · avg 82%▇ 3.4%typical
RULER 128k46.1% ✎▄··▂▄▂▆██▄▄▂ beats 3/21easy · avg 67%▇ 1.1%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 128K 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-128k-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-128k-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 128K 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-128k-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 128K Instruct · needs 10 GB memory, 7.9 GB download · from ollama.com
    chat in the terminal
    ollama run phi3:medium-128k

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 128K 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-128k-instruct-4bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model mlx-community/Phi-3-medium-128k-instruct-4bit

Model repository and documentation: huggingface.co/microsoft ↗

$ how the score was worked out · LiveBench model judgments (HF… 53%, Epoch AI — internal evaluatio… 27%, CodeReviewQA: The Code Review… 12% and 2 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