HIROSE PAPER MFG. CO., LTD.

Employees' Blog

Gemma 4 26B vs Nemotron 3.5 Bolt 74B: Seconds per Request, Not Tokens per Second
Compare self-hosted LLMs by seconds per request and correct answers, not tokens per second

Published on: 2026.11.17 Last updated: 2026.11.17
Two delivery vehicles heading for a finish line: the one with the bigger tok/s speedometer reading drags a long freight train and arrives later, while the one with the smaller reading carries a single small parcel and finishes first; labeled 'Faster tok/s, later finish', 'tok/s' and 'seconds'

When you pick an LLM to run on your own GPU box, the first number you see is usually tok/s: how many tokens the model generates per second. Bigger looks faster, so it is tempting to pick the biggest. But your application does not care about tok/s. It cares how many seconds pass between sending a request and getting an answer, and whether that answer is right.

I put two models on one NVIDIA DGX Spark (GB10) with two llama-server processes: Gemma 4 26B-A4B and Nemotron 3.5 Bolt 74B-A9B (Gemma and Bolt from here on). The DGX Spark gives the CPU and GPU the same 128 GB of memory, and llama-server is the OpenAI-compatible HTTP server that ships with llama.cpp, a runtime for running LLMs locally. Both models are Mixture-of-Experts (MoE) models, which pick only some of their experts (groups of weights) for each input. Gemma has 25.2B parameters in total and 3.8B active; the “A4B” in its name means “about 4B active parameters” (the model card, Hugging Face’s model page, lists 3.8B in its table). Bolt has 74B in total and 9B active.

The setups are not matched. Gemma runs at Q8_0 and Bolt at 2-bit quantization (storing weights with fewer bits to save memory and compute), the llama.cpp builds differ (b1-63d93d1 for Gemma, b1-3ed7284 for Bolt), and so do the launch flags. What I did hold fixed were the requests, the prompts, and temperature 0.

One more thing before the numbers: all the text I send is Japanese. That matters because the same Japanese text turned out to be a different number of tokens in each model (see below), and several results depend on it. The evaluation data is fictional: a classification task that picks the matching item from 160 help-center entries of an imaginary online shop, and a form-filling task on 24 requests for an imaginary hotel booking form. This is one machine, measured once, so it is not a verdict on which model is better. Read every number as “under these conditions”.

Seconds per request is reading plus generating

An LLM request has two phases. First the model reads the whole prompt (prefill), then it writes the answer one token at a time (decode). A token is the unit the model cuts text into, roughly a word or a fragment of one.

NVIDIA’s technical blog on inference optimization points out that two LLMs with similar tokens per second are not necessarily equivalent if they use different tokenizers. A tokenizer is the component that cuts text into tokens. Beyond that, tok/s only describes the second of the two phases.

So what decides the seconds? llama-server returns a timings field with the number of tokens and the time spent on each phase. Here is a minimal script that prints both.

// Print the seconds one request takes, next to the timings breakdown llama-server returns
const BASE = process.argv[2]; // e.g. http://127.0.0.1:8080
const body = {
  // The prompt stays in Japanese: Japanese text is what this comparison is about
  // ("List three ways to get from Tokyo to Osaka, one per line.")
  messages: [{ role: "user", content: "東京から大阪へ行く方法を 3 つ、1 行ずつ挙げてください。" }],
  max_tokens: 200,
  temperature: 0,
  // Some models think (reason) by default. Turn it off explicitly when comparing (or turn it on for both)
  // chat_template_kwargs is a llama-server extension (not part of the OpenAI API)
  chat_template_kwargs: { enable_thinking: false },
};

for (let i = 1; i <= 3; i++) {
  const t0 = performance.now();
  const res = await fetch(`${BASE}/v1/chat/completions`, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify(body),
  });
  const json = await res.json();
  const seconds = (performance.now() - t0) / 1000;
  const t = json.timings; // a llama-server extension (not part of the OpenAI API)
  console.log(
    `run ${i}: total ${seconds.toFixed(2)} s` +
      ` | prompt ${t.prompt_n} tokens (cached ${t.cache_n}) ${(t.prompt_ms / 1000).toFixed(2)} s` +
      ` | generated ${t.predicted_n} tokens ${(t.predicted_ms / 1000).toFixed(2)} s (${t.predicted_per_second.toFixed(1)} tok/s)`,
  );
}

I checked this on Node.js v22. It uses top-level await, so save it as measure.mjs (any name ending in .mjs) and run node measure.mjs http://127.0.0.1:8080.

In timings, cache_n is the number of prompt tokens reused from the previous request. Here is the output against the two servers. The lines starting with == are headers I added by hand to show which server answered; everything else is the output as printed.

== Gemma 4 26B-A4B
run 1: total 1.29 s | prompt 30 tokens (cached 0) 0.10 s | generated 54 tokens 1.04 s (51.7 tok/s)
run 2: total 1.16 s | prompt 30 tokens (cached 0) 0.09 s | generated 54 tokens 1.04 s (51.9 tok/s)
run 3: total 1.15 s | prompt 30 tokens (cached 0) 0.09 s | generated 54 tokens 1.04 s (51.9 tok/s)
== Nemotron 3.5 Bolt 74B-A9B
run 1: total 0.85 s | prompt 4 tokens (cached 32) 0.11 s | generated 26 tokens 0.64 s (39.1 tok/s)
run 2: total 0.76 s | prompt 4 tokens (cached 32) 0.10 s | generated 26 tokens 0.64 s (39.3 tok/s)
run 3: total 0.76 s | prompt 4 tokens (cached 32) 0.10 s | generated 26 tokens 0.64 s (39.1 tok/s)

On tok/s alone, Gemma wins by a mile: about 52 against about 39. Yet per request, Gemma takes about 1.16 s and Bolt about 0.76 s, so Bolt finishes first. The prompt cache differs (Gemma 0, Bolt 32), but reading takes around 0.1 s on both, so the cache does not explain the gap.

The reason is the length of the answer. Bolt finished in 26 tokens and Gemma wrote 54. Bolt’s answer was three short lines naming the bullet train, the express bus and a flight. I did not record Gemma’s answer, so I cannot compare the content.

Two conveyor belts with a read stage followed by a generate stage, with belt length proportional to seconds: Gemma runs at 52 tok/s but takes 1.16 s in total, while Bolt runs at 39 tok/s and finishes first at 0.76 s; labeled 'Gemma', 'Bolt', 'Read prompt', 'Generate', '52 tok/s', '39 tok/s', '1.16 s' and '0.76 s'
Figure 1: Seconds per request = reading + generating. A higher generation speed can still finish later if it writes more tokens

A pitfall: without turning thinking off, the answer comes back empty

The line chat_template_kwargs: { enable_thinking: false } in the script is not decoration. Thinking means the model reasons before it answers, and Bolt starts thinking if you do not say otherwise. Sending the same request without that line gave this:

{} | finish length | out 200 | reasoning chars 614 | content: ""
{"chat_template_kwargs":{"enable_thinking":false}} | finish stop | out 26 | reasoning chars 0 | content: "新幹線で移動する。\n高速バスで移動する。\n飛行機で移動する。"

The first line is the request with no setting. The model used up all 200 tokens of max_tokens on thinking (finish length), and the answer text came back empty. No error is raised, so it is easy to conclude that “this model answers nothing”. (The second line’s answer is the three Japanese lines: take the bullet train, take the express bus, take a plane.)

The Gemma server, on the other hand, had thinking switched off at launch. When you compare, switch thinking off for both or on for both. Everything about thinking later in this post was measured on Bolt only.

The same sentence is a different number of tokens in each model

A different tokenizer means a different token count for the same string. I counted with llama-server’s /tokenize:

TextCharactersGemmaBolt
Classification system prompt (Japanese, 160 help items)4,8153,0124,221
Booking system prompt (Japanese)739370450
One-line JSON (plain JSON.stringify)1073843
Indented JSON (JSON.stringify(x, null, 2))1758169
English sentence “The quick brown fox jumps over the lazy dog.”441010

For the Japanese classification prompt, Bolt produced about 40% more tokens (4,221 against 3,012). For the English sentence both give 10, so the gap comes from the Japanese text. That is specific to these two models and these strings, and I would not turn it into a rule about tokenizers, but if your users write in Japanese it is worth measuring.

JSON is a little surprising. Packed onto one line, Bolt uses more tokens; indented, Bolt uses fewer. Differences in how whitespace and newlines are split may explain it, but I did not check. All I can say is that “which model is better at JSON” is not the right question.

This also shows up in the shape of the output. I asked for the booking form to be filled in, with a JSON schema attached (a mechanism that restricts the model’s output to JSON matching the schema; llama.cpp calls it a grammar constraint). The content was identical but the indentation differed:

Gemma (169 tokens)
{
  "intent": "fill",
  "fill": [
    {
      "key": "guestName",
      "value": "山田太郎"
    },
    ...(5 items)
  ],
  "notOnForm": []
}

Bolt (116 tokens)
{
  "intent": "fill",
  "fill": [
    {"key": "guestName", "value": "山田太郎"},
    ...(5 items)
  ],
  "notOnForm": []
}

(The model and token-count lines and the ...(5 items) placeholders are my annotations. The value of guestName is a Japanese person’s name, part of the test data.) Gemma spreads each item over four lines and Bolt packs it onto one, so the same information costs 169 tokens against 116. Without the schema, both models returned an object (a dictionary) instead of the array I asked for, and Gemma wrapped it in a Markdown code block, which an application cannot parse as JSON directly. That is a problem before token counts even matter.

A faster generator can still finish later

Does the model with the higher generation speed always finish first? I ran classification and booking requests sequentially, three times each, and took the median. “Total” is seconds per request and “output” is the number of generated tokens.

RequestGemma total / output tokens / generation tok/sBolt total / output tokens / generation tok/s
Classification, no cache2.65 s / 43 / 43.2 (read 3,044 tok in 1.49 s)4.22 s / 26 / 36.6 (read 4,253 tok in 3.44 s)
Classification, cached1.04 s / 43 / 43.40.81 s / 26 / 36.4
Booking, with JSON schema4.12 s / 169 / 48.13.18 s / 116 / 38.4
Booking, no schema2.12 s / 98 / 49.02.34 s / 86 / 38.5

Gemma’s generation speed is higher in every row, 43 to 49 against 36 to 39 tok/s. Even so, Bolt finishes first on the cached classification and the booking with a schema. In the classification, Gemma returned three candidates and Bolt two, so the content differs and Bolt’s answer is shorter. A model that answers briefly can win at a lower tok/s.

Then the order flips for uncached classification. Reading took 1.49 s for Gemma’s 3,044 tokens and 3.44 s for Bolt’s 4,253, and the slower read ate Bolt’s generation advantage. The no-schema booking also goes to Gemma, so who wins depends on the request type and settings.

One more thing I noticed: for Gemma’s booking with a schema, the round trip was 4.12 s, but timings accounts for only 3.61 s (prompt plus generation). About 0.5 s sits outside timings. I did not find the cause. Since what your application feels is the round trip, measure it yourself as well and put it next to timings.

Longer contexts, and what overflows when requests run together

Longer prompts make everything slower. The context is everything the model holds at once, prompt plus answer, in tokens. I fixed the output at 256 tokens, disabled the cache, and varied only the context length, and generation speed degraded differently:

Context lengthGemma generation tok/sBolt generation tok/s
about 1,000 tokens48.3 to 48.739.2 to 39.3
about 31,000 tokens37.8 to 37.937.6

Gemma drops from 48.5 to 37.9 tok/s, about 20%, while Bolt barely moves from 39.3 to 37.6. At 31k they are nearly even. Prompt reading ran at about 1,770 to 2,110 tok/s for Gemma and about 980 to 1,310 tok/s for Bolt. But this compares the same number of tokens. Remember that the same Japanese text is about 40% more tokens for Bolt.

The bigger difference appears when requests run at the same time. llama-server has slots, which are lanes that process requests simultaneously. Both servers here ran 4 slots sharing one KV cache (the memory that keeps the computed state of past tokens). Bolt was launched with --parallel 4 --kv-unified, and the context length is set with -c.

I sent the same 11,747-character prompt in 4 parallel streams for 30 seconds. That prompt is a different number of tokens per model: 7,338 for Gemma and 10,216 for Bolt. Four of them total about 29.4k for Gemma and about 40.9k for Bolt.

== gemma (-c 32768, 4 slots, shared KV cache)
prompt chars=11747 tokens=7338
concurrency | ok | failed | per min | median s | p90 s | errors
4 | 6 | 0 | 8.9 | 26.20 | 34.06 |
== bolt (-c 32768, 4 slots, shared KV cache)
prompt chars=11747 tokens=10216
concurrency | ok | failed | per min | median s | p90 s | errors
4 | 0 | 8 | 0.0 | 0.00 | 0.00 | HTTP 500: {"error":{"code":500,"message":"Context size has been exceeded.","type":"server_error"}}
== bolt (-c 131072)
prompt chars=11747 tokens=10216
4 | 4 | 0 | 6.2 | 38.85 | 38.90 |

(The == header lines are hand-written annotations.) With the same -c 32768, Gemma succeeded every time, while all 8 of Bolt’s requests failed with Context size has been exceeded. With the context widened to 128k (-c 131072), Bolt completed 4 requests. The same amount of text, counted differently by the tokenizer, changes how many requests you can run at once.

In a 4-slot, shared-KV-cache setup, three tanks side by side: Gemma's four requests total about 29.4k and stay below the 32k line of the first tank, Bolt's four total about 40.9k and stick out above the 32k line of the second tank, and in a third tank four times taller (128k) Bolt's four fit; labeled '32k context', 'Gemma, 4 requests: about 29.4k', 'Bolt, 4 requests: about 40.9k', 'Overflow' and 'At 128k it fits'
Figure 2: In this setup (4 slots, shared KV cache), with 4 requests at once, the shared context is used up by the total token count. Gemma’s four fit in 32k; Bolt’s four overflow

Is the limit per request, or for the total? To check, I ran one more test. A 9,586-token request on Gemma succeeds when sent alone. Sent 4 at a time (about 38.3k in total), all of them failed.

prompt chars=15362 tokens=9586
concurrency | ok | failed | per min | median s | p90 s | errors
1 | 8 | 0 | 14.4 | 3.99 | 5.49 |
4 | 0 | 8 | 0.0 | 0.00 | 0.00 | HTTP 500: {"error":{"code":500,"message":"Context size has been exceeded.","type":"server_error"}}

Looking at each slot’s context length through the server’s /slots endpoint, all four show the value of -c as is (32768 for Gemma), so the context is not split evenly between slots. In this setup (4 slots, shared KV cache), then, the context is used up by the total of all requests. On overflow, it was not only the request that stuck out that failed: every request sent at the same time failed. I did not test a setup without the shared KV cache, so I cannot say what its limit is.

What about memory? nvidia-smi per-process usage was 28,803 MiB for Gemma at 32k, 21,876 MiB for Bolt at 32k, and 22,741 MiB for Bolt at 128k. Quadrupling Bolt’s context added only about 865 MiB, and it stays smaller than Gemma at 32k. This is a per-process figure and does not separate weights, the KV cache and other buffers.

Speculative decoding helps depending on what is being written

One way to cut seconds is speculative decoding: a small draft model guesses the next few tokens and the main model checks them in one pass. Leviathan et al. state that this speeds things up without changing the output. I attached DFlash (a speculative-decoding implementation with a draft model of about 1 GB) to Bolt and first measured single requests.

RequestNo draft modelDFlash
Booking, with schema (116 tokens)3.18 s, 38.4 tok/s1.29 s, 113.6 tok/s
Classification, cached (26 tokens)0.81 s, 36.4 tok/s0.57 s, 58.7 tok/s
Classification, no cache4.22 s (reading 3.44 s)4.56 s (reading 4.03 s)

Short JSON with a fixed shape got about 3 times faster, while the uncached classification got slower: reading went from 3.44 s to 4.03 s and the total grew with it.

For free-form text (256 forced tokens), DFlash gave 70.4 tok/s at a 1,000-token context and 57.4 tok/s at 31,000, roughly 1.8 times down to 1.5 times the speed without a draft model. So the gain depends on what is being written. I did not measure the acceptance rate, meaning how many of the draft tokens were accepted.

Concurrency needs care too. With booking requests run in parallel, DFlash went from 52.4 requests per minute at concurrency 1 to 61.1 at concurrency 4, which is not much growth. Even so, at concurrency 4 DFlash completed the most: 61.1 per minute against 35.7 without a draft model and 43.4 for Gemma.

The output should not change, yet across the 24 booking requests, 23 were byte-for-byte identical with and without DFlash. The remaining one (h14) is the same JSON and differs only in whitespace. Both configurations got 22 of 24 right. The “h” numbers like h14 are IDs of the cases within the 24 booking requests.

Temperature 0 does not guarantee the same answer

One of the concurrency numbers looked wrong. With only booking requests repeating at concurrency 1, the median on the no-draft-model side was 4.62 s, 1.5 s slower than the sequential 3.18 s. timings showed 179 generated tokens instead of 116.

After restarting Bolt and repeating only the booking request, this answer came back every time, with the number of adults empty:

{
  "intent": "fill",
  "fill": [
    {"key": "guestName", "value": "山田太郎"},
    {"key": "checkIn", "value": "2026-12-24"},
    {"key": "checkOut", "value": "2026-12-26"},
    {"key": "adults", "value": ""},
    {"key": "children", "value": ""},
    {"key": "roomType", "value": "twin"},
    {"key": "breakfast", "value": ""},
    {"key": "arrivalTime", "value": ""},
    {"key": "phone", "value": ""},
    {"key": "note", "value": ""}
  ],
  "notOnForm": []
}

Temperature was 0 and the prompt was identical. My first suspicion was how the prompt was split between cache and fresh reading, so I tried three ways: no cache, fully cached, and partly reused.

A fresh 1 prompt_n=586 cache_n=0 out=179 adults="" keys=10
A fresh 2 prompt_n=586 cache_n=0 out=179 adults="" keys=10
A fresh 3 prompt_n=586 cache_n=0 out=179 adults="" keys=10
B primed 1 prompt_n=4 cache_n=582 out=179 adults="" keys=10
B primed 2 prompt_n=4 cache_n=582 out=179 adults="" keys=10
B primed 3 prompt_n=4 cache_n=582 out=179 adults="" keys=10
C split 1 prompt_n=49 cache_n=537 out=179 adults="" keys=10
C split 2 prompt_n=49 cache_n=537 out=179 adults="" keys=10
C split 3 prompt_n=49 cache_n=537 out=179 adults="" keys=10

Every way of reading the prompt gave the same 179-token answer. But on the same server, running the classification request in between, the booking request went back to a 116-token answer. This output shows only token counts and seconds:

classify | 0.81 | 4 / 4249 / 0.09 | 26 / 36.6 / 0.68
booking | 3.15 | 4 / 582 / 0.09 | 116 / 38.6 / 2.98
classify | 0.81 | 4 / 4249 / 0.10 | 26 / 36.6 / 0.68
booking | 3.19 | 4 / 582 / 0.09 | 116 / 38.5 / 2.98

So the split between cached and fresh tokens did not reproduce it, and what changed the answer was what the server had processed just before. That is as far as I got; I did not isolate the internal cause. The llama.cpp server README describes cache_prompt, an option (on by default) that reuses the already-processed start of a prompt shared with the previous request. It says, in substance, that logits (the model’s scores for each candidate next token) are not guaranteed to be bit-for-bit identical across different batch sizes (how many tokens are computed at once), so enabling it can cause nondeterministic results. I did not confirm that this is the cause here. I saw this only on Bolt (2-bit) and did not check whether Gemma does it.

The lesson is simple: when you compare, change the order of requests and run each several times. If you judge a model “bad at this request” from a single run, it may just be the state of the server.

Even with the same prompt, the comparison may not be fair

Now accuracy. For the booking form, I constrained the output with a JSON schema and gave Gemma and Bolt the same prompt. It tells the model to put only fields it could read from the request into fill, and to use a separate field only when the request mentions something that is not on the form. The prompt went through versions v1 to v4. The first, v1, got 3 of 24 right for Gemma and 18 for Bolt.

PromptGemmaBolt
v1 (first version)3/2418/24
v1 (after fixing one wrong expected answer)4/2419/24
v2 (adds “do not write the names of fields that did not appear in the request”)5/2419/24
v3 (same as v2; only the JSON key renamed missing → notOnForm)22/2422/24

Judging by v1 alone, “Bolt wins by a landslide”, but with v3 it is a tie. Most of Gemma’s mistakes on v1 and v2 were the same: it listed “the names of fields it did not fill in” under a key called missing (the h01-style prefixes are IDs of the cases).

h01 NG 4.4s out=195    missing:["children","breakfast","arrivalTime","phone","note"]
h02 NG 3.8s out=171    missing:["guestName","adults","children","arrivalTime","phone"]

The name missing apparently made the model read that field as the place for “fields not written in the request”. Adding an instruction (v2) did not fix it; renaming the key to notOnForm (items that are not on the form) moved Gemma from 5 to 22. The model was not the problem. The prompt I used for evaluation was unfair to one of them.

Two stacked panels with the same instruction text: with the key tagged 'missing' Gemma gets '5/24' right, and after only the key is renamed to 'notOnForm' it gets '22/24'; labeled 'missing', 'notOnForm', '5/24', '22/24' and 'Gemma'
Figure 3: Renaming one JSON key in the prompt changed Gemma’s correct answers from 5 of 24 to 22 of 24

So before you swap the model, suspect the prompt you evaluate with. Giving both models the same prompt does not make the comparison fair.

Adding examples has side effects too. v4 is v3 with one line giving an example of the answer’s shape. The line is part of the prompt and is in Japanese; it says “Example answer shape”:

答えの形の例: {"intent": "fill", "fill": [{"key": "adults", "value": "2"}], "notOnForm": []}

The example’s value "2" leaked into a request that does not state a head count (case h19, “two single rooms”, in Japanese). In the measured output, both models show extra:adults=2:

h19 NG 1.1s out=49   extra:adults=2 missing:[]
h19 NG 1.4s out=46   extra:adults=2 missing:[]

The first line is Gemma and the second is Bolt. Gemma also copied the example’s compact one-item-per-line style, and its output dropped from 169 to 107 tokens.

As a result, the booking request where Bolt had been almost a second faster under v3 became a tie under v4: Gemma 2.84 s, Bolt 2.82 s. An example in the prompt moves not only the values of the answer but its formatting, and so the seconds.

Thinking trades accuracy for time

So far thinking was off. Does turning it on make the answers better? On Bolt, I tried a thinking budget (a cap on how much it may think) of 512 and 2,048 tokens. The no-limit setting was measured with the output capped at 8,192 tokens.

You set the budget in the request: pass chat_template_kwargs: { enable_thinking: true } and thinking_budget_tokens: <budget>. For no limit, leave out the second. First, the classification task, which picks the matching help item out of 160 over 40 requests. In the table, p50 and p90 are the values at the 50th and 90th percentile when output token counts are sorted from smallest.

SetupTop-1 correctTop-3MedianOutput tokens p50 / p90 / max
Gemma, thinking off40/4040/400.73 sn/a
Bolt, thinking off37/4040/400.75 s19 / 32 / 33
Bolt, budget 51237/4038/409.42 s352 / 532 / 546
Bolt, budget 2,04838/4038/409.38 s352 / 657 / 2,075

Turning thinking on moved top-1 only from 37 to 37 or 38, and top-3 fell from 40 to 38. In some cases where the right answer had been second without thinking, the thinking runs narrowed down to one candidate and dropped it (c05 and the like are IDs of classification cases).

Each line reads as: case ID, verdict (1 is a correct first choice, 3 is a wrong first choice with the right answer in the top 3, x is not in the top 3), seconds, the candidates returned, and gold= the correct item. The arrow annotations on the right are mine, not output:

c05 3 0.9s T015,T006 gold=T006     ← without thinking (correct answer in 2nd place)
c05 x 14.0s T015 gold=T006         ← budget 512 (one candidate, wrong)
c26 3 0.9s T060,T009 gold=T009
c26 x 12.3s T060 gold=T009

The median went from 0.75 s to 9.4 s, about 12 times longer. The budget is a cap, not a target: the median output was 352 tokens for both budget 512 and budget 2,048. The number of cases whose output reached the budget was 9 of 40 at budget 512 and only 1 at 2,048 (counted over thinking plus answer, so it may be overcounted). Raising the budget does not make the model think proportionally more; on easy requests it simply stops early.

Two horizontal gauge bars for the thinking budget: the bar with a 512 cap and the bar with a 2,048 cap both have their marker at the same 352 tokens, and only 1 of the 40 classification requests reached the 2,048 cap; labeled 'Budget cap 512', 'Budget cap 2,048', 'Classification median: 352 tokens' and 'Only 1 of 40 classifications hit the cap'
Figure 4: On the 40 classification requests, quadrupling the thinking budget left the median output at 352 tokens. The budget is a ceiling, not a target

The 24 booking requests went in the same direction. With the v3 prompt, turning thinking on dropped the correct answers from 22 to 18 (budget 512) and 20 (budget 2,048, and no limit). To see why, I resent just one failing case, h03, whose values came back empty, and looked at the end of the reasoning.

--- reasoning (last 1200 chars) ---
...
Final JSON:
{
  "intent": "fill",
  "fill": {
    "adults": 2,
    "children": 1,
    "roomType": "double",
    "arrivalTime": "19:00"
  },
  "notOnForm": {}
}
...
I think that's it.
--- content ---
{
  "intent": "fill",
  "fill": [
    { "key": "adults", "value": "" },
    { "key": "children", "value": "" },
    { "key": "roomType", "value": "" },
    { "key": "arrivalTime", "value": "" }
  ],
  "notOnForm": []
}

In its reasoning the model read the values correctly and built the answer as a dictionary ("adults": 2). The grammar constraint, however, forces an array of key and value pairs, and the final answer came out with empty values. Adding an example of the answer’s shape (v4) fixed it, so I think the other cases likely share this cause.

With one line giving the answer’s shape (v4), the same settings give different results:

Setupv3 correctv3 medianv4 correctv4 medianOutput tokens p50 / max (v4)
Thinking off22/241.81 s21/241.67 s56 / 106
Budget 51218/2414.74 s23/2413.72 s541 / 619
Budget 2,04820/2421.98 s24/2414.89 s577 / 2,085

With v4 and a budget of 2,048 it reaches 24/24, but the median is about 15 s. Compared with 1.7 s without thinking, that is paying 8 to 9 times the time to go from 21 correct to 24.

Thinking trades accuracy for time, and with a poor prompt you can pay the time and get nothing, or even lose accuracy.

Note that these requests are easy ones that thinking-off nearly solves. Whether thinking helps on hard requests is not something this data can say. I did not measure Gemma with thinking on.

Measure seconds and correct answers on your own requests

To pull the threads together, here is what goes wrong when you compare by tok/s.

  • Tokenizers differ, so the same text has a different token count. For the Japanese classification prompt it was 4,221 against 3,012.
  • The shape of the output (JSON indentation, a Markdown code block around it, dictionary or array) changes the number of generated tokens.
  • A shared context is used up by the total token count, so the same -c can overflow for one model and not the other.
  • Speculative decoding helps depending on the content, and made uncached reading slower.
  • Even at temperature 0, the answer can change with the server’s preceding state.
  • Thinking trades accuracy for time, and the budget is only a ceiling.

tok/s sees only a part of generation in that sum. Measure seconds per request and the number of correct answers together, using the prompts your application sends and the output shape you want back. A good first step is to swap your own request into the short script earlier in this post. Once you have seconds, change the order of requests and run each several times to see whether the answers are stable.

Primary sources

Pixcel Art of Aki. holdin a cat.

About the Author

Aki Matsumura

Joined HIROSE PAPER MFG. CO., LTD. in November 2024.

Brings a diverse professional background spanning retail, welfare services, and food service before transitioning into system development.

Currently serves as an in-house systems engineer, responsible for internal database development and system improvement initiatives across the company.

View posts by this author →