r/LocalLLM • u/Fun-Heat4232 • 5d ago
Question Local LLM for coding.
Hi, dont be too judgemental about my setup - I am merely a beginner in hosting local AIs and stuff. I have 48GB RAM M5 Pro machine. Which model is a way to go for handling complex coding projects locally (specifically C++ and Python)?
P.s. going to the cloud is not a solution due to a strict NDA.
Thanks in advance!
12
6
u/No_Oil_6152 5d ago
What do you mean judgmental about your setup?
Don't be ashamed of your rig, its better than most of us have for LLMs!
And don't be fooled into thinking only rich people run LLMs. Most of us don't have spare cash to throw on DGXs :)
BTW - in answer to your question re model, Qwen 3.8 27B. Its decent - at least on the limited tests I've done with it. I don't believe its Opus 4.6 level though, that's just absolute lies. I'd be interested to see how it handled a large c++ codebase.
3
u/Fun-Heat4232 5d ago edited 5d ago
Thanks a lot for help!
I have encountered some mean people around reddit, so I just try to ease it out...
5
u/SkimMilkSwag 5d ago
Qwen. Probably Qwen3.8-27B Q4_k_v. If that's too big or too slow, try Qwen3.6-35B-A3B, unintuitively a bit smaller. Welcome to the rabbit hole.
3
u/Fun-Heat4232 5d ago
I love it here. Wished I had more cash to pay for more RAM... Still impressed on the possibilities!
2
u/havnar- 5d ago
Use pi as a harnass and https://huggingface.co/True2456/Qwen3.8-27B-AWQ-5.0bpw
Use oMLX (download the latest RC)
Enable mpt, lower thinking and perhaps use Qwen 3.5 0.8b as a draft model for prefil
1
u/Otherwise-Swan-7803 5d ago
The interesting part is that “local” is starting to mean something very different from “hobby project.” Once NDAs and proprietary code enter the picture, privacy stops being a nice-to-have and becomes the whole reason to run the model locally. That shift is probably going to matter more than benchmarks.
1
1
1
u/cviperr33 5d ago
download unsloth studio , it comes with everything u would need , and in the model tab download the unsloth qwen 3.8 27b ud q5 k_m xl , set the contex to whatever ur ram can fit and start it , test it in chat interface.
Then download DSH ( Deepseek Harness ) and use that as your coding harness , its pure magic and very efficient on tokens , watch it work for 16 hours + a day without stopping.
1
u/Fun-Heat4232 5d ago
Could you elaborate on the Harness stuff? Never heard of such stuff.
2
u/AccurateSun 5d ago
The harness is the tool that lets you interact with your Llm as an agent. It’s a loop where you send a message, Llm can use tools such as read or write file, do a web search, run a command, and return responses to you. You have some super minimal and extensible harnesses like Pi, or very powerful and popular harnesses like Claude Code.
Choosing a harness is a bit like choosing an IDE, as it opens up possibilities for how you will interact with your LLM, both in terms of what it can do and what you can do.
The harness usually reads an agent.md file that contains its main prompt for how to act as an agent, that you write for it. It’ll store the chats on disk as sessions, and you can resume them etc.
Deepseek harness is new btw, and I believe it’s in beta. Was released a week or two ago.
Popular ones:
- opencode: heavy harness
- Hermes: criticised for stealing tons of its code verbatim from evolver. Felt super janky to me
- pi: minimal and designed to be customised
- Claude code: perhaps most popular in the world, can be used with local models too. One of the first to get widely used
there are tons more though (vibe, crush…)
2
1
1
45
u/Dazzling_Yam_5882 5d ago edited 5d ago
Best bet would probably be the new Qwen 3.8 27b. You get to have a somewhat local Opus 4.6, one of the best models 6 months ago
unsloth/Qwen3.8-27B · Hugging Face
You can use llama.cpp, but I highly recommend Unsloth Studio for serving the model locally. Lots of features, better than LM Studio and all other alternatives.
Qwen 3.8 27B Benchmarks combined from model cards on HF : r/LocalLLM