Can an Apple M4 24GB run Qwen3 30B A3B?
Yes
Yes. At IQ4_XS it needs 16.28 GB of the 16.8 GB available and generates around 39 tokens per second at an 8k context window.
The numbers
Qwen3 30B A3B has 30.53 billion parameters across 48 layers, of which 3.34 billion are read for each token. The Apple M4 24GB has 24 GB of unified memory at 120 GB/s, of which about 16.8 GB is left for a model once the operating system has taken its share.
| Quantisation | Total needed | Fits | Speed |
|---|---|---|---|
| Q8_0 | 31.39 GB | no | — |
| Q6_K | 24.49 GB | no | — |
| Q5_K_M | 21.4 GB | no | — |
| Q4_K_M | 18.34 GB | no | — |
| IQ4_XS | 16.28 GB | yes | 39 t/s |
| Q3_K_M | 15.07 GB | yes | 41.2 t/s |
| IQ3_XXS degraded | 12.05 GB | yes | 48.3 t/s |
| Q2_K degraded | 13.08 GB | yes | 45.6 t/s |
| IQ2_XXS degraded | 8.5 GB | yes | 60.3 t/s |
5 of the 9 levels fit. Levels marked degraded are listed for completeness, not as advice.
How long a conversation it holds
At IQ4_XS, 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 8k tokens.
| Context | Cache | Total | Fits |
|---|---|---|---|
| 4k | 0.38 GB | 15.84 GB | yes |
| 8k | 0.75 GB | 16.28 GB | yes |
| 16k | 1.5 GB | 17.16 GB | no |
| 32k | 3 GB | 18.91 GB | no |
See how fast it feels
Apple M4 24GB running Qwen3 30B A3B at IQ4_XS
YouWhy does my model use more memory when the conversation gets longer?
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.
Reading your question
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 Q5_K_M would take about 647 ms.
Keep going
Everything the Apple M4 24GB runs, the full breakdown for Qwen3 30B A3B, or check a different pairing in the calculator.