Architecture: Two MoE Designs, Plus Gemma’s Dense Models
Both mixture-of-experts models keep all their experts in memory and run a small subset per token, so their speed depends on the active parameters. From the Qwen and Gemma model cards:
Qwen 3.6-35B-A3B
Gemma 4 26B-A4B
Active parameters set the speed. Qwen reads about 3B parameters per token, Gemma 3.8B, so on the same Mac Qwen has less to stream from memory for each token. That is most of why it decodes faster, despite holding 10B more parameters in total. The flip side is memory: Qwen’s larger expert pool needs about 5 GB more at 4-bit.
Both cut the cost of long contexts, in different ways. In Qwen, only one layer in four uses full attention; the rest are linear-attention Gated DeltaNet layers whose state does not grow with the context. Gemma interleaves local sliding-window attention, which looks back 1,024 tokens, with global attention layers, ending on a global one.
Gemma also comes in dense sizes Qwen 3.6 does not cover here. Gemma 4 31B (30.7B, 60 layers) is the family’s strongest model and runs every parameter on every token. Gemma 4 12B (11.95B) is an encoder-free “Unified” model that takes text, images and audio directly and fits a 16 GB Mac. The small E2B and E4B use Per-Layer Embeddings, which is where the “PLE” in Gemma 4’s documentation comes from. On the Qwen side, the dense alternative is Qwen3.6-27B, compared in the Qwen 3.6-35B-A3B review.
LLMCheck Score Breakdown
The LLMCheck Score adds capability (0–50), speed (0–25), accessibility (0–15, more for less memory) and licence openness (0–10). Speed is the M5 Max reference figure × 0.25, capped at 25:
Qwen 3.6-35B-A3B · #1
Gemma 4 26B-A4B · #6
Both mixture-of-experts models clear 100 tok/s on the M5 Max reference, so both take the full 25 speed points, and the three-point gap is all capability. The dense Gemmas score lower for the opposite reason: Gemma 4 31B has the highest capability of the four (40) but only 6 speed points at about 26 tok/s, for a total of 64; Gemma 4 12B scores 66 (30 + 16 + 12 + 8), helped by its 9 GB minimum. The live order is on the leaderboard.
Coding Benchmarks, With Harnesses
No independent lab has published both models on the same coding harness. The two best sources are Alibaba’s own table on the Qwen model card, which includes Gemma, and Kwaipilot’s table on its KAT-Coder-V2.5 card, which ran Qwen and both Gemma models through one Claude Code harness while testing its own fine-tune. Where Google publishes the same benchmark, its numbers match Alibaba’s Gemma columns.
| Benchmark | Qwen 3.6 35B-A3B |
Gemma 4 26B-A4B |
Gemma 4 31B |
Gemma 4 12B |
|---|---|---|---|---|
| SWE-bench Verified (Alibaba scaffold) | 73.4 | 17.4* | 52.0* | — |
| SWE-bench Verified (Kwaipilot, one Claude Code harness for all) | 64.4 | 35.8 | 60.6 | — |
| Terminal-Bench 2.0 | 51.5 | 34.2 | 42.9 | — |
| LiveCodeBench v6 | 80.4 | 77.1 | 80.0 | 72.0 |
| Codeforces ELO (Google) | — | 1718 | 2150 | 1659 |
* SWE-bench measures whether a model, driven by an agent harness, can fix real GitHub issues, and results depend heavily on the harness. Alibaba ran Gemma on its own internal scaffold, and Google publishes no SWE-bench score for Gemma 4, so read the 17.4 and 52.0 as low. Kwaipilot’s common harness is the fairer comparison: every model scores lower than on its own developer’s harness (Qwen 64.4 against Alibaba’s 73.4), but the order holds, with Gemma 4 26B-A4B (35.8) far behind and Gemma 4 31B (60.6) close.
The benchmarks that do not depend on a harness tell a steadier story. On LiveCodeBench v6, Qwen 3.6-35B-A3B (80.4) leads Gemma 4 26B-A4B (77.1) by about three points and matches the dense Gemma 4 31B (80.0). On Terminal-Bench 2.0, an agentic test, Qwen’s lead is wider. Gemma 4 31B’s Codeforces ELO of 2150 shows the dense model is a strong competitive programmer, at dense-model speed.
For developers: Qwen 3.6-35B-A3B is the stronger coder of the two mixture-of-experts models on every benchmark, including Kwaipilot’s common-harness SWE-bench run. If coding is the main job, also look at KAT-Coder-V2.5, an agentic fine-tune of this Qwen model (the Qwen coders compared).
Reasoning, Knowledge and Vision
Away from code the two lines are close. Gemma figures below are Google’s; Qwen figures are Alibaba’s.
| Benchmark | Qwen 3.6 35B-A3B |
Gemma 4 26B-A4B |
Gemma 4 31B |
Gemma 4 12B |
|---|---|---|---|---|
| MMLU-Pro | 85.2 | 82.6 | 85.2 | 77.2 |
| GPQA | 86.0 | 82.3 | 84.3 | 78.8 |
| AIME 2026 | 92.7 | 88.3 | 89.2 | 77.5 |
| MMMU-Pro (vision) | 75.3 | 73.8 | 76.9 | 69.1 |
| LLMCheck capability (0–50) | 38 | 35 | 40 | 30 |
Qwen 3.6-35B-A3B leads Gemma 4 26B-A4B by 1.5 to 4.5 points on every row and trades places with the dense Gemma 4 31B. The LLMCheck capability score, which also weighs independent indexes where they exist, ranks the 31B highest. Gemma 4 12B gives up 7 to 15 points on knowledge and reasoning in exchange for fitting a 16 GB Mac.
Apple Silicon Speed, Mac by Mac
According to the LLMCheck index, here is the generation speed on each Mac. Where a chip has a measured run the index shows it; otherwise it estimates from the nearest measured chip. The mark beside each figure says which, and the table is refilled on every build.
| Mac | Qwen 3.6 35B-A3B |
Gemma 4 26B-A4B |
Gemma 4 31B |
Gemma 4 12B |
|---|---|---|---|---|
| Mac mini M6 (32 GB) | community64 tok/s | community48 tok/s | community8 tok/s | community19 tok/s |
| Mac mini M4 Pro | estimated~74 tok/s | estimated~72 tok/s | estimated~12 tok/s | estimated~30 tok/s |
| Mac mini / MacBook Pro M5 Pro | community79 tok/s | estimated~78 tok/s | estimated~13 tok/s | estimated~34 tok/s |
| Mac Studio M4 Max | estimated~105 tok/s | estimated~101 tok/s | estimated~23 tok/s | estimated~57 tok/s |
| Mac Studio / MacBook Pro M5 Max | sourced118 tok/s | sourced107 tok/s | estimated~26 tok/s | estimated~64 tok/s |
Figures from different testers and runtimes are not directly comparable, so the fairest comparisons hold everything else fixed:
- Same setup, M5 Max: Liquid AI’s published llama.cpp Q4_K_M baseline, run with a 4K-token input, lists Qwen 3.6-35B-A3B at 118 tok/s and Gemma 4 26B-A4B at 107 (LFM2.5-24B-A2B model card). Qwen is about 10% faster.
- Same tester, 32 GB Mac mini M6: in LM Studio, Qwen’s MLX 4-bit build ran at 63–69 tok/s across five prompts and Gemma’s QAT build at 46–53 (community run). The same session measured the dense Gemma 4 12B at 18–19 and Gemma 4 31B at 7–8. A separate SwiftLM run of Gemma 4 26B-A4B on the same Mac reached 52.2 (community).
The real divide is mixture-of-experts against dense. On a base M6, both MoE models run six to nine times faster than the dense Gemma 4 31B, at similar benchmark quality. Unless you need the 31B’s extra capability, a dense model of that size is the wrong choice for a Mac without a Max or Ultra chip.
Sweet spot hardware: a 32 GB Mac runs either MoE model comfortably, and even the base M6 chip delivers about 45–65 tok/s, several times reading speed. Every Mac’s full ranking is on the Best-by-Mac pages.
RAM and Quantization
Unified memory decides what fits. The 4-bit sizes below are published files; the 8-bit and BF16 columns are approximate weight sizes (parameters × bytes per weight), before the vision encoder and context.
| Model | Index minimum | 4-bit MLX (mlx-community) | Ollama default tag | 8-bit (approx.) | BF16 (approx.) |
|---|---|---|---|---|---|
| Qwen 3.6-35B-A3B | 24 | 20.4 | 23–24 | ~37 | ~70 |
| Gemma 4 26B-A4B | 18 | 15.4 | 16–19 | ~27 | ~50 |
| Gemma 4 31B | 24 | 18.4 | 19–20 | ~33 | ~61 |
| Gemma 4 12B | 9 | — | 7.7–8.0 | ~13 | ~24 |
Gemma 4 26B-A4B needs about 5 GB less than Qwen 3.6-35B-A3B at 4-bit, because it holds 10B fewer parameters. On a 24 GB Mac that matters: Qwen’s 20–24 GB builds leave little room for macOS and the context, while Gemma’s 15–19 GB builds leave several gigabytes. On 32 GB or more the difference stops mattering. Google also publishes quantization-aware-trained (QAT) 4-bit Gemma checkpoints, which are built to lose less quality at 4-bit than an ordinary conversion.
RAM recommendation: 16 GB → Gemma 4 12B. 24 GB → Gemma 4 26B-A4B comfortably, or Qwen 3.6-35B-A3B with a short context. 32–48 GB → Qwen 3.6-35B-A3B at 4-bit, with room for Gemma alongside. 64 GB and up → 8-bit builds if you want them. The best model by RAM page has the index’s pick for each tier.
Context Windows
| Feature | Qwen 3.6-35B-A3B | Gemma 4 |
|---|---|---|
| Native context | 262,144 tokens | 256K (12B, 26B-A4B, 31B); 128K (E2B, E4B) |
| Extended context | About 1M (YaRN) | — |
| Long-context test (vendor) | — | MRCR v2 8-needle 128K: 44.1 (26B-A4B), 66.4 (31B) |
On paper the windows are nearly equal. In practice, memory sets the limit on a Mac: every token of context adds to the key-value cache, and on a 24 GB machine you will run out of room long before 256K. Both designs keep that cache small — Qwen because three layers in four use linear attention with a fixed-size state, Gemma because most of its layers only look back 1,024 tokens — so both handle long documents far better than older models of the same size. Qwen’s 1M extension matters only on machines with memory to spare.
Multimodal Input and Tool Use
| Capability | Qwen 3.6-35B-A3B | Gemma 4 family |
|---|---|---|
| Images | Yes (vision encoder) | Yes, every model |
| Video | Yes | As frames, every model |
| Audio | No | E2B, E4B and 12B |
| Function calling | Yes (qwen3_coder tool parser) | Yes, native in every model |
| Agentic benchmark (vendor) | Terminal-Bench 2.0: 51.5 | Tau2: 68.2 (26B-A4B), 76.9 (31B) |
Vision is a draw. Both read images, screenshots and documents; on Alibaba’s vision table Qwen 3.6-35B-A3B scores 81.7 on MMMU against 78.4 for Gemma 4 26B-A4B. Audio is Gemma’s: the 12B, E4B and E2B transcribe and translate speech on-device, which no Qwen 3.6 model here does.
Tool use: both are built for agents. Google lists native function calling for every Gemma 4 model; Qwen 3.6 ships a dedicated tool-call parser for vLLM and SGLang. The vendors report different agentic benchmarks, so there is no clean head-to-head; on Alibaba’s own table Qwen leads Gemma 4 26B-A4B on Terminal-Bench 2.0 (51.5 vs 34.2) and Tool Decathlon (26.9 vs 12.0).
Thinking Modes
Both families reason step by step before answering when asked to. Qwen 3.6-35B-A3B thinks by default and can keep its reasoning from earlier turns, which helps in long agent sessions. Every Gemma 4 model has a configurable thinking mode, switched on in the chat template. In either case the reasoning tokens are generated at the same speed as the answer, so a thinking reply takes longer to finish; turn thinking off for quick questions and completions.
Setup: Side-by-Side Commands
All four models are in Ollama’s library (tags checked 18 October 2026). Ollama 0.40 and later runs supported architectures on Apple’s MLX framework by default on Apple Silicon.
Ollama
# Qwen 3.6 MoE (about 24 GB download)
ollama run qwen3.6:35b-a3b
# Gemma 4 26B MoE (16–19 GB)
ollama run gemma4:26b-a4b
# Gemma 4 31B dense (19–20 GB)
ollama run gemma4:31b
# Gemma 4 12B dense, for 16 GB Macs (about 8 GB)
ollama run gemma4:12bMLX
# Qwen 3.6 (20.4 GB)
pip install -U mlx-lm
mlx_lm.generate --model mlx-community/Qwen3.6-35B-A3B-4bit \
--prompt "Refactor this function..."For Gemma 4 26B-A4B, the 15.4 GB mlx-community/gemma-4-26b-a4b-it-4bit build is the one behind the 52.2 tok/s SwiftLM run on the M6.
LM Studio
Search “Qwen3.6 35B A3B” or “Gemma 4” in the model browser and pick an MLX 4-bit, QAT or Q4_K_M build that fits your memory.
Power-user tip: install both through Ollama. It keeps each model on disk and loads one at a time, so having both costs disk space, not memory.
The Verdict: When to Use Each Model
According to the LLMCheck index, Qwen 3.6-35B-A3B is the better default on a Mac with 32 GB or more, and the index’s best pick at 32 GB or less. Gemma 4 wins on memory and range of sizes.
Choose Qwen 3.6-35B-A3B for:
Coding and agents (it leads on LiveCodeBench and Terminal-Bench). The most speed on any Mac it fits: 118 tok/s published on an M5 Max, 64 community-measured on an M6. Image and video input. A context window that extends to about 1M tokens.
Choose Gemma 4 for:
Less memory: the 26B-A4B is comfortable on 24 GB. A 16 GB Mac: Gemma 4 12B. Audio input (12B, E4B, E2B). The strongest dense model in either family (31B), if you can live with dense-model speed.
| Category | Winner | Margin |
|---|---|---|
| Coding benchmarks | Qwen 3.6 | +3 LiveCodeBench, +17 Terminal-Bench (vs 26B-A4B) |
| Reasoning and knowledge | Qwen 3.6 vs 26B-A4B; close to 31B | 2–4 points |
| Speed (MoE vs MoE) | Qwen 3.6 | About 10% (same M5 Max setup) |
| Memory | Gemma 4 26B-A4B | About 5 GB less at 4-bit |
| 16 GB Macs | Gemma 4 12B | Qwen 3.6-35B-A3B does not fit |
| Audio input | Gemma 4 (12B, E4B, E2B) | Qwen 3.6-35B-A3B has none |
| Context window | Qwen 3.6 | About 1M extended vs 256K |
| LLMCheck Score | Qwen 3.6 | 81 vs 78 |
The practical setup for most power users is both: Qwen 3.6-35B-A3B for coding sessions, Gemma for a lighter general model or for audio. Both are Apache 2.0.