Gemma 2 27B vs GLM 4.7
Updated October 21, 2026. 32 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Only GLM 4.7 has a coding score, 55.1 on the Vibe Coding Index; Gemma 2 27B has none, so the two cannot be ranked on coding.
Gemma 2 27B has the edge where output tokens cost 3.4x less.
- Shared results
- 32
- Gemma 2 27B only
- 4
- GLM 4.7 only
- 48
- Like-for-like categories
- 6 of 9
Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Only GLM 4.7 has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
No call
Only GLM 4.7 has a AA Intelligence Index result, 22.2.
Directional only
Reasoning
GPQA Diamond
No call
Only GLM 4.7 has a GPQA Diamond result, 80.0%.
Directional only
Math
AIME
No call
Only GLM 4.7 has a AIME result, 93.3%.
Directional only
Knowledge
MMLU Pro
No call
Only GLM 4.7 has a MMLU Pro result, 82.7%.
Directional only
Web design
Design Arena: websites
No call
Only GLM 4.7 has a Design Arena: websites result, 1226.
Directional only
Long documents
Listed context window
GLM 4.7
GLM 4.7 takes 205K tokens against 8K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 2 27B
Gemma 2 27B $0.0010, GLM 4.7 $0.0017 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GLM 4.7 has the number, $0.29.
Directional only
At a glance
- Coding index
- Gemma 2 27B not benchmarked, GLM 4.7 55.1 from 2 benchmarks.
- Widest category
- Math, 49.6 points apart on average over 3 shared benchmarks.
- Widest single gap
- OTIS Mock AIME: Gemma 2 27B 1.4% against GLM 4.7 83.3%, 81.9 points apart on a 0 to 100 scale.
- Output price
- Gemma 2 27B $0.65 against GLM 4.7 $2.20 per million output tokens, 3.4x apart.
- Context window
- Gemma 2 27B takes 8K tokens, GLM 4.7 205K.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | Gemma 2 27B | Bars | GLM 4.7 | Ties |
|---|---|---|---|---|
| Coding | 0 | 2 | ||
| Intelligence | 0 | 1 | ||
| Reasoning | 0 | 4 | ||
| Math | 0 | 3 | ||
| Knowledge | 0 | 5 | ||
| General | 0 | 17 | ||
| All shared boards | 0 | 32 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| LMArena WebDev | Not measured | 1435 | Only GLM 4.7 measured |
| AA Coding Index | Not measured | 45.3 | Only GLM 4.7 measured |
| LiveCodeBench (Vals AI) | Not measured | 82.2% | Only GLM 4.7 measured |
| SWE-bench Verified (Vals AI) | Not measured | 69.4% | Only GLM 4.7 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 89.4% | Only GLM 4.7 measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 31.8% | Only GLM 4.7 measured |
| Terminal-Bench | Not measured | 33.4% | Only GLM 4.7 measured |
| ALE-Bench | Not measured | 399.5 | Only GLM 4.7 measured |
| LMArena Text: coding | 1211 | 1454 | GLM 4.7 |
| LMArena Text: software and IT | 1228 | 1453 | GLM 4.7 |
| LMArena WebDev: React | Not measured | 1420 | Only GLM 4.7 measured |
| LMArena WebDev: HTML | Not measured | 1447 | Only GLM 4.7 measured |
| Neither model has a result on the other 26 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | Not measured | 22.2 | Only GLM 4.7 measured |
| Epoch Capabilities Index | 122.1 | 143.6 | GLM 4.7 |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| Design Arena: agents building full-stack apps | Not measured | 1050 | Only GLM 4.7 measured |
| Design Arena: agents building mobile apps | Not measured | 1105 | Only GLM 4.7 measured |
| Design Arena: agents building Android apps | Not measured | 1119 | Only GLM 4.7 measured |
| Design Arena: agents building Godot games | Not measured | 1058 | Only GLM 4.7 measured |
| τ²-Bench Telecom | Not measured | 95.9% | Only GLM 4.7 measured |
| Vending-Bench 2 | Not measured | $2,377 | Only GLM 4.7 measured |
| Neither model has a result on the other 33 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 80.0% | Only GLM 4.7 measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 85.9% | Only GLM 4.7 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 27.4% | Only GLM 4.7 measured |
| GPQA Diamond (Epoch AI run) | 36.5% | 83.3% | GLM 4.7 |
| SimpleBench | Not measured | 47.7% | Only GLM 4.7 measured |
| Chess puzzles | Not measured | 21.0% | Only GLM 4.7 measured |
| LMArena Text: hard prompts | 1198 | 1443 | GLM 4.7 |
| LMArena Text: expert | 1171 | 1424 | GLM 4.7 |
| LMArena Text: hard prompts in English | 1206 | 1452 | GLM 4.7 |
| Neither model has a result on the other 12 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| AIME | Not measured | 93.3% | Only GLM 4.7 measured |
| MGSM (Vals AI) | Not measured | 88.2% | Only GLM 4.7 measured |
| AA Math Index | Not measured | 95.0 | Only GLM 4.7 measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 95.0% | Only GLM 4.7 measured |
| OTIS Mock AIME | 1.4% | 83.3% | GLM 4.7 |
| ProofBench | Not measured | 6.0% | Only GLM 4.7 measured |
| MATH level 5 | 27.9% | Not measured | Only Gemma 2 27B measured |
| LMArena Text: math | 1212 | 1424 | GLM 4.7 |
| LMArena Text: mathematical work | 1221 | 1411 | GLM 4.7 |
| Neither model has a result on the other 4 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 82.7% | Only GLM 4.7 measured |
| LegalBench (Vals AI) | 68.0% | 83.4% | GLM 4.7 |
| CaseLaw (Vals AI) | Not measured | 54.9% | Only GLM 4.7 measured |
| CorpFin (Vals AI) | Not measured | 46.4% | Only GLM 4.7 measured |
| TaxEval (Vals AI) | Not measured | 68.8% | Only GLM 4.7 measured |
| MedQA (Vals AI) | Not measured | 93.7% | Only GLM 4.7 measured |
| MedCode (Vals AI) | Not measured | 32.8% | Only GLM 4.7 measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 85.6% | Only GLM 4.7 measured |
| SimpleQA Verified | Not measured | 32.2% | Only GLM 4.7 measured |
| MMLU | 75.7% | Not measured | Only Gemma 2 27B measured |
| LMArena Text: science | 1228 | 1457 | GLM 4.7 |
| LMArena Text: medicine and healthcare | 1198 | 1469 | GLM 4.7 |
| LMArena Text: legal and government | 1241 | 1444 | GLM 4.7 |
| LMArena Text: business and finance | 1208 | 1429 | GLM 4.7 |
| Neither model has a result on the other 3 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1226 | Only GLM 4.7 measured |
| Design Arena: UI components | Not measured | 1199 | Only GLM 4.7 measured |
| Design Arena: game dev | Not measured | 1188 | Only GLM 4.7 measured |
| Design Arena: data viz | Not measured | 1195 | Only GLM 4.7 measured |
| Design Arena: 3D | Not measured | 1191 | Only GLM 4.7 measured |
| Design Arena: all code categories | Not measured | 1217 | Only GLM 4.7 measured |
| Design Arena: SVG | Not measured | 1143 | Only GLM 4.7 measured |
| Design Arena: ASCII art | Not measured | 1165 | Only GLM 4.7 measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index017
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| MedScribe (Vals AI) | Not measured | 68.6% | Only GLM 4.7 measured |
| IFBench | Not measured | 67.9% | Only GLM 4.7 measured |
| Long context reasoning (AA-LCR) | Not measured | 71.0% | Only GLM 4.7 measured |
| DTBench | 48.0% | Not measured | Only Gemma 2 27B measured |
| LMCA | 7.1% | Not measured | Only Gemma 2 27B measured |
| CL-bench | Not measured | 15.9% | Only GLM 4.7 measured |
| CL-bench Life | Not measured | 10.9% | Only GLM 4.7 measured |
| LMArena Text | 1231 | 1435 | GLM 4.7 |
| LMArena Text: instruction following | 1206 | 1412 | GLM 4.7 |
| LMArena Text: creative writing | 1240 | 1401 | GLM 4.7 |
| LMArena Text: English | 1242 | 1453 | GLM 4.7 |
| LMArena Text: non-English | 1217 | 1417 | GLM 4.7 |
| LMArena Text: Chinese | 1221 | 1495 | GLM 4.7 |
| LMArena Text: German | 1209 | 1426 | GLM 4.7 |
| LMArena Text: Japanese | 1175 | 1439 | GLM 4.7 |
| LMArena Text: Korean | 1174 | 1399 | GLM 4.7 |
| LMArena Text: French | 1248 | 1432 | GLM 4.7 |
| LMArena Text: Spanish | 1228 | 1434 | GLM 4.7 |
| LMArena Text: Russian | 1234 | 1423 | GLM 4.7 |
| LMArena Text: Polish | 1277 | 1435 | GLM 4.7 |
| LMArena Text: multi-turn | 1224 | 1446 | GLM 4.7 |
| LMArena Text: longer queries | 1230 | 1432 | GLM 4.7 |
| LMArena Text: writing and language | 1249 | 1411 | GLM 4.7 |
| LMArena Text: entertainment and media | 1212 | 1400 | GLM 4.7 |
| Neither model has a result on the other 22 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 2 27B | GLM 4.7 | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Gemma 2 27B costs less
Repository review
50K input + 3K output tokens
Gemma 2 27B costs less
Agent loop
200K input + 10K output tokens
Gemma 2 27B costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Google Gemma 2 27B | Z.ai GLM 4.7 |
|---|---|---|
| Maker | Z.ai | |
| Weights | Open weights | Open weights |
| Released | July 13, 2024 | December 22, 2025 |
| Context window | 8K | 205K |
| Input $/Mtok | $0.65 | $0.60 |
| Output $/Mtok | $0.65 | $2.20 |
| Coding index | Not benchmarked | 55.1 |
| Independent measurements behind it | 0 | 2 |
| Cost per solved task | Not computable | $0.29 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 2 27B better than GLM 4.7 for coding?
Only GLM 4.7 has a coding score, 55.1 on the Vibe Coding Index; Gemma 2 27B has none, so the two cannot be ranked on coding. Gemma 2 27B has the edge where output tokens cost 3.4x less.
Which is cheaper, Gemma 2 27B or GLM 4.7?
Gemma 2 27B costs $0.65 per million input tokens and $0.65 per million output tokens; GLM 4.7 costs $0.60 and $2.20. Cost per solved task is known for GLM 4.7 only.
Which has the bigger context window, Gemma 2 27B or GLM 4.7?
GLM 4.7, with 205K tokens against 8K.
How many benchmarks is the Gemma 2 27B vs GLM 4.7 comparison based on?
32 benchmarks have a result for both models as of October 21, 2026. Gemma 2 27B's coding index rests on 0 independent benchmarks and GLM 4.7's on 2. Where only one model has a result, the page says so instead of naming a winner.