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.

45.1±1.2#441 of 719 LLMsfrom 10 benchmark results across 5 sources

$ how it compares

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

#modelscorewhereRAMreleased
525Claude 2.0 Anthropic45±1comparison only2023-07
526OpenThinker 7B Open Thoughts45±2local~6GB2025-01
527Phi-3 Medium 128K Instruct Microsoft45±1local~9.8GB2024-04
528QwQ-32B-Preview Alibaba45±2local~21GB2024-11
529DeepSeek-Coder-V2 Lite Instruct (16B-A2.4B) DeepSeek45±1local~11GB2024-06
more from Microsoft
252Phi-4-reasoning-plus 14B Microsoft59±1local~10GB2025-04
261Phi-4-reasoning 14B Microsoft58±1api $0.22/M +local~10GB2025-04
365Phi-4 14B Microsoft53±1api $0.087/M +local~10GB2024-12

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▁▃▆██▇▆▄▃▁ #256 of 458 · 10% 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 54%▇ 3.7%sharp · at its level · noisy
CodeReviewQA: change localisation (hard), invariant accuracy43.0% ✎█▂▁▁▂▂▂▃▅▅▅▇ beats 32/47medium · avg 36%▇ 3.5%sharp · noisy
CodeReviewQA: automated code refinement, exact match rate30.2% ✎▁▁▁▁▁▁▂▂▃█▅▄ beats 20/47hard · avg 33%▇ 2.6%at its level
CodeReviewQA: change type recognition, invariant accuracy76.7% ✎▁▁▁······▁▃█ beats 37/47easy · avg 67%▇ 0.1%blunt · at its level · noisy
math▁▂▃▅▆▅▄█▄▁▁▁ #328 of 398 * · 18% of its score · 1 test

Beats GPT-3.5 Turbo (0125), Qwen2-VL 7B Instruct, DBRX Instruct here, though they rank higher overall. Trails Qwen3 0.6B, Gemma 7B (base), DeepSeek R1 Distill Qwen 1.5B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
MATH level 517.6% ✎▂▂▅▆▄█▆▃▅▂▃▄ beats 15/92hard · avg 32%▇▇▇▇▇▇▇ 18%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 41%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 53%at its level
GPQA Diamond27.6% ✎▁▁▃▁▂▄▆▄▅▇█▅ beats 12/208hard · avg 40%▇▇▇▇ 10%sharp
RULER 64k78.6% ✎▁▁·▁·▂▃▄█▂·▁ beats 5/22easy · avg 83%▇ 3.6%typical
Open PT-LLM Leaderboard average (9 Portuguese tasks)71.7% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 188/276medium · avg 73%▇ 3.1%at its level · noisy
RULER 128k46.1% ✎▄··▂▄▂▆██▄▄▂ beats 3/21easy · avg 68%▇ 1.3%at its level · noisy

$ where to run it

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 ~8.6 GB · 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 ~8.6 GB · 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 ~8.88 GB · 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 ~7.9 GB, 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

Official weights and documentation: huggingface.co/microsoft ↗

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