whatmodel.sh / Phi-3-mini-4k-instruct (June 2024 update)

Phi-3-mini-4k-instruct (June 2024 update) is an open-weights language model from Microsoft, released June 2024. Its published size is 3.82B parameters. Licence: mit.

Catalogue identity notes

Comparison-only. Arena entry 'phi-3-mini-4k-instruct-june-2024' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'phi-3-mini-4k-instruct-june-2024' as 'Phi-3-Mini-4K-Instruct-June-24' (Microsoft, MIT), linking https://huggingface.co/microsoft/Phi-3-mini-4k-instruct. Maker repo microsoft/Phi-3-mini-4k-instruct @f39ac1d: licence tag mit. 3,821,079,552 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-06: card: 'Release dates: June, 2024' ('June 2024 Update'). LMArena labels it 'Phi-3-Mini-4K-Instruct-June-24'. The current HF repo revision is this update; no ollama tag states its version.

44.2±0.9#451 of 719 LLMsfrom 7 benchmark results across 3 sources

$ how it compares

The LLMs ranked either side of Phi-3-mini-4k-instruct (June 2024 update), out of 828 with a score, then more from Microsoft.

#modelscorewhereRAMreleased
538Mistral NeMo Instruct (2407) Mistral44±1local~8.7GB2024-07
539LLaVA-OneVision Qwen2 72B (ov-sft) LLaVA (lmms-lab)44±3local~155GB2024-08
540Phi-3-mini-4k-instruct (June 2024 update) Microsoft44±1local~3.7GB2024-06
541Yi 1.5 9B Chat 01.AI44±1local~6.8GB2024-05
542Command R7B (12-2024) Cohere44±1local~6.2GB2024-12
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▁▁▁▃▆██▇▆▄▃▁ #324 of 458 * · 22% of its score · 1 test

Beats GLM-4.7-Flash, Qwen3-VL 8B Instruct, Qwen3-VL 4B Instruct here, though they rank higher overall. Trails Phi-3-mini-128k-instruct (Apr 2024), DeepSeek LLM 67B Chat, WizardLM 70B V1.0 here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
CRUXEval (ZeroEval, 800 problems)44.8% ✎▁▂▆▃▆█▆▃▂·▁▁ beats 8/47medium · avg 61%▇▇▇▇▇▇▇▇▇ 22%sharp · at its level
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #356 of 393 * · 7.7% of its score · 1 test

Beats Gemma 4 E2B, Code Llama 70B Instruct here, though they rank higher overall. Trails Gemma 3 270M IT, SmolLM2 360M Instruct, Qwen2.5 0.5B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
LMArena (text)1143.1 ✎▁▁▁▃▃▃▃▆▆▇█▃ beats 35/379avg 1268▇▇▇ 7.7%blunt
math▁▂▃▅▆▅▄█▄▁▁▁ #349 of 398 * · 22% of its score · 2 tests

Beats Command R Plus (04-2024) here, though they rank higher overall. Trails Qwen3 0.6B, Tulu 2 DPO 7B, Gemma 7B (base) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K (ZeroEval, zero-shot)75.5% ✎▁▄·▁▄█▅▅▅███ beats 6/43very easy · avg 89%▇▇▇▇▇▇ 15%sharp
MATH Level 5 (ZeroEval, 721 problems)16.2% ✎▁▁▁▆█▂▇▇▄··▂ beats 4/38hard · avg 34%▇▇▇ 7.2%sharp
other tests3 not in a task · 47% of its score
testresultvs the others in its rundifficultycountswhy
MMLU-Redux (ZeroEval, 2,778 questions)70.3% ✎▁·▁▁▄▄▄▅█▄▂▁ beats 15/53easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%at its level
ZebraLogic (ZeroEval, 1,000 puzzles)11.6% ✎▁▁▃▆██▁▁·▁▁▁ beats 12/57hard · avg 18%▇▇▇ 6.4%sharp
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy80.2% ✎▁▁▁▁▁▁▁▂▄█▄▃ beats 67/146easy · avg 83%▇ 1.1%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-mini-4k-instruct (June 2024 update) · needs ~2.39 GB · from huggingface.co/bartowski
    chat in the terminal
    llama cli -hf bartowski/Phi-3.1-mini-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.1-mini-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-mini-4k-instruct (June 2024 update) · needs ~2.39 GB · from huggingface.co/bartowski

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/bartowski/Phi-3.1-mini-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-mini-4k-instruct (June 2024 update) · needs ~2.39 GB · from huggingface.co/bartowski
    chat in the terminal
    ollama run hf.co/bartowski/Phi-3.1-mini-4k-instruct-GGUF: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-mini-4k-instruct (June 2024 update) · needs ~2.1 GB, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/Phi-3-mini-4k-instruct-4bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model mlx-community/Phi-3-mini-4k-instruct-4bit

Official weights and documentation: huggingface.co/microsoft ↗

$ how the score was worked out · WildEval ZeroEval published r… 91%, LMArena leaderboard dataset 8%, EuroEval leaderboards (result… 1%

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

sourceresultsshare of the scorelicence
WildEval ZeroEval published results5▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%Apache-2.0
LMArena leaderboard dataset1▇▇ 8%CC BY 4.0
EuroEval leaderboards (results collection), English generative leaderboard1▇ 1%MIT
prior · pull toward the middle▇ 0%
weighted average= 44.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