A 24 GB Mac or GPU can run a suitable 4-bit build of Gemma 4 26B A4B. A 24 GB M4 measured 31.7 output tokens/s and 12.31 seconds to the first token at its 4,096-token point. A 24 GB RTX 3090 reached 140.26 tokens/s in a different synthetic test. Neither number says how fast the other machine would be with the same prompt. On 16 GB, the exact weight file and runtime can decide whether the model fits, runs partly on the CPU, or fails to load.

Official release: 2026-04-02. OnDevice Works reviewed the linked original tests; we did not rerun them.

Which model is this?

Gemma 4 26B-A4B Instruct is Google’s Apache 2.0 mixture-of-experts checkpoint, not the 31B dense model. Google lists 25.2B total parameters, 3.8B active per token, and 8 active experts out of 128. Fewer active parameters can reduce work per token, but the runtime still has to store or fetch the other experts. In practice, memory requirements come from the exact weight package plus the context cache and runtime buffers, not the 3.8B figure.

Google lists text and image input, text output, and up to 256K context. The tests below mainly use text and do not show that a particular machine can handle 256K or that the same runtime supports image input. Quantization-aware-trained (QAT) variants and further conversions are named where used. An ordinary 4-bit GGUF, an MLX conversion and a Google QAT GGUF are not interchangeable files.

What do the official scores measure?

Publisher evaluation Reported score
MMLU Pro 82.6%
AIME 2026, no tools 88.3%
LiveCodeBench v6 77.1%
GPQA Diamond 82.3%
MMMU Pro 73.8%

These are Google’s results for its instruction-tuned model, not quality scores for the quantized local builds below. If you need it to read a table from a screenshot or return working code, compare its answers on a few examples of that task. A throughput benchmark does not validate those answers.

What did Mac, NVIDIA and AMD runs measure?

Apple silicon: the prompt can dominate the wait

PP is prompt processing and TG is output generation, both in tokens per second. TTFT is time to first token, not the time for the full answer or to load the model. The chart shows four points from one 24 GB M4 submission (10 GPU cores, macOS 26.4.1, oMLX 0.3.9.dev1, 4-bit). From 1K to 16K, the reported first-token wait increased from 2.760 to 79.664 seconds, while generation declined from 35.0 to 22.4 tokens/s. This series is more useful for deciding how much text to paste than comparing tokens/s across different apps.

Gemma 4 26B-A4B time to first token on one 24 GB M4 Mac 1K: 2.760 seconds. 4K: 12.307 seconds. 8K: 27.962 seconds. 16K: 79.664 seconds. Time to first token (seconds) 1K4K8K16K 2.76 s12.31 s27.96 s79.66 s
Same Mac, package and runner: 1,024 (2.760 s), 4,096 (12.307 s), 8,192 (27.962 s), and 16,384 (79.664 s). Peak memory reported by oMLX rose from 14.2 to 15.5 GB; it is not total system memory.
Original Mac run Package and workload PP TG TTFT
M4, 8 GPU cores, 16 GB oMLX 0.5.4, custom oQ3-fp16, 1,024 point 328.8 33.5 3.114 s
M4, 10 GPU cores, 24 GB oMLX 0.3.9.dev1, 4-bit, 4,096 point from chart 332.8 31.7 12.307 s
M2 Max, 30 GPU cores, 32 GB mac-llm-bench, Q4_K_M, synthetic pp512/tg128 745.9 51.6 —
M6 Mac mini, 24 GB Ollama NVFP4, Timebench 3, one request, 8,192 configured 1,278.34 41.55 1.556 s
M6 Mac mini, 24 GB LM Studio MLX 4-bit, Timebench 3, one request 1,491.41 47.35 1.402 s

The 16 GB oQ3 submission reported 11.4 GB peak at its 1K point. It does not demonstrate that a 4-bit model at 4K fits the same machine. In another 16 GB M4 Mac mini report, an IQ4_XS build ran after the tester manually raised the wired-memory limit and used quantized K/V cache. Their two source builds generated 27.18 versus 8.14 tokens/s on one short coding request, despite matching launch flags and the weight file; build flags were not identical. That is evidence that software version can matter, not a recommendation to change a Mac’s memory limits or a present-day result for current builds. The M6 benchmark labels do not establish Apple GPU placement.

Discrete GPUs: 24 GB fit is different from 16 GB fit

Original PC run Package and workload PP TG TTFT
RTX 5060 Ti, 16 GB Custom llama.cpp branch, MXFP4-MOE and q4_0 KV, one slot 3,476 95.22 —
RTX 5070 Ti, 16 GB Separate Algol Labs UD-IQ4_XS full-GPU run, no MTP, synthetic pp2048/tg64 5,951 137.7 —
RTX 3090, 24 GB CUDA llama.cpp b11658, Unsloth UD-Q4_K_M, synthetic pp512/tg128, three reps 4,663.86 140.26 —
RTX 5070 Ti, 16 GB llama.cpp Unsloth QAT UD-Q4_K_XL, Timebench 3, one request 3,110.21 189.07 638 ms
RTX 5090, 32 GB llama.cpp Unsloth QAT UD-Q4_K_XL, Timebench 3, one request 3,469.62 272.45 570.5 ms
Radeon RX 7900 XTX, 24 GB llama.cpp ROCm, Q4_K_M label, Timebench 3, one request 2,622.33 82.20 754 ms
Two Radeon PRO W7800 cards llama.cpp Q4_K_M, Timebench 3, one request 2,398.83 65.98 824.5 ms
Radeon 780M iGPU, 32 GB shared RAM llama.cpp Vulkan Q4_K_M, synthetic pp128/tg64 208.72 25.00 —

On the 16 GB 5060 Ti, a 15.85 GiB Q4_K_M package failed to load fully in that setup. The author’s custom 13.70 GiB mixed-precision package did run with a 65,536-token context setting, one slot and a quantized KV cache. That number is the configured limit in the report, not the amount of prompt text used for the reported speed. On the RTX 3090, the same test team behind the dataset also documents a full-GPU run at a 16K context setting, using 17.5 GB of its 23.0 GB usable VRAM. That is fit evidence for their particular build, not a minimum for all builds. The separate Algol Labs run shows a different compact package working fully on a 16 GB RTX 5070 Ti: 12.65 GiB in its reported size field, with no draft model. That does not establish stock Q4_K_M fit. The Radeon 780M shares system memory; its 32 GB result does not tell us how a 16 GB laptop will behave.

Single chat and shared-server output answer different questions

Look first for the same artifact and workload. The RTX 5070 Ti and 5090 Timebench records use the same reported Unsloth QAT snapshot and one concurrent request, making them a closer comparison than the 5070 Ti’s separate synthetic test. Host and runner details still differ.

The RX 7900 XTX contributor also ran five concurrent requests in the same Timebench 3 family. The recorded generation throughput rose from 82.20 tokens/s at one request to 207.68 tokens/s combined at five; reported TTFT rose from 0.754 to 4.035 seconds. The combined figure is not the speed at which any one user saw a reply. Check the individual timings under the concurrency you intend to serve. Across different machines in these tables, runtime revisions, quantization, caching, and prompt workloads can differ; an apparent ranking is not a controlled hardware comparison.

Choose a starting package for the memory you have

The 3.8 billion active parameters describe which parts of this mixture-of-experts model take part when it processes a token. The full checkpoint contains 25.2 billion parameters. As an illustration, storing every parameter uniformly at four bits would take roughly 12.6 billion bytes for weights alone. Real packages use specific encodings, metadata and sometimes mixed precision. Look at the exact download and the reported runtime placement. Add room for the prompt cache, allocator, other model components and operating system before choosing a working context.

If you have a 16 GB M4, the 1,024-token oQ3-fp16 case in the table is the closer example than the separate 24 GB, 4-bit case. It supports trying a small text workload with that particular format and compatible runner. Use the first result to check whether the model stays responsive when your required apps are open. A short prompt completing reliably gives you somewhere to start. Increase the amount of text only after you have a verified answer and a memory record.

For a 24 GB Mac, the M4 4,096-token report gives 12.307 seconds to first token and 31.7 output tokens/s at its stated test point. If someone needs an answer before moving to the next task, record when the first usable answer appears and when it ends. A long starting wait can consume most of an interactive time budget even when generation is quick. For a 32 GB Mac, the synthetic M2 Max row shows a runnable GGUF configuration. Use it to shortlist that runner and package, then search for a comparable long request or measure the full task separately.

Check that a larger context improves the result

Choose a short note with a named part, a delivery date and a revision number. Ask for those three fields and save the expected values before the request. Then insert a second, obsolete entry into a longer version of the note and ask for the current record only. Review the answer against the original line. A model that completes and retrieves the old record quickly should fail that check.

Keep a record with the exact model filename, runtime build, context setting, actual input length, cache state and finish reason. First compare a short and long request with the same package. Then, if needed, compare two supported packages using the same inputs and output limit. A smaller package that passes both checks can be a better fit for the work you do. If the larger package improves a field you routinely need, keep that quality difference beside the added memory and time.

For image work, confirm separately that the runtime loaded compatible media components. Use two test images with different visible labels and ask for the label in each. If the label does not change, check what was passed to the model. The text memory and timing rows help size a first trial. They leave the media path, image accuracy and usable context to be verified in the actual setup.

How do I check my own setup?

Start by recording the exact weight package and where the runtime placed it. If the smaller package runs while the larger one offloads or fails, log those as separate fit results. Compare first-token time on a real prompt only after the one-request configuration is confirmed.

  1. Start with one exact file and a modest context. Record the model artifact, quant, runner version, text or image support, and device placement. Start with one request and a 4K setting; do not use the 256K model limit as your starting point. If the file barely fits, that is before the cache and runtime have to fit too.
  2. Measure wait and usable answers separately. Try the prompt you actually need, then repeat with a longer version and the same output cap. Write down first-token time, completion time, generation rate and peak device use or swap. Run it again while your normal apps are open.
  3. Only change one main variable at a time. If it stops at load, try a smaller package or less context before increasing concurrency. If it loads but sits on CPU or starts swapping, record it separately from full GPU placement. Then compare answer quality on the same example, particularly after changing quantization.
  4. Check your actual deliverable. If you want image analysis, run a sample image through the same local app. If you need a shared service, test several requests separately and watch slow individual replies, not just aggregate tokens. For 26B versus 31B, compare time to a correct, usable answer on the same task.

Which runtime can I use?

Used in published benchmarks

Officially listed, not benchmarked here

The setup links are for Macs. Use the benchmark and official package links to check the exact build, model file and requirements on your own hardware.