Phi-4 Base on HumanEval: score, rank and what it means
Phi-4 Base scores 73.9 on HumanEval, placing it #359 of 600 models in the index. The benchmark average is 74.0 and the leader is GPT-5.2 Pro at 96.8.
Score distribution
The chart shows the top 10 models on HumanEval, with Phi-4 Base highlighted. Longer bars mean higher scores.
Top 10 leaderboard
| # | Model | Provider | Context | Input / 1M | Avg score |
|---|---|---|---|---|---|
| 1 | GPT-5.2 Pro | OpenAI | 2000000 | $21.32 | 89.6 |
| 2 | Gemini 3 Pro Pro | Google DeepMind | 200000 | $19.80 | 87.3 |
| 3 | o4 Max | OpenAI | 2000000 | $19.51 | 86.2 |
| 4 | Grok 4 Reasoning | xAI | 2000000 | $19.67 | 87.8 |
| 5 | Claude Opus 4.5 | Anthropic | 400000 | $19.42 | 87.7 |
| 6 | GPT-5.2 Max | OpenAI | 1000000 | $21.39 | 89.2 |
| 7 | Claude Opus 4.5 Pro | Anthropic | 200000 | $20.98 | 89.1 |
| 8 | Grok 4 Max | xAI | 2000000 | $19.70 | 86.6 |
| 9 | GPT-5.2 Turbo | OpenAI | 1000000 | $20.73 | 87.4 |
| 10 | GPT-5.1 Reasoning | OpenAI | 400000 | $20.27 | 88.3 |
What this score means
On HumanEval, Phi-4 Base sits at #359 of 600. The leader, GPT-5.2 Pro, scores 96.8, so the gap to the top is 22.9 points. The median model in this index scores 77.4, which puts Phi-4 Base below the midpoint.
Microsoft models average 66.6 on this benchmark. Phi-4 Base is 7.3 points above that provider line, so it is a stronger result than the average Microsoft model.
Among open-weight models, the average is 72.4. Phi-4 Base is 1.5 points above that group. This is the more useful comparison if you are shortlisting within the same tier rather than across the whole index.
Read a 73.9 as a relative signal, not an absolute guarantee. Benchmark scores depend on prompt format, evaluation harness and contamination controls. Use this page to narrow the shortlist, then test the model on your own data.
Price context
At $3.15 per million input tokens, Phi-4 Base is below the median input price of $4.00 across the 600 models scored on HumanEval. The models immediately around it in the ranking are shown below so you can compare score and price together.
| Model | Provider | Context | Input / 1M | Avg score |
|---|---|---|---|---|
| Mixtral Turbo Instruct | Together AI | 32768 | $3.16 | 71.9 |
| Arctic Instruct | Snowflake | 65536 | $2.83 | 70.6 |
| Reka Core Mini | Reka AI | 8192 | $7.48 | 70.1 |
| Llama 3 Replicate Base | Replicate | 65536 | $3.15 | 72.1 |
| Phi-4 Base | Microsoft | 32768 | $3.15 | 71.2 |
| Auto Max | OpenRouter | 8192 | $8.41 | 71.2 |
| ERNIE 4.5 Mini | Baidu | 32768 | $8.62 | 71.0 |
Other benchmarks for Phi-4 Base
| Benchmark | Score | Rank | Percentile | Relative |
|---|---|---|---|---|
| MMLU-Pro | 74.0 | 354 | 41th | |
| GPQA Diamond | 64.9 | 363 | 40th | |
| SWE-bench Verified | 62.7 | 262 | 56th | |
| MATH-500 | 71.9 | 368 | 39th | |
| AIME 2025 | 64.6 | 347 | 42th | |
| LiveCodeBench | 63.7 | 329 | 45th | |
| IFEval | 81.2 | 302 | 50th | |
| TruthfulQA | 74.4 | 346 | 42th | |
| HellaSwag | 84.8 | 258 | 57th | |
| MMMU | 67.0 | 359 | 40th | |
| Arena Elo | 1373.8 | 299 | 50th |
FAQ
What score does Phi-4 Base get on HumanEval?
Phi-4 Base scores 73.9 on HumanEval in this index. The benchmark average is 74.0 and the top score is 96.8.
How does Phi-4 Base rank on HumanEval?
It ranks #359 of 600 models, in the 40th percentile. The leader is GPT-5.2 Pro at 96.8.
Is Phi-4 Base good at HumanEval?
It is below the median for this benchmark, so test it carefully before relying on it for this capability. The result should be read alongside its price and context window.
How is the HumanEval score calculated?
HumanEval is a coding benchmark. Scores in this index are modelled estimates on a 0–100 scale (or Elo for Arena), derived from capability tier and benchmark difficulty. They are not official leaderboard results.
What does Phi-4 Base cost?
Phi-4 Base costs $3.15 per million input tokens and $11.39 per million output tokens.