Gemma 4 31B QAT on an M4 Pro: 11.7 tokens per second

It fits a 48 GB Mac with room to spare and writes at a steady pace. It also spends most of its tokens thinking before the reader sees a word.

0:00

Verdict. Fits a 48 GB Mac with room to spare and holds a steady 11.7 tokens a second. It thinks at length before it writes, so a short answer takes about a minute and a tight token limit returns nothing.

3 of 5

Gemma 4 31B is the largest dense model in Google’s Gemma 4 family. We ran the QAT Q4_0 build in LM Studio on a Mac with an M4 Pro chip and 48 GB of memory, and timed 15 runs across five kinds of task. It wrote at a steady 11.7 tokens per second, used about 21 to 23 GB, and spent most of its tokens thinking before it wrote anything a reader could see.

How many tokens per second does Gemma 4 31B QAT get on an M4 Pro?

The middle result of 15 runs was 11.74 tokens a second. The slowest run was 11.40 and the fastest 12.04, so the speed barely moves from task to task. At that rate a 200 word answer is about 20 seconds of writing, once the model starts to write.

Measure What we found
Writing speed, middle of 15 runs 11.74 tokens a second
Slowest and fastest run 11.40 and 12.04 tokens a second
Wait for the first token, short prompt 1.43 seconds
Wait for the first token, 3,806 token prompt 46.1 seconds
Memory used by the model process 20.6 to 22.6 GB

How much memory does Gemma 4 31B QAT use on a Mac?

The model file is 17.65 GB on disk. Loaded with a context window of 65,536 tokens, the process that runs it held between 20.6 and 22.6 GB during the test. On a 48 GB Mac that leaves about 25 GB for everything else. Google’s model card gives no speed or memory figure for any machine, so there is no maker’s claim to check these against.

How long does Gemma 4 31B take to read a long prompt?

Reading is the slow part. Given a 3,806 token document, the model took 46.1 seconds before its first token appeared, which is about 82 tokens a second of reading. Sent the same document a second time, it answered in a third of a second, because LM Studio keeps the prompt it has already read. That shortcut also distorts speed tests, which is why we wrote a guide to measuring tokens per second properly.

Why does Gemma 4 take so long to answer a simple question?

It thinks first. With no setting changed, the model spent between 408 and 597 of every 600 tokens on reasoning that the reader never sees. In 6 of the 15 runs it used the whole allowance thinking and returned an empty answer. Given room, a 217 word explanation took 91 seconds from start to finish, and 777 of its 1,032 tokens were thinking. The full count is in our study of where its tokens go.

Is Gemma 4 31B worth running on a 48 GB Mac?

Yes, if the work can wait a minute. It fits with room to spare, its speed is steady, and the one answer we could mark, a count over a long document, was right every time. It is the wrong choice for quick back and forth, and anything that sets a tight token limit will get nothing back.

How does Gemma 4 31B compare with other models on the same Mac?

Since this review we have put four more models of about the same size through the same 15 runs on the same machine. Gemma is the second slowest writer of the five, and it is also the one most likely to finish an answer inside a tight limit.

Model Writing speed Memory Runs with no answer
Gemma 4 31B 11.74 tokens a second 22.6 GB 6 of 15
Qwen 3.8 27B 10.09 tokens a second 23.3 GB 9 of 15
Bonsai 27B 29.98 tokens a second 14.1 GB 15 of 15
Qwen 3.6 35B-A3B 62.50 tokens a second 24.3 GB 15 of 15
GLM 4.7 Flash 56.24 tokens a second 20.8 GB 15 of 15

Gemma’s memory figure was read while it was running and the other four before and after their runs, so compare that column loosely. The two fastest are a different kind of model. Qwen 3.6 35B-A3B and GLM 4.7 Flash switch on only part of their network for each token, and both wrote at more than 50 tokens a second where Gemma wrote at under 12. Speed is not the whole picture. With 600 tokens allowed, those two and Bonsai spent every token of every run thinking and returned nothing a reader could see. Gemma returned an answer in 9 runs of 15. A fast model that says nothing inside your limit is not quicker in practice than a slow one that answers.

Does Gemma 4 31B run faster on some tasks than others?

Barely. The speed stayed between 11.40 and 12.04 tokens a second whatever we asked. What changed from task to task was how much of the 600 token allowance went on thinking, and so whether an answer arrived.

Task Writing speed
Explain, about 250 words 11.71 to 12.04
Write a Python function 11.74 to 11.76
Summarise, about 200 words 11.45 to 11.78
List ten checks 11.45 to 11.78
Work out a train time 11.40 to 11.74

The pattern is the reverse of what you might expect. The two tasks that sound hardest, a list of ten checks and a worked sum, always produced an answer. The plain explanation never did. Its thinking used 597 of the 600 tokens in all three runs, which leaves three tokens for the answer. So the limit you set matters more for an open question than for a narrow one. The thinking count for each task is in our study of the Gemma 4 empty response.

How long does a full answer from Gemma 4 31B take?

We ran the explanation task again with room to finish. It wrote 1,032 tokens in 91 seconds, of which 777 were thinking and 255 were the answer. The first token arrived after 3.3 seconds, but that first token is the start of the thinking, not of the answer. The visible text began about a minute in. If you are building something on top of this model, plan for about a thousand tokens and a minute and a half for a few paragraphs, and show the user that something is happening while they wait.

Who should run Gemma 4 31B on a 48 GB Mac?

It suits work where the answer matters more than the wait: drafting, summarising a long document, checking a calculation, anything you can start and come back to. It left about 25 GB of memory free in our test, so the rest of the machine stays usable while it runs. It is a poor fit for a chat that should feel quick, for a coding assistant that completes as you type, and for any tool that sets a low token limit and does not let you raise it. In those cases either turn the thinking off, which we tested in Ollama, or choose a model built for speed and give it a bigger allowance.

What would change our score?

Three of five reflects a model that is steady and correct where we could check it, and slow to produce anything. A way to cap the thinking that works in every program would lift it, because the wait is the main cost. A fault in its answers on a harder set of questions would lower it. We marked one answer in this test, the count over a long document, and it was right in all four runs. That is a narrow base for a score.

How we tested Gemma 4 31B

One machine: a Mac with an M4 Pro chip and 48 GB of memory, on macOS 27.0.1. LM Studio’s llama.cpp Metal runtime, version 2.47.0, with the model loaded at a 65,536 token context. Five tasks (an explanation, a piece of code, a summary, a list and a worked sum), three runs each, 600 tokens allowed per run. Every prompt began with a fresh label so that no run could reuse a prompt the model had already read. Speed and first token times are the figures LM Studio’s own server reports. Memory is the size of the model process as the operating system reported it. The measurement is recorded in the index.

Sources

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

Hill. "Gemma 4 31B QAT on an M4 Pro: 11.7 tokens per second". Onticpost, published 3 October 2026, updated 26 October 2026. https://onticpost.com/gemma-4-31b-qat-m4-pro-48gb-tokens-per-second/

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