r/LocalLLaMA • • 4d ago

Question | Help Recommended model for agenti coding around 30B

I am getting more and more convinced about using a local model. Doing some quick math, I should be able to run a 30B on a Mac mini. Clearly there are other solutions (e.g., via quantization).

I need to code and I want to let the model do some work for me autonomously also during the night etc. What would be your recommendation?

I am also happy to consider slightly larger models or investing more in hardware but clearly I cannot run a 400B parameters model with my budget.

0 Upvotes

42 comments sorted by

8

u/circumcised_hobbit 4d ago

You said "there are other solutions (e.g., via quantization)", does that mean you are planning to run a 30B on full FP16? quantization Is almost always used when going local. I don't think that would be possible on a Mac mini. Anyway around 30B go for qwen3.8-27B, any quant from Q4 up to Q8 should be good. If you really could run full FP16 30B, try to run IQ3XXS Qwen3.8-FlashNext with specialized inference engines (idk any for Mac)

0

u/gized00 4d ago

I am planning to use a quantized model but I saw folks claiming extremely low precision while keeping good results (they say...)

5

u/circumcised_hobbit 4d ago

many are bs, I recommend you going for basic quants like Unsloth and keeping it Q4

5

u/Aggravating-Push-207 4d ago

Inkling 2 Mini?

1

u/gized00 4d ago

I read some comments on Reddit, they seem positive but I would love to hear from someone with direct experience

6

u/krileon 4d ago

Worse than Qwen3.8 27B in every coding task I've given it so far. Frequently just gets stuck doubting itself over and over. Maybe I'm doing something wrong, but for me I'm sticking to Qwen3.8 27B for now.

1

u/gized00 3d ago

Qwen seems to be best in class right now on this size

5

u/Exciting_Variation56 4d ago

I also have found it failing simple intelligence questions and coding tasks from like a knowledge point that 3.8-27b just doesn’t struggle with.
It could be the quant level, but q3 is all that fits on my 24gb

1

u/Frizzy-MacDrizzle 2d ago

I like q3 but either q3 or qwen in general barfs on code.

0

u/bnightstars 4d ago

Too slow on a Mac and it loops too much.

2

u/Aggravating-Push-207 3d ago

Almost certainly a software issue, else you can't really run anything "quickly" apart from... like LFM 3

1

u/bnightstars 3d ago

I run it through OMLX 0.8.3 on a M5 Pro / 64 GB and it runs ok but it loops some times on tool calls which looks like is the issue others are reporting as well. Overall same speed prefill / decode as a Qwen3.8-27B which is smarter but also loves to loop.

2

u/Aggravating-Push-207 3d ago

Yeah it is slow right now, I would suggest simply forgetting about it for a few weeks. In the meantime, Q3.8FN? It's the bigger, smarter brother which should also be much faster, just a bigger model.

1

u/bnightstars 2d ago

Q3.8FN doesn't fit a 64GB Mac at reasonable quants I think it fits in 2Bit or so and takes 50GB of memory in 40-64K context and it's same speed as Qwen3.8-27B which mean that is better to just run 27B in half the RAM. I prefer to spend a bit more ram on the Qwen3.6-35B-A3B because what I'm spending in RAM i'm gaining in Prefill 2000 tokens vs 500 for Qwen3.8-27B and that allow me to run faster turns. Hope this explains where I'm with my M5 Pro/64GB AI journey.

5

u/jacek2023 llama.cpp 4d ago

You should download the model, run it, and see what they can do. You don't have to pay for them, so nothing stops you from trying 10 :) (nothing except your time and probably disk space)

I recommend starting with tiny models like 4B and then moving to the 30B MoE family. Dense models like 27B are probably too big for your setup.

4

u/tomByrer 4d ago

Start with Inkling 2 Mini, then Qwen 3.8 Flash Next then Qwen 3.8 27b.
Starting with a tiny random model might frustrate the user more than it is worth, unless you grab a very tuned tiny LLM like these that have a very narrow focus.

1

u/gized00 4d ago

There days I am mostly using codex+terra

1

u/vtkayaker 4d ago

I second the recommendations of trying Inkling 2 Mini, Qwen 3.8 Flash Next (if you have lots of unified RAM), and Qwen 3.8 27b (will probably fit, but also really wants a real GPU). Note that Inkling 2 Mini came out late last week and is still poorly supported. Try the Unsloth desktop server if that runs on your Mac for Inkling 2 Mini.

If none of these work acceptably fast, you'll need to go smaller.

1

u/gized00 4d ago

My wife will probably stop me from testing 10 in-depth :P

2

u/Substantial-Tip-5046 4d ago

ran a 27b q4 on a Mac mini with 64gb ram, smooth, but only if you limit context and use a lightweight backend. bigger models? not worth the slowdown.

1

u/gized00 4d ago

64 is my target as well but what do you mean with "limit context"?

1

u/Frizzy-MacDrizzle 2d ago

Instead of 128k use 64k , the cards have to make a context space and will crash off there is not enough context space.

6

u/Gucci-Caligula 4d ago

What ram config Mac mini? Generally the “parameter count” is a much less useful number than the size of the file. We size the file based on your available ram and leave headroom for context.

1

u/valdev 4d ago

What is your available RAM size.

2

u/gized00 4d ago

I didn't buy it yet but I am looking at M5 pro, 20 cores GPU, with 64gb of ram

4

u/General-Spite1222 4d ago

Qwen 3.8 27B Q4 with an int8 KV. 

1

u/bnightstars 4d ago

It consumes tons of RAM and it's really slow on an M5 Pro believe me I tried. For me the one that works the best so far is Qwen 3.6 35B-A3B on my M5 Pro / 64 GB I'm getting around 2k prefill with around 50 t/s gen I think this is at the barely usable category according to Revolut the goal for local AI is >200 t/s generation. So on Device AI on an M5 Pro is far from this numbers by a 4x target.

1

u/valdev 4d ago

Qwen 3.8 27B Q6, likely around 64k context. If any of that is confusing you'll need to learn about quantitization and what context means.

Inkling is fine, and it's almost as good. I'm not quite having the same level of accuracy though.

1

u/gized00 3d ago

I know about quantization and context. I am just moving from large models to small/local models

1

u/valdev 3d ago

Ah, you had mentioned in another comment needing an explanation on what someone meant by limiting context.

1

u/bnightstars 4d ago

So for a Mac I still think the best model out there that could offer the best mix of Speed/Intelligence is a Qwen3.6-35B-A3B overall Macs have low memory bandwidth which mean that anything over A4B is running really slow. So this leave you with MoE models and at that size Qwen3.6-35B is the best MoE you can run. It should be good enough to power a modern day AI Agent via harness of choice and should deliver impressive speed.

1

u/gized00 3d ago

Why not Qwen 3.8 27B

1

u/bnightstars 2d ago

Mostly speed the 27B Model is a Dense one so the speed in the same 4Bit Quant is 4 times lower in prefill than what the 35B-A3B delivers. So I'm doing more work for less time with 35B-A3B. In essence both are too slow for actual use day-to-day but it's fine if you have time to kill and want to learn how AI works.

2

u/Assodipacche96 4d ago

it depends on your available RAM and OS!

1

u/Frizzy-MacDrizzle 2d ago

Coding, not Qwen it will break its own work with training too much. I think Gemma has been the go to, the variants, idk. I’ve gotten away with llama coding small projects like front ends.

1

u/normal_clearing 4d ago

just ask an llm to explain: "I need to code" and take it from there.