Benchmark Results [as published at Gemma 4 31B repo]
These models were evaluated against a large collection of different datasets and metrics to cover different aspects of text generation. Evaluation results marked in the table are for instruction-tuned models.
Table with columns: Gemma 4 31B, Gemma 4 26B A4B, Gemma 4 E4B, Gemma 4 E2B, Gemma 3 27B (no think) | Gemma 4 31B | Gemma 4 26B A4B | Gemma 4 E4B | Gemma 4 E2B | Gemma 3 27B (no think) |
|---|
| MMLU Pro | 85.2% | 82.6% | 69.4% | 60.0% | 67.6% |
| AIME 2026 no tools | 89.2% | 88.3% | 42.5% | 37.5% | 20.8% |
| LiveCodeBench v6 | 80.0% | 77.1% | 52.0% | 44.0% | 29.1% |
| Codeforces ELO | 2150 | 1718 | 940 | 633 | 110 |
| GPQA Diamond | 84.3% | 82.3% | 58.6% | 43.4% | 42.4% |
| Tau2 (average over 3) | 76.9% | 68.2% | 42.2% | 24.5% | 16.2% |
| HLE no tools | 19.5% | 8.7% | - | - | - |
| HLE with search | 26.5% | 17.2% | - | - | - |
| BigBench Extra Hard | 74.4% | 64.8% | 33.1% | 21.9% | 19.3% |
| MMMLU | 88.4% | 86.3% | 76.6% | 67.4% | 70.7% |
| Vision | | | | | |
| MMMU Pro | 76.9% | 73.8% | 52.6% | 44.2% | 49.7% |
| OmniDocBench 1.5 (average edit distance, lower is better) | 0.131 | 0.149 | 0.181 | 0.290 | 0.365 |
| MATH-Vision | 85.6% | 82.4% | 59.5% | 52.4% | 46.0% |
| MedXPertQA MM | 61.3% | 58.1% | 28.7% | 23.5% | - |
| Audio | | | | | |
| CoVoST | - | - | 35.54 | 33.47 | - |
| FLEURS (lower is better) | - | - | 0.08 | 0.09 | - |
| Long Context | | | | | |
| MRCR v2 8 needle 128k (average) | 66.4% | 44.1% | 25.4% | 19.1% | 13.5% |
Core Capabilities
Gemma 4 models handle a broad range of tasks across text, vision, and audio. Key capabilities include:
- Thinking – Built-in reasoning mode that lets the model think step-by-step before answering.
- Long Context – Context windows of up to 128K tokens (E2B/E4B) and 256K tokens (26B A4B/31B).
- Image Understanding – Object detection, Document/PDF parsing, screen and UI understanding, chart comprehension, OCR (including multilingual), handwriting recognition, and pointing. Images can be processed at variable aspect ratios and resolutions.
- Video Understanding – Analyze video by processing sequences of frames.
- Interleaved Multimodal Input – Freely mix text and images in any order within a single prompt.
- Function Calling – Native support for structured tool use, enabling agentic workflows.
- Coding – Code generation, completion, and correction.
- Multilingual – Out-of-the-box support for 35+ languages, pre-trained on 140+ languages.
- Audio (E2B and E4B only) – Automatic speech recognition (ASR) and speech-to-translated-text translation across multiple languages.
SEE MORE:
https://huggingface.co/google/gemma-4-31B-it
SAMPLE GENERATION [from fine tune]
Q4KS, LMStudio ; non imatrix, manually activated thinking in Jinja template.
More generations at:
https://huggingface.co/DavidAU/gemma-4-31B-it-Mystery-Fine-Tune-HERETIC-UNCENSORED-Thinking-Instruct-GGUF
The Blood of Rebellion
System
User
Using the following "story idea" below, write the first scene a horror novel introducing the young woman. This scene should start in the middle of the action, include dialog, vivid passages, and end on a cliffhanger relevant to the story idea but it should also be unexpected. The scene should be 1000 words long and escalate in conflict and suspense and be written in first person, present tense with the point of view character being the young woman. The pov character will CURSE AND SWEAR, and generally have a "filthy" mouth.
Story idea:
In a world ruled by dictatorship, a rebel young woman leads a rebellion against the system. Despite the risks, she fights to overthrow the dictator and restore democracy to her country. The government executes her for treason, but she sticks to her beliefs and is responsible for starting the revolution.
Assistant
<|channel>thought
-
Story Idea: Young woman leads a rebellion against a dictatorship, gets executed for treason, but her death sparks a revolution.
-
Task: Write the first scene of the novel.
-
POV: First-person, present tense.
-
Character traits: Young woman, rebellious, foul-mouthed.
-
Requirements:
-
Start in the middle of the action (in media res).
-
Include dialogue.
-
Vivid passages.
-
Escalating conflict and suspense.
-
End on an unexpected cliffhanger relevant to the story idea.
-
<channel|>
The chair is cold against my bare skin, and the damn zip-ties are biting into my wrists. I can smell ozone and burnt hair—the telltale scent of a high-voltage stun prod. My head is throbbing, a dull, rhythmic beat that echoes the blinking red light of the security camera in the corner of the room.
Across from me, sitting behind a polished obsidian desk, is Director Vane. He looks like he stepped out of a fucking brochure for the Ministry of Order: silver hair slicked back, a suit that costs more than my life is worth, and a smile that doesn't reach his eyes.
"You're making this very difficult, Elara," Vane says, his voice a smooth, practiced purr.
"I don't give a shit what I'm making," I spit. I try to shift my weight, but the chair is bolted to the floor and my legs are locked in place. "Just get on with it."
Vane sighs, leaning forward. The movement is predatory, the kind of thing a cat does right before it rips a bird’s throat out. "We don't want to hurt you. We just want the names of the people who helped you infiltrate the Sector Four archives. Give us the names, and you can go back to your comfortable life. You can forget all this ever happened."
I let out a dry, hacking laugh. "My comfortable life? You call living in a concrete box under a fucking curfew comfortable?"
Vane doesn't flinch. "You have a gift for rhetoric, Elara. It's a shame you're using it for such a pathetic cause. Democracy is a dead concept. An obsolete dream. All it does is create division and chaos. The State provides order. The State provides safety."
"The State provides a boot on our necks," I snap. "And I'm just trying to push it off."
Vane stands up slowly, walking around the desk. He stops just inches away from me. He smells like peppermint and death. He leans down, his face close enough to mine that I can see the tiny broken capillaries in his nose.
"You're not a patriot, are you?" he whispers. "You're just a broken girl playing soldier."
"I'd rather be a broken soldier than a loyal little bitch like you," I say, staring him straight in the eye.
The slap is so fast I don't even see it coming. My head snaps to the side, a sharp sting blossoming across my cheek. I don't cry out. I don't give him the satisfaction. I just turn my face back to him, a thin trail of blood beginning to leak from the corner of my mouth.
"You're a stubborn one, aren't you?"
"I've been called worse."
He smiles, a thin, cruel line. "I suppose you have. You think you're a hero, don't you? A symbol of resistance. But you're nothing. You're a footnote in a history book that no one will ever read because we'll burn it before it ever reaches the press."
I stare at him, my heart hammering against my ribs like a trapped bird. I want to scream, to fight, to tear his throat out with my teeth, but I can't move. The fear is there, cold and heavy in my gut, but beneath it is a white-hot anger that keeps me upright.
"I know what you are," I whisper. "You're a coward hiding behind a desk. You're terrified of a twenty-year-old girl because you know that if one of us dares to say no, the whole fucking house of cards comes crashing down."
Vane's eyes narrow. He doesn't like it when I'm right. He stands up straight, smoothing the front of his jacket.
"Very well. You've had your say. Now it's time to make an example of you."
He gestures to the door, and two guards enter, their boots clicking rhythmically on the sterile floor. They grab me by the arms and haul me out of the chair. I struggle, kicking out, trying to catch one of them in the groin, but they've got me pinned.
"Take her to the Square," Vane orders.
"The Square?" I demand. "What the hell is that supposed to mean?"
Vane doesn't answer. He just watches as the guards drag me down the corridor. I can hear the distant roar of a crowd, the sound of a thousand voices chanting something I can't make out. The guards shove me through a set of heavy steel doors and suddenly the air is colder, the light brighter.
I blink against the glare. I'm standing on a raised platform in the middle of a massive plaza. Below me, a sea of people are gathered, their faces blurred by the distance. At the far end of the Square, a large screen displays the face of the High Arbiter, the dictator who has kept this city in a stranglehold for twenty years.
A man steps out from the shadows behind me. He's wearing a military uniform, a sidearm holstered at his hip. He holds a pistol in his hand, the barrel pointed straight at my chest.
I look at him, and my breath hitches in my throat. I know him.
It's Julian. My brother. My brother, who was executed three years ago for opposing the State.
He looks older, his face scarred, his eyes cold and vacant. He doesn't look at me, he just stares straight ahead, his finger resting on the trigger.
"Julian?" I whisper, the word barely leaving my lips.
He doesn't respond.
"Julian, it's me. It's Elara. How are you alive?"
He still doesn't look at me. His voice is monotone, a perfect imitation of the State's brainwashing. "The prisoner will be executed for treason against the State."
"Julian, look at me! Look at me! It's your sister!"
He turns his head just a fraction, his eyes meeting mine for a split second. In that moment, I see a flicker of the brother I knew—the one who used to sneak me extra rations when I was hungry, the one who taught me how to pick a lock.
"Run," he whispers, so softly I can barely hear it.
Before I can react, Julian turns the gun toward the guards and opens fire.