Run an LLM locally on a Mac: what to download, how much RAM

Running LLMs locally on a Mac mini is surprisingly viable, but you must carefully monitor how memory is actually allocated. Testing this on a 48GB Mac mini, my biggest takeaway is that you cannot trust configuration settings blindly; always verify the runtime behavior.

Run an LLM locally on a Mac: what to download, how much RAM

Regarding disk space, five different models occupied 56.60GB. Note that parameter counts do not map linearly to file size: a 4B model is 6.86GB, a 26B model is 22.79GB, and a 35B model is 26.23GB. Performance-wise, the 35B model is impressive, loading in about 10 seconds and generating text at 28.7 tok/s.

The real catch is memory management. I noticed that while my configuration set the context to 262,144, the actual running value was 136,704. LM Studio silently shrinks the context window to ensure the model fits into available memory, so you should always check the active value during execution.

Another critical point for Mac users is that Apple Silicon uses unified memory, meaning the CPU and GPU share the same pool. If you load a large model and start a separate GPU-intensive task, you can easily exhaust your RAM. When this happens, macOS may kill a process to reclaim memory without leaving a single log entry. To track active models, use the following command:

lms ps

Overall, it is a great experience, but the lack of error logs during memory-related crashes means you must proactively monitor your resource usage.

Related posts

Comments

Popular posts from this blog

npm command not found on Windows: fix the PATH

Claude CLI 401 Unauthorized Refresh Token Issue

Tailscale without sudo: what userspace mode actually costs you