Why Gemma 4 gives an empty response

In 18 timed runs the model spent most of its tokens on thinking nobody sees. With 600 tokens allowed, it ran out before answering in 6 runs of 15.

0:00

Give Gemma 4 a tight token limit and the reply can come back empty. We counted the tokens in 18 runs of the 31B model to see why. In every run the model spent most of its tokens on thinking the reader never sees, and when the allowance was 600 tokens it ran out before answering in 6 runs of 15.

Why is my Gemma 4 response empty?

Because the token limit ran out while the model was still thinking. Gemma 4 reasons privately before it writes, and that reasoning counts against the same limit as the answer. LM Studio reports it separately as reasoning tokens. If the limit is reached first, the visible reply is blank even though the model worked for the full time.

How many tokens does Gemma 4 spend thinking?

With 600 tokens allowed, thinking took between 408 and 597 of them in every run. The explanation task never produced a visible word. We sorted the 15 runs by task, and the empty replies were not spread evenly.

Task Thinking tokens in three runs Runs with no answer
Explain how a heat pump works 597, 597, 597 3 of 3
Write a short Python function 597, 597, 484 2 of 3
Summarise a trade off 448, 449, 597 1 of 3
List ten checks 423, 423, 408 0 of 3
Work out a train time 469, 486, 486 0 of 3

Even the runs that did answer were cut short. All 15 stopped at the 600 token limit with the answer unfinished.

How many tokens should I allow for Gemma 4 31B?

We ran three of the tasks again with 3,000 tokens allowed, and let the model stop on its own.

Task Tokens used Of which thinking Time taken
Explain, about 250 words 1,032 777 91 seconds
Python function 1,354 610 119 seconds
Summary, about 200 words 711 465 63 seconds

For a reply of a few hundred words, allow at least 1,500 tokens. The model asked for between 465 and 777 tokens of thinking before answers that were themselves only 250 to 750 tokens long.

Does the thinking make Gemma 4 slower?

It does not change the rate, which held at about 11.7 tokens a second on our machine. It changes the wait. At that rate, 600 tokens of thinking is 50 seconds of silence before the first visible word.

Does the thinking help?

On the one task where we could mark the answer, yes. Asked how many pump stations a 3,806 token document mentioned, the model answered 120, which is correct, in four runs of four. It used 168 of its 176 tokens to get there.

We also gave this model to three coding agents on one brief. What each made of it is in Pi vs OpenCode vs Hermes on the same local model.

Which kinds of question leave Gemma 4 with an empty response?

Open ones. The explanation of a heat pump came back empty three times in three. The Python function came back empty twice, and the summary once. The list and the worked sum always answered. The thinking is longest where the question gives the model the most freedom over what to say, and shortest where the shape of the answer is fixed. A request for “ten checks, one sentence each” tells the model when it is done planning. A request to “explain” does not.

Is the empty response only a Gemma 4 problem?

No. We ran the same 15 prompts with the same 600 token limit through four other models on the same Mac. Gemma did best of the five.

Model Runs with no answer at 600 tokens
Gemma 4 31B 6 of 15
Qwen 3.8 27B 9 of 15
Bonsai 27B 15 of 15
Qwen 3.6 35B-A3B 15 of 15
GLM 4.7 Flash 15 of 15

Three of the four newer models never produced a visible word. Each spent all 600 tokens thinking in every run. So this is a trait of current thinking models in general, and Gemma 4 is on the milder side of it. If you have moved to another model to escape empty replies, check that it has not made them worse.

Does Gemma 4 give empty replies in Ollama as well as LM Studio?

Yes. We loaded the same model file in Ollama and repeated the test. With thinking left on, 7 of 15 runs returned no answer, against 6 of 15 in LM Studio. The tasks that failed were much the same: the Python function and the worked sum failed three times in three, and the explanation once. The program is not the cause. The model’s own thinking is, and it happens wherever the model runs with thinking on and a limit this low.

How do I fix a Gemma 4 empty response?

There are three ways, and we have tried each.

  1. Give it more tokens. With no tight limit, the explanation that failed three times at 600 tokens finished in 1,032 tokens, 777 of them thinking. As a rule of thumb from this run, allow about four times the length of the answer you want.
  2. Turn the thinking off. In Ollama, one setting did it: with thinking off, 0 of 15 runs were empty and the typical reply took 27.2 seconds.
  3. Ask for less thinking through the server. In LM Studio we sent one prompt to Qwen 3.8 with 1,200 tokens allowed. By default all 1,200 went on thinking and the answer was empty. With the reasoning effort set to none, the same prompt was answered in 152 tokens. Writing “no think” in the prompt changed nothing. We did not repeat that with Gemma.

How can I tell an empty response from a crash?

Look at why the model stopped. In all 15 of our runs the server reported that the reply ended because it reached the token limit, and the count of tokens written was exactly 600. A model that has crashed or timed out does not report a full allowance. If your tool shows a finish reason of “length” and an empty message, the model was still thinking when it was cut off. The fix is one of the three above, not a restart.

What token limit stops Gemma 4 giving an empty response?

There is no single safe number, because the thinking grows with the question. In our runs it took between 408 and 597 tokens before any answer began, so a limit of 600 leaves almost nothing. A limit of 1,200 would have covered every task in this test with room for a few paragraphs. If your program lets you set the limit per request, set it by the kind of question: a short factual answer needs less headroom than an essay.

What we did not test

Beyond turning the thinking off in Ollama, we changed no setting for Gemma, so we cannot say how it behaves with its thinking limited rather than off. We tested one build, the QAT Q4_0 file described on Google’s model card, on one machine: a Mac with an M4 Pro chip and 48 GB of memory, on macOS 27.0.1, in LM Studio’s llama.cpp Metal runtime 2.47.0 and in Ollama 0.32.6. The Gemma runs were made on 3 October 2026, and the other four models and the Qwen 3.8 reasoning effort check on 4 and 5 October 2026. The speed and memory figures are in our review, and the method for timing a model is in our guide.

Sources

  1. Google's Gemma 4 31B QAT model card
Cite this page

Hill. "Why Gemma 4 gives an empty response". Onticpost, published 3 October 2026, updated 24 October 2026. https://onticpost.com/gemma-4-empty-response-thinking-tokens/

Updated 24 October 2026. This address stays the same when the piece is updated.

Share this

Subscribe to our newsletter

Checked: what AI can do for your business, checked by humans. Free, every Friday. One email a week, leave any time.

Free, every Friday. We send a link to confirm first. Our privacy policy says what we keep.