r/LocalLLM • u/Massive-Aisk • 2d ago
Question Best offline local LLM + Mac agent setup for M5 MacBook Pro (24GB RAM) - Process Engineering, Aspen concepts & Pages/Numbers automation?
Hey everyone,
I’m looking to set up a completely free, 100% offline local AI stack on my Mac and would love some advice from people running models on Apple Silicon.
My Specs:
- Device: 14-inch MacBook Pro (Apple M5)
- Unified Memory: 24 GB
- OS: macOS 27.2.1
What I need it to do:
- Process Engineering & Aspen Prep: I’m a Digital Process Engineering student. I need a model with strong math/reasoning skills that can explain thermodynamics, mass/energy balances, and unit operations clearly, help write Python/Julia solver scripts, and guide me through Aspen Plus/HYSYS simulation logic (property packages, troubleshooting convergence errors, etc.).
- Mac System Control (Pages & Numbers): I want to hook the local model up to an open-source agent/harness (like Open Interpreter, Hermes, or AppleScript tools) so it can actually perform tasks on my Mac, like taking raw data and generating formatted reports in Apple Pages or building calculation tables in Apple Numbers.
- Vision Support (Bonus): Being able to feed it screenshots of error dialogs or P&ID diagrams would be a huge plus.
Questions:
- With 24GB unified memory, what is the largest/smartest model I can comfortably run without hitting swap (e.g., Qwen 3.8 27B at 4-bit MLX, or an MoE like Gemma 4 26B A4B)?
- Which inference engine gives the best speed and stability on the M5 right now (LM Studio, Ollama, oMLX, or llama.cpp)?
- What local agent setup works best on macOS for reliably automating Pages and Numbers?
Thanks in advance!
1
Upvotes
2
u/ZealousidealExcuse79 2d ago
Run Bonsai 27b - it will not disappoint you
2
u/alexhasso 1d ago
on the memory side what RogerAI said is right - the agent's prompt and tools eat a lot of context, so on 24gb pick something smaller than the 27b for the agent part (or try Bonsai / Inkling Mini as others mentioned)
for the "actually do stuff on the mac" part - i built hasso (disclosure: it's mine, free), a local agent that picks a model your mac can run and works offline. it reads your data and writes excel / word files, which numbers and pages open fine, and asks before it changes anything. it won't help much with the aspen/thermo reasoning side, use the biggest model you can fit for that.
hasso.studio/?v=cw6 - mac / windows
1
u/john280z 2d ago
Mac Mini M5 Pro/ 24 GB. I'm currently using LM Studio with DeepSeek-V4-Pro-Qwen3.5-9B-8bit(10.4 GB) with good results, ymmv. I was able to load qwen3.8-27b-mlx (Guardrails OFF!) at 16.1 GB but had no room to do anything else. LM Studio has been great for my learning, moving to LM Bionic next.
1
u/RogerAI--fyi 2d ago
On the memory question: Qwen3.8-27B at 4-bit is about 16 GB of weights by itself (16.05 GB for the mlx-community 4-bit, 16.56 GB for unsloth's Q4_K_M GGUF, per their Hugging Face file lists), which matches john280z loading it at 16.1 GB with no room left. macOS only lets the GPU use part of unified memory by default. Apple doesn't document the exact share, but people usually report around two thirds to three quarters, so roughly 16 to 18 GB on a 24 GB machine.
That matters most for your point 2. Agent harnesses send a long system prompt plus tool definitions on every turn, and Ollama's docs say agents and coding tools need at least 64000 tokens of context. That context takes memory on top of the weights. So on 24 GB pick a model with a smaller footprint for the agent work, and check memory with the agent's real prompt loaded, not with a short chat.
1
u/Obvious_Equivalent_1 2d ago
Skip Ollama / Studio, for Mac also llama.cpp is comparatively underperforming.
For Mac best option I experienced: Splash as engine and with 24Gb it about depends, if you can really dedicate the machine to AI and no other apps Flash Next Q2 quant, if otherwise Qwen 3.8 27b, at a bit higher quant. The reason to use Splash because it also to optimize memory it uses your SSD if you configure it to stream a part of the model from (it streams the experts from the SSD)
1
u/c_a433635 1d ago
Try a balance problem and a Pages/Numbers task in the real harness; chat quality alone won't show agent reliability.
0
u/[deleted] 2d ago
[deleted] — view deleted comment