Model comparison
Gemma 2 27B vs Phi-4
Phi-4 is the stronger model overall, scoring 31.2 to 29.4 on the Noometry Index.
Last verified . 32 shared benchmarks.
Summary
- They share 32 benchmarks with published results for both. Gemma 2 27B scores higher in 4 categories and Phi-4 in 4 categories; 5 gaps are clear of the uncertainty.
- The widest gap is in knowledge, where Phi-4 leads 32.6 to 19.0.
- The biggest single-benchmark swing is MATH Level 5: 27.9% for Gemma 2 27B and 64.9% for Phi-4.
- Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $0.65 / $0.65 for Gemma 2 27B.
- Phi-4 accepts more context: 128K tokens versus 8K.
Side by side
| Gemma 2 27B | Phi-4 | |
|---|---|---|
| Provider | Microsoft | |
| Noometry Index | 29.4 | 31.2 |
| Released | 2024-06-24 | 2024-12-11 |
| Weights | Open | Open |
| Context window | 8K | 128K |
| Max output | 2K | 4K |
| Input $ / M tokens | $0.65 | $0.07 |
| Output $ / M tokens | $0.65 | $0.14 |
| Results tracked | 34 | 37 |
Sponsored placements are available on pages like this one. Advertise on Noometry
Category by category
Coding Too close to call
Gemma 2 27B: 34.1 (#246), Phi-4: 34.4 (#239)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| BigCodeBench Instruct | 42.8% | 45.5% |
| LiveBench Coding | 36% | 30.7% |
| LMArena Coding | 1211 | 1231 |
| BigCodeBench Complete | 52.5% | 55.4% |
Agentic & Tool Use Not comparable
Gemma 2 27B: —, Phi-4: 22.8 (#128)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| Berkeley Function Calling Leaderboard | — | 28.8% |
| BALROG | — | 11.6% |
Reasoning Phi-4 leads
Gemma 2 27B: 15.3 (#315), Phi-4: 17.7 (#291)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| LiveBench Reasoning | 28.1% | 47.8% |
| LMArena Hard Prompts | 1198 | 1220 |
| LiveBench Data Analysis | 47.9% | 45.2% |
| Epoch Capabilities Index | 122.08 | 130.42 |
| LiveBench | 38.2% | 41.6% |
| Chess Puzzles | — | 1% |
| DTBench | 48% | — |
| LMCA | 7.1% | — |
Math Phi-4 leads
Gemma 2 27B: 10.7 (#311), Phi-4: 20.8 (#285)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 1.4% | 13.8% |
| LiveBench Math | 26.5% | 42% |
| LMArena Math | 1212 | 1246 |
| MATH Level 5 | 27.9% | 64.9% |
Knowledge Phi-4 leads
Gemma 2 27B: 19.0 (#280), Phi-4: 32.6 (#209)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| GPQA Diamond | 36.5% | 56.1% |
| Confabulations | 27.1% | 29.4% |
| LMArena Expert | 1172 | 1203 |
| MMLU | 75.7% | 84.8% |
| Vectara Hallucination Rate | — | 3.7% |
Multilingual Gemma 2 27B leads
Gemma 2 27B: 38.6 (#226), Phi-4: 37.2 (#237)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| LMArena Non-English | 1217 | 1197 |
| LMArena Chinese | 1221 | 1212 |
| LMArena French | 1247 | 1224 |
| LMArena German | 1209 | 1222 |
| LMArena Japanese | 1175 | 1158 |
| LMArena Korean | 1174 | 1151 |
| LMArena Russian | 1234 | 1209 |
| LMArena Spanish | 1228 | 1234 |
Instruction Following Too close to call
Gemma 2 27B: 60.5 (#249), Phi-4: 60.4 (#251)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| LiveBench Instruction Following | 58.1% | 58.4% |
| LMArena Instruction Following | 1206 | 1201 |
Long Context Too close to call
Gemma 2 27B: 37.3 (#218), Phi-4: 36.9 (#226)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| LMArena Longer Query | 1231 | 1217 |
Writing & Preference Gemma 2 27B leads
Gemma 2 27B: 44.2 (#225), Phi-4: 40.5 (#244)
| Benchmark | Gemma 2 27B | Phi-4 |
|---|---|---|
| LMArena Text | 1231 | 1217 |
| LMArena Creative Writing | 1241 | 1182 |
| LMArena Multi-Turn | 1224 | 1206 |
| LiveBench Language | 32.6% | 25.6% |
| Short-Story Creative Writing | — | 62.6% |
Frequently asked questions
Is Gemma 2 27B better than Phi-4?
Phi-4 is the stronger model overall, scoring 31.2 to 29.4 on the Noometry Index.
Which is cheaper, Gemma 2 27B or Phi-4?
Phi-4 is cheaper. It lists at $0.07 per million input tokens and $0.14 per million output tokens; Gemma 2 27B lists at $0.65 and $0.65.
Is Gemma 2 27B or Phi-4 better for coding?
They score almost the same on coding (34.1 vs 34.4); test both on your own repository before choosing.
Which has the bigger context window?
Phi-4 does, with 128K tokens against 8K.
How many benchmarks do Gemma 2 27B and Phi-4 share?
32 benchmarks have published results for both models. Gemma 2 27B has 34 scored results on Noometry and Phi-4 has 37.