Qwen 3.8 27B vs Gemma 4 31B: Qwen finishes inside 600 tokens

Gemma wrote 16 percent faster on a 48 GB Mac. Qwen read a long prompt 17 percent faster and finished 6 of 15 runs inside 600 tokens. Gemma finished none.

Qwen 3.8 27B vs Gemma 4 31B is a trade between writing speed and finishing. Qwen 3.8 27B is a 27 billion parameter model from Alibaba’s Qwen family. Gemma 4 31B is the largest model in Google DeepMind’s Gemma 4 family, and we ran its QAT Q4_0 build. On a Mac with an M4 Pro chip and 48 GB of memory, Gemma wrote 16 percent faster, at 11.74 tokens a second against 10.09. Qwen read a long prompt 17 percent faster, and it was the only one of the two that finished any of the 15 main runs inside a 600 token limit: 6 of 15 runs, against 0 of 15 for Gemma.

How fast is each model on a 48 GB Mac?

Gemma 4 31B writes a little faster, and neither is quick. The middle result of 15 runs was 11.74 tokens a second for Gemma and 10.09 for Qwen. The slowest and fastest runs were 11.40 and 12.04 for Gemma, and 9.02 and 11.34 for Qwen, so Gemma’s speed is the steadier of the two.

Measure Qwen 3.8 27B Gemma 4 31B
Build Q4_K_M QAT Q4_0
Model file on disk 17.74 GB 18.85 GB
Writing speed, middle of 15 runs 10.09 tokens a second 11.74 tokens a second
Slowest and fastest run 9.02 and 11.34 11.40 and 12.04
Wait for the first token, short prompt 1.21 seconds 1.43 seconds
Memory before the runs 23.3 GB 19.5 GB
Memory during a run not read 22.6 GB

At these speeds 300 tokens of writing take about 30 seconds on Qwen and 26 on Gemma, once the model has finished thinking and starts to write. The speed gap is real, but it is not large enough to decide anything on its own. Both models sit in the same band, and both are far slower than the mixture of experts models we have measured on the same machine.

How much memory do Qwen 3.8 27B and Gemma 4 31B need?

Gemma 4 31B needs 3.8 GB less on the same reading. Before the runs, Gemma’s process stood at 19.5 GB and Qwen’s at 23.3 GB.

Gemma was also read while it was writing, at 22.6 GB, which is 3.1 GB above its figure before the runs. We have no reading of Qwen during a run, so 22.6 and 23.3 are not like for like, and the fair comparison is 19.5 against 23.3. Expect more than either figure while a model is working. Neither choice frees room for a second large model: our test of two models at once on a 48 GB Mac shows what that cost, and it was worse than the memory figures suggest.

Which model reads a long document faster?

Qwen 3.8 27B, by 17 percent. We sent each model one document of about 3,800 tokens, and the wait before the first token was 39.9 seconds for Qwen on a 3,842 token prompt and 46.1 seconds for Gemma on a 3,806 token prompt. That is 96 tokens a second of reading for Qwen against 82 for Gemma.

Sent the same document again, both answered in about 0.3 seconds, because LM Studio keeps the text it has already read. That shortcut is why a speed test that repeats one prompt tells you very little, and why every prompt in our other runs starts with a fresh random line.

The reading wait matters if the job is going through a stack of documents. As arithmetic on these two figures, and not a separate test, 100 documents of this size read from cold would take about 66 minutes on Qwen and 77 minutes on Gemma before either wrote a word. That is a long wait for either model.

Which model finishes a task inside 600 tokens?

Qwen 3.8 27B finished 6 of its 15 runs and Gemma 4 31B finished none. We gave every run an allowance of 600 tokens. Both models spend part of that allowance thinking before they write, and the thinking counts against the limit.

Task Qwen 3.8 27B Gemma 4 31B
Explain how a heat pump works 0 finished, 3 empty 0 finished, 3 empty
Write a Python function 0 finished, 3 empty 0 finished, 2 empty
Summarise two options 0 finished, 3 empty 0 finished, 1 empty
List ten checks 3 finished, 0 empty 0 finished, 0 empty
Work out a train arrival time 3 finished, 0 empty 0 finished, 0 empty

On the three long writing tasks, Qwen used all 600 tokens thinking and wrote nothing. On the list and the train question it stopped by itself, after a median of 336 and 138 thinking tokens. The train question has one right answer, an arrival at 13:05, and Qwen gave it in 3 of 3 runs, taking a median of 26 seconds.

Gemma hit the 600 token limit in every run. In 6 of the 15 it had written nothing visible, and in the other 9 it had written part of an answer that stopped mid way. Its three train answers were cut off before the arrival time, so none of them contained 13:05. It spent between 408 and 597 of its 600 tokens thinking, and each run took about 53 seconds, because it always ran to the limit.

That result is about the limit as much as the models. A caller that sets a tight token limit will get an answer from Qwen on a short question and a cut-off one from Gemma.

What does Gemma 4 31B do when it has room?

It finishes. In a separate run on 3 October 2026 we gave Gemma 4 31B an open allowance on three of the tasks. It finished the heat pump explanation in 1,032 tokens and 91 seconds, the Python function in 1,354 tokens and 119 seconds, and the summary in 711 tokens and 63 seconds. 777 of the first answer’s tokens were thinking. All three ended on their own, so the empty answers in the main test came from the limit and not from the model failing.

We did not run Qwen 3.8 27B with an open allowance, so we cannot say how long it would take to write the same three answers. We also marked nothing for quality in this test. Where we say a run finished, we mean it stopped before the limit with text on the page.

Qwen 3.8 27B vs Gemma 4 31B: which should you run? Our verdict

For a job with a tight token limit, such as a short question, a checklist or a calculation, Qwen 3.8 27B is the better choice of the two on our evidence. For a long answer where you set a generous limit and can wait a minute or two, our data does not separate them, because only Gemma was given the room. Dated 31 October 2026, on one Mac.

  • Best for short answers under a limit: Qwen 3.8 27B. It finished the list and the train question every time and was right on the train question 3 times out of 3.
  • Best for reading a long prompt: neither. Qwen leads by 17 percent on one document, and 66 minutes against 77 for 100 documents is slow either way.
  • Best for steady writing speed: Gemma 4 31B, 16 percent faster and steadier run to run.
  • Best for memory: Gemma 4 31B, 3.8 GB less on the same reading.

Our score for short answers under a tight limit: Qwen 3.8 27B, 3 out of 5. Gemma 4 31B, 2 out of 5.

If your work depends on speed, neither is the right pick. Qwen 3.6 35B-A3B and GLM 4.7 Flash both wrote more than four times faster on this machine.

What does this test not show about Qwen 3.8 and Gemma 4?

Which of the two gives better answers. Beyond the train question, nobody marked the writing, the code or the summaries. Qwen 3.8 was also held to 600 tokens throughout, so the run that would settle long answers was never made.

The speed figures carry a caution. LM Studio recorded 5,222 accepted draft tokens for Qwen 3.8 against the 7,877 it wrote, about 66 percent, and none for Gemma. Drafting guesses several tokens ahead and keeps the ones that hold, so Qwen’s speed was measured with that running. We have no run of it with drafting off, and so cannot say how much it moved the 16 percent gap. The reading test was also close to equal rather than equal, at 3,842 tokens for Qwen and 3,806 for Gemma.

How did we test this?

Gemma 4 31B, the QAT Q4_0 build and an 18.85 GB file, ran on 3 October 2026. Qwen 3.8 27B, the Q4_K_M build and a 17.74 GB file, followed on 4 October 2026. Both used LM Studio with llama.cpp Metal runtime 2.47.0 and a 65,536 token context on an M4 Pro Mac with 48 GB of memory, under macOS 27.0.1. Each ran five tasks three times at a temperature of 0, and the reading figures are the first, uncached send of the long document. Our how we test page has the full method, the index entries for Qwen 3.8 27B and Gemma 4 31B hold the figures, and the review of Gemma 4 31B QAT on an M4 Pro covers that model alone.

Sources

  1. Qwen's Qwen 3.8 27B model card
  2. Google's Gemma 4 31B QAT model card
Cite this page

Hill. "Qwen 3.8 27B vs Gemma 4 31B: Qwen finishes inside 600 tokens". Onticpost, published 1 November 2026, updated 31 October 2026. https://onticpost.com/qwen-3-8-27b-vs-gemma-4-31b-m4-pro/

Updated 31 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.