Originally published on tabishapps.com .
The test: a local LLM MacBook test. I ran Gemma 3 12B (4-bit, with Apple's MLX) on my MacBook Pro and fed it prompts from about 1,300 to 65,000 tokens. A secret code was hidden in the middle of each prompt.
The result: the model alone took 7.2 GB. A short prompt peaked at 8.4 GB of memory. The 65,000-token prompt peaked at 17.7 GB. The model still found the hidden code every time, 6 out of 6.
The advice: when you work out how much RAM you need for a local LLM, add room for the context, not just the model file. Then check how the model stores its context, because that decides how fast the memory grows.
Peak memory of Gemma 3 12B (4-bit) on a MacBook Pro M3 Pro with 36 GB, by prompt length. One run per length. A tick means the model found the hidden code.
A post on X this week made me laugh. A customer at Best Buy asked if a Mac "would run a local model". The employee said he doesn't believe in AI, so he couldn't help. About 2,400 people liked it.…