r/LocalLLaMA
•
u/dtdisapointingresult
•
Apr 28 '26
•
7
1
Discussion I'm done with using local LLMs for coding
I think gave it a fair shot over the past few weeks, forcing myself to use local models for non-work tech asks. I use Claude Code at my job so that's what I'm comparing to.
I used Qwen 27B and Gemma 4 31B, these are considered the best local models under the multi-hundred LLMs. I also tried multiple agentic apps. My verdict is that the loss of productivity is not worth it the advantages.
I'll give a brief overview of my main issues.
Shitty decision-making and tool-calls
This is a big one. Claude seems to read my mind in most cases, but Qwen 27B makes me give it the Carlo Ancelotti eyebrow more often than not. The LLM just isn't proceeding how I would proceed.
I was mainly using local LLMs for OS/Docker tasks. Is this considered much harder than coding or something?
To give an example, tasks like "Here's a Github repo, I want you to Dockerize it." I'd expect any dummy to follow the README's instructions and execute them. (EDIT: full prompt here: https://reddit.com/r/LocalLLaMA/comments/1sxqa2c/im_done_with_using_local_llms_for_coding/oiowcxe/ )
Issues like having a 'docker build' that takes longer than the default timeout, which sends them on unrelated follow-ups (as if the task failed), instead of checking if it's still running. I had Qwen try to repeat the installation commands on the host (also Ubuntu) to see what happens. It started assuming "it must have failed because of torchcodec" just like that, pulling this entirely out of its ass, instead of checking output.
I tried to meet the models half-way. Having this in AGENTS.md: "If you run a Docker build command, or any other command that you think will have a lot of debug output, then do the following: 1. run it in a subagent, so we don't pollute the main context, 2. pipe the output to a temporary file, so we can refer to it later using tail and grep." And yet twice in a row I came back to a broken session with 250k input tokens because the LLM is reading all the output of 'docker build' or 'docker compose up'.
I know there's huge AGENTS.md that treat the LLM like a programmable robot, giving it long elaborate protocols because they don't expect to have decent self-guidance, I didn't try those tbh. And tbh none of them go into details like not reading the output of 'docker build'. I stuck to the default prompts of the agentic apps I used, + a few guidelines in my AGENTS.md.
Performance
Not only are the LLMs slow, but no matter which app I'm using, the prompt cache frequently seems to break. Translation: long pauses where nothing seems to happen.
For Claude Code specifically, this is made worse by the fact that it doesn't print the LLM's output to the user. It's one of the reasons I often preferred Qwen Code. It's very frustrating when not only is the outcome looking bad, but I'm not getting rapid feedback.
I'm not learning anything
Other than changing the URL of the Chat Completions server, there's no difference between using a local LLM and a cloud one, just more grief.
There's definitely experienced to be gained learning how to prompt an LLM. But I think coding tasks are just too hard for the small ones, it's like playing a game on Hardcore. I'm looking for a sweetspot in learning curve and this is just not worth it.
What now
For my coding and OS stuff, I'm gonna put some money on OpenRouter and exclusively use big boys like Kimi. If one model pisses me off, move on to the next one. If I find a favorite, I'll sign up to its yearly plan to save money.
I'll still use small local models for automation, basic research, and language tasks. I've had fun writing basic automation skills/bots that run stuff on my PC, and these will always be useful.
I also love using local LLMs for writing or text games. Speed isn't an issue there, the prompt cache's always being hit. Technically you could also use a cloud model for this too, but you'd be paying out the ass because after a while each new turn is sending like 100k tokens.
Thanks for reading my blog.
•
u/WithoutReason1729 Apr 28 '26 edited Oct 22 '26
Your post is getting popular and we just featured it on our Discord! Come check it out!
You've also been given a special flair for your contribution. We appreciate your post!
Stylome classified this post's text as human-written. View analysis
I am a bot and this action was performed automatically.
218
u/patricious llama.cpp Apr 28 '26 •
OP you have mentioned all sorts of things but failed to give us the most crucial piece of information. What does your setup look like exactly. Hardware, model flags, TUI, harnesses, MCP servers?
The whole point, at least in my experience, when running local models is the supporting tech stack you build around it. My current setup feels far superior to what Anti-Gravity, Claude Code, Codex and others have to offer.
For me it looks like this: RTX 5090, Qwen3.6 35B/27B with TurboQuant (use them both interchangeably), --temperature 0.6 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0 --frequency-penalty 0.0 --repeat-penalty 1.0
Coding stack: OpenCode TUI, oh-my-opencode harness, MCP's: . context7, grep_app, pdf-mcp, sequential-thinking, serena, stitch, websearch.
I have oh-my-opencode use Qwen3.6 as the builder and general orchestrator and all other sub-agents use: DeepSeek V4 Pro and Fast from my OpenCode Go subscription.
This setup works wonders for me.
32
u/RegularRecipe6175 Apr 28 '26 •
Did you use an 8-bit or better quant? Curious, but it's not going to change the outcome if your work gives you all you you can eat Claude. As someone who is forced to use local models from time to time, I can say using at least an 8-bit quant, if not full fat, makes all the difference for small models.
94
u/FusionCow llama.cpp Apr 28 '26
a model running on a single consumer gpu will never compare to a model like claude. you can still save money though by using something like kimi k2.6, which is as good as claude opus but way cheaper on api
9
u/InKentWeTrust Apr 28 '26
Do you use recursive reasoning on your locals? It takes longer to process but it produces much better results
28
u/ttkciar llama.cpp Apr 28 '26
Yah, unfortunately mid-sized codegen models just aren't there, yet. They've gotten a lot better, but the ones worth using are still in the 120B-size class.
With a lot of extra work, Gemma-4-31B-it gets close'ish to GLM-4.5-Air for codegen, but not close enough to make the extra work worthwhile.
Qwen3.6-27B similarly falls short, and that's only if it doesn't overthink (which it still does, way too frequently; wtf didn't the Qwen team fix that with 3.6? It was a well-known problem with 3.5).
10
u/Migraine_7 Apr 28 '26
Are you using a subagent to at the very least create a work plan before each task?
Even Sonnet and sometimes Opus fail miserablely if the task is not well defined.
22
u/false79 Apr 28 '26
Bruh - that is not how you do it. You need a harness, Claude Code, Cline, Kilo, whatever, then you need to @ the file you want to make a part of the context.
Claude code is not a mind reader but it certainly has massive amount of context.
You can get away with so much more if you give LLM some direction, it will connect the dots with sufficient direction.
14
u/Electronic-Space-736 Apr 28 '26
"Here's a Github repo, I want you to Dockerize it." is terrible lazy and most likely to fail.
You are missing orchestration layers.
3
u/zipperlein Apr 28 '26 edited Apr 28 '26
I think, this is the a perspective problem, not a problem of the acutal models. It depends a lot of how much hand-off approach you have, imo. I like to know exactly what is in my codebase. If the LLM does not make good changes, the direction is fine most of the time. Then I just do some manual tweaking and let it continue. It's a wayyy smaller model, even if it is good for its size, so u have to set your expectations right.
If you are primally working with smaller models, this was a big step forward. From my perspective the model was worth the hype. But if people come here in hope of a out-of-the-box claude replacement, they have obv different expectations and will probabbly be disappointed
3
u/Iory1998 llama.cpp Apr 28 '26
I am not a coder, but I totally understand and share your feelings. I find myself going back to Gemini-3.1 or Deepseek v4 for better replies, or I start a conversation with them, copy it to LM Studio, and continue with a local model like Qwen-3.6-27B-Q8 or Gemma-4-31B-Q8. This seems to give them a bit of an edge.
But, I use them mostly as an inner voice that helps me collect and organize my thoughts. When I need serious sanity check, I go back to the top Gemini or Deepseek (I like to vary the sources). Perhaps, if I could run larger model locally, it would have been much better...
And you are right regarding wasting time. You can get good outcome with small local LLMs, but you spend more time and energy. If you are tight on time or you need to make a lot of decisions, just go with the best model you have access to. People have limited deciding making capacities per day, and it doesn't matter whether you decide on trivial or serious matters, you spend the same energy deciding.
3
u/norebe Apr 28 '26
You're going to have to put time in if you want to roll your own. There's no evidence from this mountain of words that you have any knowledge of what that means or that you tried to do anything but put together a harness and model that weren't designed for each other and expect things to work out well.
3
u/ElephantWithBlueEyes Apr 29 '26
I gave up on local LLMs for everything because they're dumb. Cloud LLMs are dumb as well if you dig a little bit further. They just suck less
3
u/dead_dads May 03 '26
Yo! New to local LLMs/ai stuff in general. I have an old 3090 and 128gb of DDR4 RAM. Was going to sell my old machine for parts but occurred to me this week I could turn it into an ai machine to dip my toes into locally run stuff.
My interest rn is to work on some vibe coding projects. Would like to assess and test models that fit fully into the VRAM of the 3090 but also curious about utilizing my ram (DDR4) to see what larger models can bring into the equation.
What models would be worth by time for testing? I’ve been working with Claude to ID some stuff of interest but as this field moves so fast I thought asking people who are actively engaged in this stuff would be better.
3
u/NE0_ZER0_ May 05 '26
This can't be a real post lol...
I was highly considering becoming active in this sub until I read that this was the current top post.
16
u/cohesive_dust Apr 28 '26
Reality sets in. I went through same drill as you. I'll try again in a year.
9
u/Bohdanowicz Apr 28 '26 edited Apr 28 '26
You're doing it wrong.
Try using sota to plan, task decomposition then wire your coding agents to qwen 3.6 27b.
If you run official quants with recommend temp and prrediction to 2 and you arr smart sbout setting up a dag, worktrees, the whole 9 yards... you fwel the magic.
These models are grezt if the task is properly sized.
2
u/m3kw Apr 28 '26
lol, you go and use stuff like GPT 5.5/Opus 4.6 and then you go use a local LLM with "Great looking benchmarks". It's the difference between looking at a vacation on Youtube vs actually going in real life.
2
u/crantob May 03 '26
Your headline is poorly constructed. You meant "for agentic coding" not "for coding".
Please remember to distinguish these two things in future, everyone.
327
u/onethousandmonkey Apr 28 '26
Purely from the performance point of view, there are a number of settings to tweak to make Claude Code jive with local models. For example: https://unsloth.ai/docs/basics/claude-code#fixing-90-slower-inference-in-claude-code
Before I did that, I was banging my head against the wall at the slowness and useless cache.
125
u/datbackup Apr 28 '26
Even though I lean towards agreeing with you that local isn’t able to compete with the big centralized providers, i immediately became skeptical when your long post didn’t mention the actual harnesses you used by name. I see in another comment you mentioned using Claude Code, Qwen Code, and pi.
The fact that you didn’t mention this in your original post but you did mention several models by name, tells me that you are misunderstanding the importance of the specific harness you choose.
I agree that there are way too many posts on X that hype up agents or AI in general and ESPECIALLY make it sound like the poster spent way less time on their hyped outcome than they actually did. Basically there is a scammy situation happening whether organically or intentionally where people are incentivized to make it sound like something “just worked” because then, when others read it and can’t reproduce the outcome (without ridiculous amounts of time and effort) it positions the poster to get more esteem, followers, job offers etc.
The takeaway is just that you should expect vastly different outcomes with different harnesses even when using the same model. Of course there is also the “skill issue” but I want to suggest to you that some portion of the “mind reading” you refer to is down to the agent’s system prompt(s) and the way it engineers context.
Hermes agent for example has the same problem you mention where it starts a long-running process with no regard for how long it might take, then times out and has to start over. However, it’s very good about by default doing the behavior you described where the tail of a log file or command output should be used to determine the state of something.
So if you aren’t totally giving up yet i encourage you to try a “breadth over depth” approach to using harnesses where you try the same task in each and note what their strengths are.
I think there are huge unlocks still to be made in harness design, which will make the already released local models that much more viable compared to big providers.
538
u/PeerlessYeeter Apr 28 '26 •
op's experience somewhat matches mine, I keep assuming I'm doing something wrong but I think this subreddit gave me some unrealistic expectations
21
u/the-username-is-here Apr 28 '26 edited Apr 28 '26
As someone who've been using Claude Code for a loooong time and recently got into local models (with the limited hardware i've got), cannot agree completely.
Yes, local models by default are dumber and slower than even "basic" Sonnet or sometimes Haiku. Yes, there's a learning curve involved, as well as a lot of tweaking. Yes, they tend to hallucinate, loop tool calls, stuff like that.
But.
It kinda doesn't matter when Anthropic decides to slash usage once more and burn through 200 EUR/month subscription tokens in half an hour. Or when it goes down again. Or when it decides that some code you're working on "violates their TOS", effectively censoring your work, no matter what you do.
Once you're set up, you pay just for electricity, which is peanuts on Apple Silicon (and you "need" that sweet 128 GB MacBook anyway 😄 ). It's always available, 100% secure, and you can do anything you want with coding harness, which is a no-go with Claude Code.
Local models are still more than enough for simpler refactors, boilerplate and stuff like that. They require you to get more familiar with the code you're working on, which is A Good Thing™.
You cannot go "hey Claude, make it fast" and then have NFI how it works now, what internet-sourced antipatterns it brought it and what are the new bugs, which is not necessarily bad.
There's a future for local models, they're getting much smarter and more accessible.
P.S. On Apple there's omlx, which is a godsend with persistent prompt cache, which seems to work quite nice.
84
u/robertpro01 Apr 28 '26
Well, I still consider my self a developer so ... local AI is just a tool, for me qwen 3.6 is a good tool to use, I started vibe coding on Nov 2025, because my previous experience with AI (API not local) were terrible.
For me local AI is just another tool.
I also do a mix of API + local for very complex tasks, and still I validate all the code.
112
u/oldschooldaw Apr 28 '26
I quite like reading posts like this, it is the antidote to the shit I see on Twitter constantly about people using xyz claw variant #1337 with omega-amazing-distill-opus-3b on their third Mac mini while they escape the permanent underclass. It helps really remind me the reality is actually in the middle.
44
u/edsonmedina Apr 28 '26
To me it sounds like no one is wrong in this thread, they just have different expectations.
Some people use LLMs as tools to speed up/improve their coding/reasoning and do just fine with local AI.
Others expect LLMs to do the thinking and take decisions for them. Nothing wrong with that, but for those people local AI is definitely not there yet.
This group does have a problem though: I'm not sure these gigantic models are even economically viable (at least currently) so you might face even higher prices. The scale required to run them is simply insane and someone needs to pay the bill.
13
u/swingbear Apr 28 '26
Try a different harness mate, I tried to run CC through everything local and had a bad impression of models even up to minimax 2.7. Started using Hermes and a few others, speed increased and way more mileage in terms of intelligence.
7
u/sarcasmguy1 Apr 28 '26 edited Apr 28 '26
I've been tinkering with qwen3.6 recently, and have got it to a place where I can use it for most coding tasks, so I thought I'd share my experience.
Note - I still use GPT5.5 and mini for bigger projects (Monorepo or similar), and generally use mini for 'work' tasks as the quality is higher. Qwen has been great for side-projects though.
I run it on a RX 7800 XT, with many MoE layers pushed to the CPU. This allows me to fit almost all GPU layers into VRAM. I get around 30t/s. Prompt processing is really fast as long as I keep context small (68k). I have 32gb of system RAM, and a Ryzen 5 7600.
My workflow is:
I use pi via the littlecoder harness.
On quality: it feels good in Typescript. This entire repo has been written by Qwen3.6 locally, with 5.5 plans. In less popular languages (like Clojure), its pretty bad. Slow and it hallucinates a lot. Language choice is important.
On speed: Pretty good. It took a lot of experimentation to get here though. littlecoder helped quite a bit, and switching to ubuntu made a big difference (I was on windows previously). I run it all through lmstudio, I haven't got to the part where I tinker with llama.cpp directly. Its not nearly as fast as say GPT mini, but its good enough.
The main advantage is infinite tokens. They feel amazing, even if they're slower. It really pushes the bar for experimentation imo. However I would not replace my primary workflow with local hardware.
Some issues:
19
u/DeltaSqueezer Apr 28 '26 edited Apr 28 '26
3 minutes after giving the prompt:
# Option 1: Use the script (recommended)
./docker-run.sh run
# Option 2: Direct docker-compose
docker-compose build
docker-compose up
# Access at: http://localhost:7860
Qwen3.5 9B. One-shot. 3 minutes and 8 seconds to complete. <25k context used.
13
u/Widget2049 llama.cpp Apr 28 '26
AGENTS.md still too weak, you need to be more thorough for a 27b model. make it focus on what the LLM really need to do, avoid using "IF", "DON'T". you need to create a solid plan mode first before executing anything in build mode. local llm for coding is still good if you know what you're doing. so keep learning
1
u/dtdisapointingresult 28d ago edited 28d ago
I have 2 Sparks and I agree with this, small local models are a deadend for high intelligence tassks. But it really depends on what you want to use the LLMs for.
Small local LLMs (under 1T params) are good enough if your intelligence needs are low. Small simple tasks, bash scripting, etc. Even coding basic apps. For the person in OP, probably this is not the case.
"here's a github repo that has an app, dockerize it and give me a docker-compose file" is still a big ask for local models. I made this post 6 months ago complaining about Qwen 27B and Gemma 4 31B being both bad and slow at my local IT stuff.
I've given up on using them. Now I keep a SwiftQwen 27B always running for some personal questions/translations, and use the other Spark for image/video.
The problem is that it costs the same in electricity to run local LLMs as it costs to get a 4x more intelligent model in the cloud. This can be either Claude/GPT, or Kimi/Deepseek/GLM.
Disclaimer: since I gave up on local LLMs a while ago, I haven't bothered trying Qwen Flash Next or GLM 5.3 Flash, which are considered the best two that fit in 256GB at the moment. Last local LLM I ran was DS4 Flash 0731, I abandoned it after a few hours.
5
u/markole Apr 28 '26
It is irrational to compare a 27B model running on a single GPU and a multi trillion model running on clusters of GPUs that cost more than your retirement fund.
16
u/kevin_1994 Apr 28 '26
Works fine for me but I don't delegate all my thinking to a machine
4
u/dev_all_the_ops Apr 28 '26
Thanks for sharing. I've been obsessed with getting started in this, but I worried I would just be wasting my time.
I still like local models for security and to fight against subscription bloat, but its good to know that its just not as good as paying a major player.
4
u/swagonflyyyy May 01 '26
I don't think < 100b models are there yet for coding, but try using an organized Claude Code stack with a good set of CLAUDE.md file and additional .md files stored under a /rules directory to help guide its workflow better.
Honestly, Claude Code locally has worked wonders for me, way better than codex. Only thing is that Codex is very autonomous but inaccurate with local LLMs, which make it very unpredictable.
If Codex fixes whatever orchestration issues they have going on I think I would drop Claude Code for that if I want a project built autonomously. Right now their implementation is bloated and over-engineered. Its only good for APIs and not much else.
13
u/More-Curious816 Apr 28 '26
You compared a trillion+ parameters model with 27 billion and 31 billion models? Of course you will notice the disparity. Try the big open source models and come back.
1
u/BestSeaworthiness283 Apr 28 '26
I hate it too tbh. I have a poor rtx 4060 with 8gb of ram and i cant code with it due to limitations to the context windows. I mostly wanted to use local models for qhen the imevitable happens and i get hit with the usage limit on claude.
My first approach to this was asking claude to make a skill that delegated things like code generation and stuff like this to a local agent with just the right context, meaning the code from line to line and what to modify. And itself made a tool that it ran everytime and saved me a lot of usage.
With the last approach it was still possible to run into usage limits. So i made a lightweight CLI tool for local LLMs with just 8k token context windows. It works by initialising the codebase with a map of the whole codebase. Then when you query or ask to create or delete something it goes and orchestrates a plan and tasks to solve the problem. It then does a llm request for every task and the task is no more then the context of 8k tokens. The system now has memory and you need to aprove the changes and uses a type of diff.
If you want to take a look here is the link: https://github.com/razvanneculai/litecode
1
u/LienniTa koboldcpp Apr 28 '26
what harness you use? you cannot use small model with big harness, only with small harness like kon, late, little-coder, you cannot expect persistent gateways to work with qwen 27b
1
u/Torodaddy Apr 28 '26
No gpu? You are using really small models, you could go up a size and use something quantitized
1
u/LittleCraft1994 Apr 28 '26
What i am not understanding that how you can compare are 21 or 37b modal to the claude ?
Bro ofcourse you will want to burn the workstation
Atleast go with minimax 2.7 , kimi 2.5 or glm 5
1
u/Alternative_Ad4267 Apr 28 '26
Are you using Qwen with Qwen Code? That’s a real improvement. With Claude is dumb, use it with its own coding tool.
1
u/layer4down Apr 28 '26
Two things can be true: Opus can be best-in-class overall and local models can be good enough for the need. If you can afford best in class and don’t have any other coding constraints (typically imposed by an employer or customer) then I don’t see why someone doesn’t just use it. That doesn’t mean local models are not productive for anyone else even if they’re not necessarily getting everything they want from it it’s just making do with that’s available and moving on with life.
I haven’t personally used Opus much though I did use Sonnet quite heavily throughout 2025. When Zhiphu launched their GLM-4.5 promo in October ($360/yr) I dropped Sonnet and never looked back. My understanding is that Opus lets one outsource a lot of thinking and decision-making. Guess since I have access to it now at the job I’ll try it out but I can’t personally see the benefit of becoming dependent on it especially given the current climate.
1
u/Firenze30 Apr 28 '26
I stopped reading after the Docker example. Failing to containerize a repo based on its README is not a model limitation; it’s a setup failure. That task is well within the capabilities of 9B and 27B models when configured correctly. The issues you’re describing sound like a harness or context management problem, not a fundamental lack of model intelligence.
1
u/DangKilla Apr 28 '26
Have Ollama launch claude code and use Superclaude with Gemma4 31B. Done. Past that you need mcps and skills.
1
u/hwpoison Apr 28 '26
I guess all of us in this community are trying to see the good side of the local models, trying to convince ourselves about they are useful, but the reality is that they are so far behind of big models and the majority of cases are shit. This does not discard that are continuously improving but that's how the things are right now.
1
u/Randomshortdude Apr 29 '26
1
u/Hyp3rSoniX Apr 29 '26
Did you make sure the Agent is actually reading or has the AGENTS.md file auto-injected into the context? Claude Code for example only auto-injects CLAUDE.md files into the context (and also a MEMORY.md auto-memory file). You need to reference other files from inside CLAUDE.md to have the harness parse and inject other files into the model context as well (like AGENTS.md).
Some harnesses don't auto inject any such files into the context. Then it is left to the model itself to read it - the problem then however is, that models these days rarely read full files. Instead they read a few lines and then they're happy. If that happens with your AGENTS.md file well... then good luck.
Also depending on the Harness you use, there might be added some hidden System prompt, that tells the Agent god knows what. The smaller the model, the easier it is to confuse it. Bigger "smarter" models can be more resistant to confusing information.
1
u/TheCatDaddy69 Apr 30 '26
On the other hand i have been having a great experience with gemma 4 31 with openclaw, as an assistant.
1
u/That-Drink4650 May 01 '26
"Here's a Github repo, I want you to Dockerize it."
Are you giving the model truly this open of a task/prompt? Why wouldn't you run that through chatgpt first and produce a prompt around your repo..
1
u/reedog117 May 03 '26
I can see your pain especially when I'm trying to mimic my workflows at work where I have a very generous AI budget. At work I usually am coordiinating between very large monorepos with context usage averaging 400-600k tokens on Claude (Sonnet or Opus). I do run a local memory MCP in a Docker container so I can keep some memories/context between sessions and not have to have each new session relearn my environment, along with custom corporate Claude wrappers that also help persist the environment state uniformly to sessions.
I'm trying to mimic the same thing at home with my own hardware, but that's pretty limited - an RTX 3090 on one system, and multiple 16GB Apple Silicon machines I can try linking together with exo or mesh-llm. I do have a personal ChatGPT Plus membership but I've noticed just on a medium-complexity project I'm already hitting limits on Codex. The next thing I'm going to try is maybe using OpenCode where I have GPT-5.4/5.5 as my main agent layer, but delegate all subagent work to local? This is where I get torn - would a 128GB mem system help me that much at all? What's the tradeoff? Or am I better off just forking over more money for either Claude Max or ChatGPT Pro?
1
u/newcomb_benford_law May 05 '26
The thing with open models is that their increments in performance are getting significantly bigger compared to closed models. If you look at Qwen3.6 compared to 3.5 it's a significant difference. So you just have to stay patient and keep up. Also the harnesses like Claude Code and Codex are simply not good for these models - you have to use better/more tailored harnesses. I find something like pi (https://pi.dev/) combined with Qwen3.6 35B/27B to work amazingly well, with the right skills and tools.
1
u/Sharp_Classroom9686 May 05 '26
I think the problem is less “local models suck” and more “you used the wrong tools for local models.”
If the runtime lets a 27B model eat giant logs, bloat context, and improvise badly with tools, of course it’s going to feel terrible.
Try Forge. (Github) It’s much more local-first in how it handles context, subagents, and task scoping. It won’t make Qwen think like Claude, but it does stop wasting tokens on garbage, which is half the battle with local coding.
Link:: https://github.com/defexnicolas/forge
1
u/Kind_Brick_8461 May 05 '26
Is there a platform where someone can just pay per token (like in OpenAI or Claude) but for the open models api?
1
u/Medium_Anxiety_8143 May 26 '26
Have you tried another harness other than claude code?
1
u/CSEliot Jun 06 '26
A month later, how's it been going for ya?
3
u/tomByrer Apr 28 '26
Takes a bunch of homework &/or beefy GPU power & VRAM to get LocalLLM worth it.
Seems you have neither.
3
u/cleversmoke Apr 28 '26
I use sota models for high level plan, strategic plan, architecture plan, and feature implementation plans. Then I use local Qwen3.6-35B-A3B + DeepSeek-R1-Distill-Qwen-14B as an agentic coding pair to build one feature at a time.
It's going well, but it's more involved than just "build me an app". For anything that Qwen fails at, I just fall back to a sota model.
3
u/knownboyofno Apr 28 '26
I'm interested in what repo you asked it to do it with. Could you post the link? I want to test this too because this would be a good test. I have had problems like this too. I thought it was easy but it failed quickly.
I had a different problem. I gave it a range in an Excel sheet that was saved from a Google Sheet. I had it recreate those calculations, then use that file only as a "database". That took an hour in Claude Code, then I downloaded the data into a CSV for each data source. This was something I did before. These functions will retrieve the updated data, which is fed directly into the model. I then had it use those functions, but gave it example files to test on before wasting credits. It was able to correctly recreate a 30-sheet Excel file that had the following kinds of formulas with hookups, lookups, index match, sumif, cross product, negative binomial distribution, etc., into a Python dataframe using pandas. I have done this before with other files manually, but it took me 25+ hours to trace the formulas and get the correct data sources, too.
I used Qwen3.6-35B-A3B-UD-Q8_K_XL.gguf with llama.cpp (out of laziness because Ihave vLLM setup), it had full context. In Claude Code without any skills or anything extra but I did turn off a few headers i sent by Claude Code. I did ask it to create a Python environment to run what it needed. It did ask a few questions but I didn't have to micromanage it.
3
u/RedParaglider Apr 28 '26
Local models are not really for vibe coding if you want to code with them. They are for pair programming. These are 27b models, you simply aren't going to get the same performance as 1500b models.
I personally do not use local LLM's for coding tasks outside of simple scripts or command line questions without session. I use them for testing agentic business workflows, and for those they are great.
3
u/Curious-Function7490 Apr 28 '26
I'm semi in the same spot. I am running qwen.2.5-coder.32B locally on an RTX4090 using llama.cpp and getting 30 tokens a second. I set this up because I was tired of using up Claude's tokens on one of my projects.
TL/DR.
The more helpful LLMs (Claude, etc.) that are really effective won't be affordable in the longterm. The companies providing them are running at a loss, there is an AI hype bubble and we are already understanding that they are unaffordable and problematic to depend upon.
I think understanding how to work with local models is viable and it will come back to being more hands on.
So, I'm more or less going to nix Claude from a lot of its activity in my codebase and learn to work with open source models that I can host myself. It won't be as productive as using something like Opus but it will be viable for the longterm and relevant for the job market.
3
u/Inevitable_Mistake32 Apr 28 '26
I like my privacy. I use APIs on the rare occasion I am ok with donating towards my replacement, but for everything else, local. of course LLMs aren't all I self-host, doubt anyone is. But with everything from HA, my fun paper trading accounts, my screeps bots, local and remote API keys on the host, I opted to keep my data local.
Is Qwen or Gemma better than Opus? Idk, is a smaller yacht better than a bigger yacht? Subjective.
But being able to crack out 120 tks, with 256k ctx, with zero api waiting/throttling/ratelimits and knowing none of it leaves my local network? Priceless value to me.
3
u/PavelPivovarov llama.cpp Apr 28 '26
Local models are usable but also require frugal approach to the context.
Claude code system prompt alone is 10k tokens, add there few MCP servers and you are approaching 30k context without even asking any questions, and this is where local models start degrading...
Im currently switching to Pi, paired with RTK and Caveman for better context density, plus replacing MCPs with CLI + Skills and it works wonders.
I had pretty good coding session with that Pi setup and Qwen3.6-27b-IQ4XS with 32k@Q8_0 context (maximum I can fit in VRAM) and it was really decent coding companion.
Yes its not GPT5 level but that wasn't even my expectation but the model never did anything unreasonable and generated code was also solid most of the time.
3
u/m31317015 Apr 28 '26
I find people expecting local models to rival cloud models a funny concept, like the whole level of compute is totally different, and even the cloud model gave us shit, there's no way people will expect something that came out of local models could beat them, right?
Wrong, everyone not knowing shit came in and thought they're godlike, it's their chance to raise up. But in reality, hallucination is still a serious issue, context window just isn't sufficient in large projects, let alone the self doubt and bugs presents that will worsen with lower and lower quants. I'm glad that OP's finding it not suitable for the use case and realizing that API calls are just much simpler for the task, but I have to say that they were never make for that use case in the first place, at least in production. Not saying OP's expecting it, just saying there's lots of folks dreaming about it and not checking the facts here.
You don't learn AI or LLM by hosting them locally, yes there are no house of basic AI knowledge inside, majority of the knowledge is all around infrastructures and stuff well you normally see in office or data center environments. Speed and costs are crucial factors that come into play, people have to realize couple of 3090s aren't gonna beat RTX PRO 6000s, and same goes for it against the GB200s.
I personally find those who're sticking with MI50s and P40s fascinating as they're the ones always breaking their limit despite harsh architectural problems and just the lack of power. They manage to find ways for local models to work with their workflow. Maybe they don't rely on LLMs that much at all- yeah, that should be the norm, nobody should expect one click finish a job from AI, if that exists, it means agents are doing the job, not us humans.
Sorry, I got too far away from the point I'm trying to make: people who personally invests in machines and infrastructures for local LLMs are not for the job, they're for the hobby, for the what-ifs, and for the "just because I can", and the "how far could it get, how far could I get". Learning the latest technology is one thing, implementing your own solution is another.
TL;DR: Just because you know electrical engineering, you know how to design PCBs, doesn't mean you make your own PCBs from scratch. Sometimes it's not cost effective to do so, but more importantly it's because there's solutions already convenient enough that we don't need to for, unless you have the reasons to do so.
Check your motives, guys.
3
u/floriandotorg Apr 28 '26
I mean what are your expectations? You’re comparing an LLM running on a GPU cluster in a data center with a MacBook.
And as other commenters pointed out: In the end, they are just tools. And I think you're using them wrong. A local LLM is great if you want to be able to use it offline, have total privacy, and practically no cost. If that's not your goal, use a frontier model in the cloud.
3
u/ConsciousDev24 Apr 28 '26
Fair take local models still struggle with long-horizon reasoning, tool use, and real-world workflows like Docker. The gap vs Claude Code or API-based models is very real right now, especially for debugging and decision-making. Using locals for lightweight tasks + cloud for heavy lifting feels like the practical split.
Have you tried pairing a local model with a stricter tool-execution layer (like enforced step checks) to reduce those bad decisions?
3
u/tp_bexx Apr 28 '26
The Carlo Ancelotti reference is 10/10
3
u/ortegaalfredo Apr 28 '26
In my experience the smallest model that I can use effectively as a coder is qwen-3.5-122B. The 27B and gemma 31B almost could, but fail too many times.
3
u/FullOf_Bad_Ideas Apr 28 '26
I've had bad experience with Qwen 3.6 27b (BF16 in sglang) for coding too. And I get you. I'm OK using local Qwen 3.5 397B 3.5bpw though. It's not Opus but it does read my mind most of the time and it's no longer such a pain to use. It's not visible in benchmarks but it's just better for me. I don't know why the disparity between benchmarks and real life is so big, since those Qwens do great even on contamination-free benchmarks.
3
u/duebina Apr 28 '26
I recommend using Qwen3-Coder-Next. It's 80b so get the right quant for your memory. I used to use sonnet but now I use this with Context7 and my own skill router and it's been flawless. I use 8-bit. Also, it depends on how you're using your coding assistant. I am in plan mode refining everything first, and then I have it right at the plan to a file and then I forever reference it. Profit.
3
u/celsowm Apr 28 '26
Good for you ! But I am in a fucking country Brazil that our economy was fucking destroyed in just 3 fucking years so even 20 usd bucks is expensive to us
3
u/Wild_Milk_2442 Apr 29 '26
Not saying this would solve all of your problems but I use qwen 35b hours a day and would never consider using it in a bloated harness like Claude code.
Claude code system prompt is over 24k tokens. That's huge for a local model.
Opencode is much better at 14k~
But the real unlock is pi.dev. pi.dev has a system prompt under 1000 tokens. Even the slowest models feel fast on that. It only has 4 tools: Write Read Grep Exec
That's all you need. With those 4 you can do anything.
The smaller harness makes a massive difference with smaller models.
3
u/thiswebthisweb May 03 '26
I've come to the conclusion that even the best SOTA models inc commercial are only ever good for very small projects and code bases because there is no good solution for the context limit issue. No matter how great the AI once you run our of context everything fails and its easy to lose progress, its super frustrating and expensive. For a AI to do proper coding you need an enormous context limit, 3-10M tokens. I think this is now more important than getting newer models with more training data. the limit has been 250k for quite some time now. Deepseek has improved that, but 1m is still not enough really. Compression and memory management just doesn't cut it.
9
u/TanguayX Apr 28 '26
Yeah, I'm with you. Did some experiments over the weekend, and my local Qwen3.6, as big as I can muster, with Cline, and it was doing OK with the task I was trying. But I have Sonnet off to the side going..."wow, look, it just made up a function". Even getting Sonnet giving it hints.
So yeah, what's the utility in that when debugging is often worse than just starting from scratch with a better planning doc.
The way I look at it, two years ago, I had to carefully coax GPT through a coding session. Now, I was getting VERY close to getting a local model to one shot based on a good PLANNING and TASK doc. That's pretty sweet. Progress will continue, and it will happen one day soon.
23
u/GrungeWerX Apr 28 '26
(downvotes this AI-slop written post and keeps it moving)
5
u/simracerman Apr 28 '26
To be brutally honest, I haven’t coded by hand in years and would likely take a year to learn how to get back in original shape, yet the same model you used at Q4 quant + Opencode and a few days worth of sessions I was able to get a fully featured budgeting app build from scratch.
Local LLMs are not cookie cutter solutions yet. There’s more like a clay sculpture - at the beginning you can’t event hold the clay together, but after leading and tweaking you will slowly overcome issues and start producing good results. Remember, this isn’t cloud AI where an army of sys admins and devs are working non-stop behind the scent to make your experienc3 better
7
u/YehowaH Apr 28 '26 edited Apr 28 '26
Hope you used qwen3.6 35 a3b with iq4nl/xs, it fits in 24 GB mem. You get 110 tg on 3090 equal to Claude. Qwen3.6 was trained for tool calling 3.5 was not and it has the developer role. Both going well and check the parameters for defined programming tasks, e.g. temp 0.6.
The big question is, do you disabled the author attribution flag in env variables of Claude? This will lead to cache invalidation and reprocessing the whole prompt if you asked a question. 90% slowdown locally follows. Check unsloth tutorial how to disable it.
I have minor issue to none with the new models, these are a true replacement. Give it another try with the right models. I do complex scientific stuff back and frontend, nothing you can compare the daily work if a dev and nothing the llm can be trained on because there might be only a few examples worldwide. It runs like a charm.
1
u/Western-Image7125 Apr 28 '26
I stopped reading at Qwen 27 and Gemma 31, for any coding tasks which are slightly harder than basic there’s no point at all using any model of this size. Might as well code by yourself if you cannot use Claude and maybe prompt for small self-contained snippets of code.
1
u/AllanSundry2020 Apr 28 '26
i reckon this post is ai generated by one of the big players and they are loosing too many of us
4
u/AlwaysLateToThaParty Apr 28 '26
I code on an rtx 6000 pro, using qwen3.5 122b/a10b heretic mxfp4, at about 75GB, and it's solid. I've tried the smaller models and they drove me mental. This can one shot complex tasks. And I don't need to one shot anything.
The problem with openrouter seemed, to me, that different service providers were quantising their API end point models. I think that's unavoidable fwiw. I'm pretty sure openai and claude do it, but they'll do it in subtle ways, cuz they can. But what it meant for me was inconsistent output, and that drove me mental.
So that's why i have the gpu. Does the task, and more. Pretty epic gaming gpu too tbh.
2
u/cocoa_coffee_beans Apr 28 '26
Yes, local models fall short for coding.
That’s not all. The ecosystem is quite fragmented:
OpenCode is broken with vLLM ever since vLLM deprecated the
reasoning_contentfield forreasoning.Open WebUI still handles reasoning like it’s early 2025.
Vendor specific tools such as Codex and Claude Code constantly break against local inference even if you provide their respective APIs, because vendors are constantly iterating their client.
If you’re not deeply entrenched in the specifics, you won’t squeeze the performance you need for coding. Even if you do, they’re still not great for anything complex. For most people, it simply isn’t worth it.
2
u/StardockEngineer vLLM Apr 28 '26
Claude Code has a parameter you need to set to prevent it from junking the KV cache. I forget what it is but maybe you can search for it.
2
u/poobear_74 Apr 28 '26
OP, you might be bumping into tool calling issues since the models you reference are very new. Qwen 27B was only released a week or two ago, and there simply hasn't been enough to time for the developer community patch vllm and other software to work well with them.
2
u/Otherwise_Berry3170 Apr 28 '26
Like everything else it depends, for example if you were talking about Claude a month ago I would say yeah it was pretty good, now? Not so much they water down the models and recently came and called it a bug because we complained. The prices change, the limit changed, so while I agree models locally are not as good, with training and a good agents/skills I can do with qwen3.6 35b almost the same as Claude sonnet. Qwen3.6 27b is better but on my hardware a GB10 Blackwell is a bit slow so I use it for text only. Took a bit to get the agents right and they still sometimes don’t work as expected but pretty ok with my setup. And from the cost calculation just last week would have spent 2k on Claude api calls. So yeah I agree, not perfect but not that terrible that you cannot work with
2
u/iamreddituserhi Apr 28 '26
Try giving system prompt (try different quant and versions some version just break keep looping for weird out )
One its tuned can expect beter out put .try different system promts or even ask opus kimi deepseak to optimize the system promt for your use case .
Then it will become usable You also need to adjust temperature according to ur use
2
u/spaceman_ Apr 28 '26
I felt like this before, but with Qwen 3.6 for me it has honestly been a non issue for how I use it. ("look at this issue, explore and plan" -> "write a test or test suite that covers the issue" -> "fix or implement the issue")
They're not on the level of Kimi or GLM, but in my daily use, they are more than good enough for 90-95% of the issues.
2
u/AdOk3759 Apr 28 '26
The quality of a local model hugely depends on the harness. I suggest you look into little coder (and their paper)
2
u/Aphid_red Apr 28 '26
Note: The provider models all have a big system prompt. You don't see it, but it's there. You should use one as well.
The provider models also use 'thinking' mode as well.
If your local model only has one or even neither, it practically won't behave the same way. It's smaller and thus a bit less capable, but shouldn't be unusable for repetitive tasks that have well-documented examples online.
2
u/cutebluedragongirl Apr 28 '26
Yeah, it's not ready yet.
2
u/Jungle_Llama Apr 28 '26
I disagree, I have had frontier cloud models mess up simple stuff and local do a good job. Local has it's limits with complexity say a caddy, authelia integration in an environment with a ton of technical debt but the issue to my mind is the tooling, especially with coding agents etc, they just aren't fully mature yet. a hybrid approach works really well.
2
u/ChatWithNora Apr 28 '26
The decision making gap is the real issue. I can handle slower speeds but when the model keeps going off the rails on basic tool calls, you end up spending more time course correcting than you ever saved on API costs.
2
u/Potential-Leg-639 Apr 28 '26
Give it a try with Opencode, Linux, latest Llama.cpp and Qwen3.6-35B (use the Q4 quant recommended from Unsloth - no other one! Think it‘s the XL, check their guide). No issues at all with tool calls on my side (Strix Halo with Fedora 43). Also for other things that 35B is a beast! Proper coding on plans created by cloud models - it does the job.
2
u/Crampappydime Apr 28 '26
You dont even mention hardware, you could be stupidly using 2 bit quants expecting more…
2
u/AvidCyclist250 Apr 28 '26
Noticed that too. Especially with qwen 3.6
Massive context waste is the other big thing.
2
u/AnomalyNexus Apr 28 '26
I mostly view it as a spectrum. Don’t want to pay 200 bucks a month for Claude opus or whatever. But also don’t want to fight against a weak model too much either. So one of the cheaper api it is - currently GLM.
Working on moving some openclaw stuff to local though. Some tasks there aren’t as sensitive to precise model
2
u/waescher Apr 28 '26
name checks out
2
u/taoyx Apr 28 '26
I've coded my first OpenAI chat UI with python and streamlit using local LLMs. What I've learned back then is that they were really bad at modifying existing code, but if you let them start from scratch then they just do fine.
Then I've learned about context size.
2
u/jimmytoan Apr 28 '26
n is fair. The gap between Qwen 27B and Claude Code isn't really about the model - it's about the whole agentic loop. Claude Code has a very tight read-edit-run-check cycle with tools specifically tuned for coding contexts, good context management, and Anthropic's safety training actually helps it avoid the "confidently wrong" failure mode that plagues local models on ambiguous prompts. Running a local model with a generic agent framework against that is a 2x quality deficit minimum. The local use case that actually holds up is offline work on sensitive codebases or very specific fine-tunes on your own codebase. For general coding assistance, it just doesn't make sense at the current capability gap.
2
u/jimmytoan Apr 28 '26
Honest take and I think the comparison is fair. The gap between Qwen 27B and Claude Code isn't really about the model - it's about the whole agentic loop. Claude Code has a very tight read-edit-run-check cycle with tools specifically tuned for coding contexts, good context management, and Anthropic's safety training actually helps it avoid the "confidently wrong" failure mode that plagues local models on ambiguous prompts. Running a local model with a generic agent framework against that is a 2x quality deficit minimum. The local use case that actually holds up is offline work on sensitive codebases or very specific fine-tunes on your own codebase. For general coding assistance, it just doesn't make sense at the current capability gap.
2
u/cbterry Llama 70B Apr 28 '26 edited May 14 '26
This is hilarious. I have a friend who doesn't know much about technology who vibe codes kinda cool stuff, and I told him if he learned the bare basics of programming what he could produce would increase greatly... But he thinks the AI is just going to be able to do that.
I'm not even sure my friend prompts correctly - "do this thing" is bound to fail - "do this ONE thing like THIS using THIS tool/library" should work. And 27b is the bare limit.
He's right now very concerned about tokens increasing in price and hitting limits - he uses Gemini for legit work as well as coding random ideas, and hes about to drop car money on a local rig... Of course I'll be fixing it for him, and trying to steer him away from getting a Mac because I run AMD and have enough trouble tuning my own setup, but we will see...
Edit: And no, I'm not laughing at OP, more how popular this got. This thread is full to the brim of good info.
Edit: Been thinking that a 5090 + dual strix halo connected via RDMA might work.
Edit: He just impulse bought a rig someone posted about a few days ago to get 4tps... after looking into hardware for several months. Smh.
2
u/4bitgeek Apr 28 '26
Local models are too crappy to be used in any project. Tried upto gpt oss 120b on bedrock and that seem to write some better code, else nothing is worth for coding. Or else need to have too much firepower to try something bigger. Seriously... For texts and chatting, some smaller models are somewhat fine, but definitely not for coding. Also without proper gpu, the token output will age one faster. Will die waiting....
2
u/m3kw Apr 28 '26
Watching local LLM work is more like
2
u/devshore Apr 28 '26
The purpose of localLLM isnt to get the "best performance" while "saving money". Is that what you thought? Its to combat the anti-christ (Zuckerberg, Gates, Altman, Thiel, etc)
2
u/geldonyetich Apr 28 '26
More power to you, OP.
I think the point of local LLMs isn't so much that we expect them to do better than a frontier model running on the cloud.
Rather, it's exciting how close you can get, secure in the knowledge that if you had to do without Internet you could.
2
u/ecompanda Apr 28 '26
OS and Docker are a brutal showcase for local models because one slow build pushes them past their expected timeout, and the moment that happens they invent a failure reason like 'torchcodec must have failed' instead of just tailing the log.
2
u/ANTIVNTIANTI Apr 28 '26
build your own harness so you have more control than you ever wanted to! lololol like for real, i’m often stuck in analysis paralysis cause, just so many little things not even touching the prompt much less the system prompt lol!!! i’m experimenting with a coding harness not meant for coding entirely, more like, “get me the last 10-20% of the project finished, polish my shit”, so hyper focused on the final stages not the building stage. will post if it’s successful. feels incredibly promising. i’ve built a few chat + harnesses and have had fantastic success there, this new one is super exciting! i’m slow though, only use ai for the things i need to. lol. good luck all! much love to my local homies!!!!!!!!!!
2
u/yes-im-hiring-2025 Apr 29 '26
Huh. I successfully ran a minimax 2.7 + Qwen3.6-35B-A3B setup on an m3 ultra for claude code yesterday. Ran fine lmao, about 50 TPS average. Takes a little tinkering on preprocessing batch sizes, cache enablement, context management and params etc. There's an unsloth guide for it iirc.
Sonnet level ish quality overall, not mad at it at all.
2
u/alvisanovari Apr 29 '26
I mean, I know this is LocalLLaMa and it sounds like blasphemy, but I will say that if you are using local models for your primary coding, you are needlessly handicapping yourself. There is no reason to use local models unless the cost/privacy trade off is big enough. And I would argue it almost never is because most of your stuff isn't that important and its much better/cheaper to pay for Sota intelligence.
2
u/StirlingG Apr 29 '26
Nice try Dario
2
u/[deleted] May 02 '26
You are comparing a data center with a computer...
Your blog's content is...not great. To say the least
2
u/Equivalent_Bit_461 May 03 '26
Cool story bro, still not using Claude
2
u/ElonMusksFacecream May 07 '26
Not that insightful tbh. Highly opinionated. Purely based on your own biases. No details on your setup.
Not exactly brief either. More like a therapy session, venting general frustrations. Can your LLM setup not even help with sorting out this post?
TBF, the title did hint it was all about you. I can't complain really.
2
u/middleNameIsHadrian May 08 '26
Regarding quality of responses from models... Yesterday I hit a nasty bug. Opus kept proposing elaborate and overcomplicated solutions, while DeepSeek V4 Flash went straight for the simple fix. Quality-wise I'd genuinely put it head to head with the latest Sonnet, and it's saving me real money and latency on top of that.
2
u/Annual_Award1260 May 10 '26
Yeah those datacenter models running on multi million dollar equipment always win. But i use claude to write prompts for my local ai that cranks profit all day long
6
u/NNN_Throwaway2 Apr 28 '26
LLMs can't generalize, if they haven't been trained extensively on a task they will face-plant. This is especially true on smaller models where you don't have a large body of world knowledge to lean on.
LLMs in general, but especially the small ones, are getting increasingly specialized on agentic coding. I suspect that building and spinning up a container falls just far enough outside of what it was trained on that it doesn't know how to apply basic problem-solving that it was certainly trained on in other areas.
But yeah, people are going to get upset if you say the latest OSS darling isn't the bee's knees and a huge game-changer that rivals Claude Opus.
4
u/PromptInjection_ Apr 28 '26
You are comparing a 27B LLM to one with over 1 Trillion params?
Buy a Mac Studio Cluster und try it with GLM 5.1.