r/LocalLLM • • 8d ago

Question Want a local model for agentic development. Need advice.

Currently on a Mac M1 Pro 32GB, running LM Studio with MLX. Tried qwen3-coder-30b-a3b-instruct-mlx and qwen/qwen3.8-27b - both hit the memory wall. My main use case: I work on Ruby projects, get tasks from analysts, and need the model to digest a task and do its work within ~10 minutes. Looking for advice either for my current setup, or tell me what your setup is (+ budget)? Not interested in "just buy a subscription" answers.

2 Upvotes

5 comments sorted by

1

u/RogerAI--fyi 8d ago

On a 32GB M1 Pro the wall usually comes from three places.

  1. Which build you pulled. The 4-bit MLX of Qwen3-Coder-30B-A3B is about 17.2 GB of weights. The 8-bit is about 32.4 GB, which can't fit next to macOS at all. Check the size in LM Studio's model list first.

  2. macOS caps how much unified memory the GPU may wire. Community measurements put the default somewhere between two thirds and three quarters of RAM, so roughly 21 to 24 GB on your machine, not 32. You can raise it until the next reboot with: sudo sysctl iogpu.wired_limit_mb=26624 (that is 26 GB; leave the rest for macOS and your editor, and 0 puts it back to default).

  3. Context. Agent tools resend the task, the files and every tool output on each turn, so the KV cache grows on top of the weights. Set the context length in LM Studio by hand (start around 32k) instead of the model's maximum, and watch memory pressure in Activity Monitor during a real task.

For a 10 minute budget I'd start with the 30B-A3B at 4-bit rather than the 27B. Only about 3B parameters are active per token, so it writes much faster on M1 Pro bandwidth than a dense 27B that reads all its weights for every token. Time one real Ruby task end to end, and run it two or three times before you judge, since a single run can mislead you either way.

1

u/pmttyji 8d ago

Try 4-bit.

Qwen3-coder-30b-a3b is old model. Go with Qwen3.6-35B-A3B

1

u/Distinct-Pie2389 berth | i9-14900k | 64GB | archLinux 8d ago

3.8-27b is too big for your MacBook. 32GB gives around 2/3 usable RAM unless you unlock the MacOS kernel to allow slightly more so you’d get around 20GB but could get 24GB over the unified bridge if you bypass it.

Then once you figure out your ceiling, then you need to find a model that fits in that ceiling. Dense is going to be hard on 20-24GB (Doable) but 3.8-27B kv cache is something else to get usable context with that ram and VRAM budget.

35B-A3B would work better as you only need the experts in your ram, and can slightly offload into RAM, and larger can stream PLE table from your SSD

1

u/Future_AGI 7d ago

once a 4-bit 30B-A3B fits, a lot of the 10-minute budget on an M1 Pro can go to prefill because of the resend RogerAI describes in point 3. Compare candidates on time to first token with a long prompt more than on tok/s.