Can an Apple M3 Max 36GB run Gemma 4 26B A4B Instruct?

Yes

Yes. At Q6_K it needs 20.42 GB of the 25.2 GB available and generates around 15.6 tokens per second at an 8k context window.

The numbers

Gemma 4 26B A4B Instruct has 25.81 billion parameters across 30 layers. The Apple M3 Max 36GB has 36 GB of unified memory at 400 GB/s, of which about 25.2 GB is left for a model once the operating system has taken its share.

QuantisationTotal neededFitsSpeed
Q8_0 26.25 GB no
Q6_K 20.42 GB yes 15.6 t/s
Q5_K_M 17.8 GB yes 18 t/s
Q4_K_M 15.22 GB yes 21.2 t/s
IQ4_XS 13.48 GB yes 24 t/s
Q3_K_M 12.46 GB yes 26 t/s
IQ3_XXS degraded 9.9 GB yes 33.1 t/s
Q2_K degraded 10.77 GB yes 30.3 t/s
IQ2_XXS degraded 6.9 GB yes 48.6 t/s

8 of the 9 levels fit. Levels marked degraded are listed for completeness, not as advice.

How long a conversation it holds

At Q6_K, memory rises with the length of the conversation because the attention cache keeps a key and value for every token. The longest window that still fits on this device is 128k tokens.

ContextCacheTotalFits
4k 0.23 GB 20.33 GB yes
8k 0.23 GB 20.42 GB yes
16k 0.23 GB 20.59 GB yes
32k 0.23 GB 20.93 GB yes
64k 0.23 GB 21.62 GB yes
128k 0.23 GB 23 GB yes

See how fast it feels

Apple M3 Max 36GB running Gemma 4 26B A4B Instruct at Q6_K

Wait for the first word6.2 s
Then writes at15.6 tok/s
Whole answer17 s

YouWhy does my model use more memory when the conversation gets longer?

Model

Because of the KV cache. Every token you send leaves behind a key and a value vector in each layer of the model, and those stay in memory for as long as the conversation lasts.

The weights are a fixed cost: load a 4-bit 8B model and that is about 4.8 GB, whether you write one word or ten thousand. The cache is the part that grows, and it grows in a straight line with the number of tokens in the window.

How steeply depends on the model's attention design. With grouped-query attention, several query heads share one key-value pair, which cuts the cache by that ratio. Without it, every head keeps its own, and a long context can cost more memory than the weights themselves.

If you are short on memory, the first thing to try is lowering the context window in your runtime, not the quantisation.

Simulated from our estimate at a 512-token question, not a recording. Assumes nothing else is competing for the GPU. The same answer on RTX 4090 at Q6_K would take about 4.4 s.

Keep going

Everything the Apple M3 Max 36GB runs, the full breakdown for Gemma 4 26B A4B Instruct, or check a different pairing in the calculator.