FAILURE MODES

37 of 50 Was a Token Cap

Gemini 4 Hydrogen scored 37 of 50 on our text-to-SQL test with output capped at 1,024 tokens, and all 13 misses ended MAX_TOKENS. At an 8,192 cap, chosen after we saw the misses, the same 50 questions scored 50 of 50. The model did not get smarter. It got room.

2026-12-01

Gemini 4 Hydrogen scored 37 of 50 on our text-to-SQL test with output capped at 1,024 tokens. All 13 misses ran out of room at the cap.

We raised the cap to 8,192 and re-ran the same 50 questions: 50 of 50. That second run’s cap was chosen after we saw the misses, and we say so wherever the number appears.

The 45-second reel: 37/50 at the 1,024 cap, 50/50 at 8,192, and the finish reason that explains both.

The failure looks like a model failure

A thinking model returns nothing, or half a query, and the first instinct is to blame the model. The response already says what happened. The finish reason field reads MAX_TOKENS: the model ran out of room, and its thinking counts against the cap.

On question q08 at the 1,024 cap, the thinking used the whole budget and the visible answer was empty. At the 8,192 cap, the same question thought for 3,361 tokens and answered. Same question, same prompt. The cap is generationConfig.maxOutputTokens.

What we ran

Our own test, run November 30, 2026: 50 synthetic questions in 5 tiers of 10, DuckDB 2.0.0. Each answer was scored by running the query and comparing its result set to the gold query’s. Temperature 0, one run per question, the same prompt for both models.

Run 1, at the 1,024 cap, was pre-registered before any model call. Run 2, at the 8,192 cap, had its own pre-registration, but we chose the cap after seeing run 1’s misses.

  • gemini-4-hydrogen, 1,024-token cap: 37 of 50. All 13 misses ended MAX_TOKENS.
  • gemini-4-hydrogen, 8,192-token cap: 50 of 50, with the cap chosen after seeing the misses. With the room, those 13 questions used a median of 1,262 thinking tokens.
  • qwen2.5-coder:32b, run locally, at its own 1,024-token cap: 36 of 50. None of its answers reached that cap, so we did not re-run it.

Limits of this test

n = 50 and one run per question. A one-question gap between the two models at the 1,024 cap is not a difference, and the 8,192-cap 50 of 50 may be a ceiling effect on this set. This shows what happened under these two caps, not Hydrogen’s general SQL accuracy.

What to do

When a model returns an empty or truncated answer, read the finish reason first, before you change the prompt or the model. On Gemini the field is finishReason; other APIs call it finish_reason or stop_reason. MAX_TOKENS means it ran out of room. Raise the cap, then judge the answer.

This post started as an Instagram post →

Sources

Numbers above trace to these sources. If one moved, tell us and we fix it.

Discussion

Talk it through

Argue with us on Instagram.