Devstral 2 vs Gemma 4 31B
Wins 0 of 6 areas
—
Wins 5 of 6 areas
Coding · Agents · Reasoning · Long documents · Following instructions
Gemma 4 31B is the stronger all-rounder.
Scores updated · 22 tests both models report · How we compare
Where each one wins
Tests won in each of the six areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.
- ReasoningHard problems that need careful thinking03Gemma 4 31B3 of 3 tests
- CodingWriting and fixing software24Gemma 4 31B4 of 6 tests
- AgentsCarrying out multi-step tasks on its own02Gemma 4 31B2 of 3 tests · 1 tie
- Long documentsFinding answers in very long texts01Gemma 4 31B1 of 1 test
- Following instructionsDoing exactly what it is asked01Gemma 4 31B1 of 1 test
- FactsGetting facts right instead of making them up00Even0 each · 2 ties
Long documents and following instructions rest on a single test each.
What it costs
Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.
Gemma 4 31B costs 76% less for the same work.
The biggest differences
The tests each model wins by the widest margin, up to three each. Scores are out of 100.
Where Gemma 4 31B pulls ahead
- Follows unfamiliar, precisely checkable instructionsIFBench+37.5points ahead
- Reasons across sets of long documentsAA-LCR+37.4points ahead
- Graduate-level biology, physics and chemistry questionsGPQA Diamond+26.3points ahead
Where Devstral 2 pulls ahead
- Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+9.6points ahead
- Fixes real GitHub issues in Python projectsSWE-bench Verified+1.8points ahead
Every test, side by side
All 22 tests both models report. The winning score is in its model's colour; marks a score checked independently.
CodingGemma 4 31B
- Terminal-Bench HardGemma 4 31B by 17.518.936.4+17.5
- LMArena · WebDevGemma 4 31B by 171 rating points11941365+171 rating
- Terminal-Bench 2.1Gemma 4 31B by 13.130.343.4+13.1
- SciCodeGemma 4 31B by 12.732.845.5+12.7
- SWE-bench MultilingualDevstral 2 by 9.661.351.7+9.6
- SWE-bench VerifiedDevstral 2 by 1.853.852+1.8
AgentsGemma 4 31B
- τ-Bench V3 · BankingGemma 4 31B by 4.310.514.8+4.3
- GDPValGemma 4 31B by 3.72.46.1+3.7
- Terminal-Bench 4.0tie00tie
ReasoningGemma 4 31B
- GPQA DiamondGemma 4 31B by 26.359.485.7+26.3
- Humanity's Last ExamGemma 4 31B by 203.623.6+20
- CritPtGemma 4 31B by 1.401.4+1.4
FactsEven
- AA-Omniscience · Accuracytie20.820tie
- AA-Omniscience · Non-hallucinationtie14.715tie
Following instructionsGemma 4 31B
- IFBenchGemma 4 31B by 37.538.175.6+37.5
Other results6 tests, not counted
Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.
- τ²-Bench Telecom (AA run)Gemma 4 31B by 3524.959.9+35
- Artificial Analysis Coding IndexGemma 4 31B by 12.131.343.4+12.1
- Terminal-Bench 2.0Gemma 4 31B by 10.332.642.9+10.3
- AA IntelligenceGemma 4 31B by 6.18.614.7+6.1
- AA Agentic IndexGemma 4 31B by 1.84.96.7+1.8
- AA-OmniscienceDevstral 2 by 1.2-46.7-47.9+1.2
Questions people ask
Which is better, Devstral 2 or Gemma 4 31B?
Gemma 4 31B wins five of the six areas where both have results: coding, agents, reasoning, long documents and following instructions. Devstral 2 wins none. They are level on facts.
Which is better for coding?
Gemma 4 31B. It wins 4 of the 6 coding tests both models report; Devstral 2 wins 2.
Which is cheaper?
Devstral 2 costs $0.40 per million input tokens and $2.00 per million output tokens; Gemma 4 31B costs $0.17 and $0.40. That makes Gemma 4 31B about 76% cheaper for the same work.
How do you compare the two?
We use the 22 benchmark tests both models have published scores on. The verdict counts the 16 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 6 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.