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

Total / active35B / 3B (8.6%)
Experts256: 8 routed + 1 shared
Layers40
AttentionGated DeltaNet + full, 3:1
InputText, image, video
Context262K (to ~1M)

Gemma 4 26B-A4B

Total / active25.2B / 3.8B (15%)
Experts128: 8 active + 1 shared
Layers30
AttentionSliding window (1,024) + global
InputText, image (video as frames)
Context256K

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

Capability (0-50)38
Speed (0-25)25
Accessibility (0-15)10
License (0-10)8
Total81

Gemma 4 26B-A4B · #6

Capability (0-50)35
Speed (0-25)25
Accessibility (0-15)10
License (0-10)8
Total78

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.

Coding benchmarks, vendor-reported. Sources: Qwen3.6-35B-A3B model card (Alibaba ran all columns), KAT-Coder-V2.5-Dev model card (Kwaipilot’s run) and the Gemma 4 model card (Codeforces).
Benchmark Qwen 3.6
35B-A3B
Gemma 4
26B-A4B
Gemma 4
31B
Gemma 4
12B
SWE-bench Verified (Alibaba scaffold)73.417.4*52.0*—
SWE-bench Verified (Kwaipilot, one Claude Code harness for all)64.435.860.6—
Terminal-Bench 2.051.534.242.9—
LiveCodeBench v680.477.180.072.0
Codeforces ELO (Google)—171821501659

* 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.

General benchmarks, vendor-reported
Benchmark Qwen 3.6
35B-A3B
Gemma 4
26B-A4B
Gemma 4
31B
Gemma 4
12B
MMLU-Pro85.282.685.277.2
GPQA86.082.384.378.8
AIME 202692.788.389.277.5
MMMU-Pro (vision)75.373.876.969.1
LLMCheck capability (0–50)38354030

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.

Index tok/s, 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/scommunity48 tok/scommunity8 tok/scommunity19 tok/s
Mac mini M4 Proestimated~74 tok/sestimated~72 tok/sestimated~12 tok/sestimated~30 tok/s
Mac mini / MacBook Pro M5 Procommunity79 tok/sestimated~78 tok/sestimated~13 tok/sestimated~34 tok/s
Mac Studio M4 Maxestimated~105 tok/sestimated~101 tok/sestimated~23 tok/sestimated~57 tok/s
Mac Studio / MacBook Pro M5 Maxsourced118 tok/ssourced107 tok/sestimated~26 tok/sestimated~64 tok/s

Figures from different testers and runtimes are not directly comparable, so the fairest comparisons hold everything else fixed:

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.

Memory by quantization, in GB
Model Index minimum 4-bit MLX (mlx-community) Ollama default tag 8-bit (approx.) BF16 (approx.)
Qwen 3.6-35B-A3B2420.423–24~37~70
Gemma 4 26B-A4B1815.416–19~27~50
Gemma 4 31B2418.419–20~33~61
Gemma 4 12B9—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 context262,144 tokens256K (12B, 26B-A4B, 31B); 128K (E2B, E4B)
Extended contextAbout 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
ImagesYes (vision encoder)Yes, every model
VideoYesAs frames, every model
AudioNoE2B, E4B and 12B
Function callingYes (qwen3_coder tool parser)Yes, native in every model
Agentic benchmark (vendor)Terminal-Bench 2.0: 51.5Tau2: 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:12b

MLX

# 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 winners
Category Winner Margin
Coding benchmarksQwen 3.6+3 LiveCodeBench, +17 Terminal-Bench (vs 26B-A4B)
Reasoning and knowledgeQwen 3.6 vs 26B-A4B; close to 31B2–4 points
Speed (MoE vs MoE)Qwen 3.6About 10% (same M5 Max setup)
MemoryGemma 4 26B-A4BAbout 5 GB less at 4-bit
16 GB MacsGemma 4 12BQwen 3.6-35B-A3B does not fit
Audio inputGemma 4 (12B, E4B, E2B)Qwen 3.6-35B-A3B has none
Context windowQwen 3.6About 1M extended vs 256K
LLMCheck ScoreQwen 3.681 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.