For text-based MoE inference on a 24 GB Mac mini M4, start by comparing each model’s total-memory estimate with the computer’s unified memory. Unsloth documents Gemma 4 and Qwen3.6 in its Desktop workflow on macOS; its estimates make Gemma 4 26B-A4B at 4-bit a roomier starting point on paper than Qwen3.6 35B-A3B MTP at 4-bit.
What to have ready
This guide covers local text inference on the base Mac mini M4 with 24 GB of unified memory. Unsloth’s Gemma 4 guide and Qwen3.6 guide document those models in the Desktop workflow on macOS.
Use the total-memory estimates to compare configurations. A model-file size is a different measure and does not, by itself, tell you the memory needed while a model runs.
Compare the memory estimates before choosing a model
Unsloth’s estimates give you a practical first filter. The company describes its hardware figures as total RAM plus VRAM, or unified memory on a Mac.
| Model configuration | Unsloth total-memory estimate | How it compares with 24 GB |
| Gemma 4 26B-A4B, 4-bit | 16–18 GB | Leaves more nominal room than Qwen3.6 MTP at 4-bit. |
| Qwen3.6 35B-A3B MTP, 3-bit | 18 GB | About 6 GB below the computer’s nominal capacity. |
| Qwen3.6 35B-A3B MTP, 4-bit | 24 GB | Matches the computer’s nominal capacity, leaving no margin on paper. |
If you want more nominal room for the rest of the session, Gemma 4 at 4-bit or Qwen3.6 MTP at 3-bit are the more cautious starting choices in this comparison. The 4-bit Qwen MTP estimate uses the full 24 GB figure, so it leaves no stated allowance for macOS, context or other running apps.
Set a cautious starting configuration
OneDigital’s configuration guide recommends starting with a 16,384-token context, one parallel slot and the q8_0 KV cache. If memory is tight, it suggests trying q4_0 for the KV cache. A shorter context or a lower model quantization is another way to reduce memory demand.
- Choose the model and quantization. Use Unsloth’s total-memory estimates to decide which configuration to load; don’t use the download’s file size as a substitute for runtime memory.
- Set the context and parallel slots. OneDigital recommends a 16,384-token context and one parallel slot as a starting point. Context length affects the memory available during a session, so keep it modest when headroom matters.
- Choose a KV cache setting. Begin with
q8_0, as OneDigital recommends, and considerq4_0if memory is tight. - Review accelerator placement and extra arguments. OneDigital recommends assigning Metal all the GPU layers reported for the model, setting MoE CPU layers to 0, clearing stale extra arguments, and leaving Mmap/Mlock on Auto unless you have memory headroom.
These are OneDigital’s configuration recommendations. Treat them as starting settings to adjust around your chosen model and memory use.
Start with automatic MTP settings
For Qwen3.6 MTP, Unsloth says Studio automatically sets MTP parameters for the detected hardware and allows manual changes. Leave the automatic settings in place initially; if you tune the draft-token count yourself, Unsloth recommends testing values from 1 through 6. OneDigital’s suggestion of 2–3 draft tokens is one possible tuning point, not a universal default.
Monitor memory while the model runs
During generation, watch macOS memory pressure and swap, as OneDigital recommends. Green memory pressure and swap that is not growing are the indicators its guide suggests monitoring. If memory becomes tight, reduce the context or try a lower model quantization; if a changed setting appears not to take effect, OneDigital recommends saving and reloading the configuration.