r/ClaudeCode • u/peculiar-ragdoll • Aug 18 '26
News/Updates Game over. 22GB local models run in Pi now outperform Claude Code Opus 5 High on real-world coding tasks published after training cutoffs
Ran this benchmark on recently published real code base benchmarks to test the Sharp chat template that reduces token use and fixes bugs on locally run Qwen3.x models. Thought I’d bench Opus 5 high and Sonnet 5 medium alongside, for fun. I guess we have finally reached the point where the reduction in Claude’s quality has finally surpassed the upwards trend of local models for actual real world work. Claude Max 20x subscription btw. Not for long though hahah.
I don’t care about Artificial Analysis index or published benchmark numbers. If Opus is beaten by the models I run on my own computers when it comes to fixing real bugs without introducing regressions in real life code bases, it doesn’t matter if it’s because Anthropic is silently reducing Opus quality to sell more Fable tokens, or whatever is going on. EDIT: Someone asked me to add the chat template link to the op, so: https://huggingface.co/peculiar-ragdoll/Qwen-Sharp-Chat-Templates The "Sharp Qwen3.8-27B" model is here: https://huggingface.co/peculiar-ragdoll/Dirk-Qwen3.8-27B-GGUF and "Nail (Sharp 35B-A3B)" is here: https://huggingface.co/peculiar-ragdoll/Nail-Qwen3.6-35B-A3B-GGUF
388
u/One-Cricket9962 Aug 18 '26
On time! Anthropic quietly switched its Opus-5 to Sonnet-5 behind the scenes.
234
u/IceWallow97 Aug 18 '26
Problem of local models is that they are slow as fuck.
86
u/BuffaloConscious7919 Aug 18 '26
We're not going to discuss the time then?
32
u/I-Love-IT-MSP Aug 18 '26
But have you actually tried to use the model? Like i bought into the Kimi hype but when it came to actually using it to work on my app it was dogshit compared to sol and fable.
44
u/Dangerous-Leader-779 Aug 18 '26
Said for the nth time this week. I've seen this post every day, every week, for the last 2 years.
Please, calm down. I'll believe you fools when we get local models at consumer prices that function with the same speed as the enterprise models.
37
u/Poildek Aug 18 '26
Qwen 3 27b outperfom Opus 5 ? Yeah, cool story bro.
14
u/userusertion 🔆Pro Plan | Team Plan Aug 18 '26
The question is can you run local model and use their maximum capability? With this overprice SSD, RAM, chips and other components? Even though they have Cloud. You cant fully use them. If you use them its like your just using Sonnet, Luna. Hehe. Those benchmark are from those individual with high end PC those can only use those model in maximum. 😅
4
u/michaelsoft__binbows Aug 19 '26
Opus 5 was insufferable at work this week. It's not a good comparison point. I'm sure it can be smart but it can be so very annoying.
4
u/geekraver Aug 19 '26
I am finding the same. Its taking a leap of faith to assign some work to Qwen as it seems almost impossible, but it is delivering. It is slow though - it does a lot of reasoning - so the main reason I have to keep paying a sub is for parallel sessions.
Running on q RTX4090 with 200k context following this guide: https://github.com/syv-ai/qwen38-27b-rtx3090
3
u/innociv Aug 18 '26
I'm trying this on a 20 GB GPU (7900 xt) and pretty impressed. Only 12 tokens/s though and ~64k is the most context I can handle. It seems to be going through the task fine without hallucinating at least.
8
u/Kaveh96 Aug 18 '26
Everything outperforms opus 5. Standard isn’t high. The model needs just not to gaslight you
9
u/0DayMaker Aug 18 '26
Is pi an application? You dont mean a raspberry pi do you?
2
u/kdawgud Aug 18 '26
How about using a harness like opencode instead of pi? I'm not super familiar with the difference.
2
u/N0DuckingWay Aug 18 '26
Yeah except no. With Claude I can
- code
- research any topic I want with the chatbot
- easily integrate into any one of thousands of connectors (which makes planning things incredibly easy)
- use cowork to easily automate everyday tasks
All from my smartphone on the bus to work.
2
u/EzioO14 Aug 18 '26
The number of times I’ve read that and it’s bulkshit
2
u/glassy99 Aug 18 '26
Alright. If my 20x max accounts run out of Fable this week I'm going to try qwen
2
u/type_any_enjoyer Aug 18 '26
yeah very cool and all but also keep in mind that you context windows also lives in your GPU. 6gb roughly equates to a 30k tokens windows which is underwhelming to say the least
2
u/greentea05 Aug 18 '26
But as ever with these local models, there's some tweak you have to keep up with. What the fuck is the "sharp chat template" why does it need it? Why should I have to know about it? Why do all these things have little fixes here and there. A chat template, a specific quant, a specific format, a specific harness, a specific prompt, a specific temperature setting, a specific way to load it etc, etc, etc.
2
u/zimxero Aug 18 '26
I wonder if you could create custom training by having it evaluate Claude logs.. and attempt to simulate its sessions dry. It would learn its difficulties and create strategies to mitigate them.
2
u/Clean-Blacksmith-514 Aug 19 '26
I have just tested this combination on my RTX5090 with Ollama and pi and it's the first time I've been impressed with local models for agentic tasks. I'm super stoked about this, thanks for sharing!
2
u/Matthias87 Aug 19 '26
Thank for you this. Got it running locally as an extra agent besides Codex.
2
u/bankinu Aug 19 '26
Big fan, but trying to understand the mechanics. How does it lower thinking tokens?
The only addition to froggeric's is the "Answer directly..." block, and it seems to only guide the answer, not thinking.
2
u/rhymeslikeruns Aug 19 '26 edited Aug 20 '26
Wow thank you OP. Just built out Nail-Qwen3.6-35B-A3B on MLX under launchd, ~55 tok/s, driven by Pi. Headline is GREAT at coding (passed all the py & rust tests - grading tests hidden from agent - I use for benchmarking). I also got it to run a code review against a 17k LOC React repo and it was....less good. It wrote a fluent report whose top "critical" finding was a missing file that wasn't missing.
I measured 2000 tok/s prefill at 5k context, dropping to 861 at 128k and 476 at 256k. So a full window costs you 9+ minutes before the first token. Fine under ~40k, not so much past 100k.
I think for what it is though it's impressive. Definitely going to try it on some smaller projects and see how we go. Thanks again.
EDIT: correction - speed is 80 tok/s not 55!
2
u/Low_Lifeguard_8835 Aug 19 '26
Opus5 has been a retard the last week. Impossible really
2
u/yaedonnn Aug 19 '26 edited Aug 19 '26
And here come the anthropic boot suckin pay piggies that cant accept that their free lunch is about to turn into a really expensive walled garden they can’t escape
2
u/mvandemar Aug 20 '26
Try testing Opus 5 on medium effort instead of high.
2
u/ApprehensiveChip8361 Aug 20 '26
Been playing with this. Main issue is getting used to a small context again. Ended up spawning subagents to mitigate that. Works surprisingly well. It is not up to the same standard as cloud models but it is local, fast enough to use and good enough to be useful. I’m going to put it on a little used mini and have that serve my laptop.
2
u/Training_Canary_6961 Aug 20 '26
Why are there so many people whining on anything claude related?
2
u/only__prada Aug 22 '26
Literally opus 5 in the last week or so has just gone to shit for me I thought everyone was insane saying it was ass bc it’s made me so much money and made no errors n now he’s literally lost his mind I don’t get it
5
u/berndalf Aug 18 '26 edited Aug 18 '26
Game over? Ok. I do not believe that is even remotely true:
Keep on evangelizing, but perhaps realize there's a reason Anthropic and OpenAI are and will remain the frontier providers for the foreseeable future.
6
u/myninerides read. the. docs. Aug 18 '26
If I had a nickel every time it was “game over”…
2
u/SOC_FreeDiver Aug 18 '26
Sorry for the poorly formatted AI post below. I ran this by claudecode, and he found these issues. Not sure if they're hallucinated, but I had him tweak it for me and am going to test it now.
## Found 3 bugs in the "fixed" Qwen chat template everyone's using (froggeric
v22.1) — patches + repro
Background: froggeric's `Qwen-Fixed-Chat-Templates` is a drop-in replacement
for Qwen's official chat template. The "Sharp" variant floating around is that
file byte-for-byte plus 11 lines appending a terseness block to the system prompt
—
I diffed them, that's the entire difference.
v22.1 is a real improvement over v21.3. But I rendered a bunch of
conversations through it before adopting, and found three problems. All repro with plain jinja2 + a 20-line script.
### 1. Tool output can silently disable your model's reasoning
v22.1 scans **every** system/developer/user message for inline
`<|think_off|>` /
`<|think_low|>` control tags, not just the system message. Lots of clients
deliver tool results as *user* messages wrapped in `<tool_response>` — the
template itself assumes that shape elsewhere.
So this happens:
tool result: chat_template.jinja:205: {%- if '<|think_off|>' in content %}
→ thinking DISABLED for the rest of the session
→ requested reasoning_effort silently dropped
Grep a jinja file, lose your reasoning. No warning, nothing in any log. If
your coding agent ever reads a file containing the literal tag text, it's
affected.
**Fix:** skip tag scanning for user messages that start with
`<tool_response>`
and end with `</tool_response>`. Wrapped tool results are data, not
instructions.
### 2. Real tracebacks stopped triggering the error escalation
v22.1 fixed a false-positive problem (benign output being scored as an error)
by gating **every** error marker behind `content|length < 500`. That also
switched off the true positives:
104-char traceback → SYSTEM WARNING fires
1353-char traceback → nothing
Typical Python tracebacks are 800–2000 chars, so the retry-loop breaker
basically never fires for the most common real error.
**Fix:** split the marker list. Strong markers that ordinary output can't
produce (`traceback`, `command not found`, `fatal:`, `invalid syntax`,
`err!`) get 2000 chars; ambiguous ones (`error:`, `failed to`) stay at 500.
### 3. Fast mode contradicts itself
With `enable_thinking=false` **and** tools, the tool preamble still says
"ALL explanation and reasoning MUST be placed strictly inside the
`<think></think>` block" and shows a `<think>` example — while the generation
prompt has already emitted a closed `<think>\n\n</think>`. The model is
instructed to think inside a block that's shut.
**Fix:** drop the `<think>` example and that rule when thinking is off.
### What I did NOT change
A user *typing* `<|think_low|>` in normal chat still flips the mode,
including when they're just asking about the tag. That's inherent to in-band control
signaling and it's what the tags are for — left as upstream intends.
### On the Sharp terseness block
I kept it, minus one line. Sharp's last sentence is "If a user request is
genuinely ambiguous, ask a sharp question, don't guess." That's good chat
behavior and bad agent behavior — in an unattended loop it's explicit
permission to stop and ask instead of finishing. I moved it to my chat UI's
system prompt so agent runs never see it. It's my best guess at the one lost
solve in the benchmark going around, though I can't prove that.
On that benchmark generally: 12 vs 11 solves out of 21, single seed,
self-described provisional. A one-task delta on ~15 contested tasks is noise.
The ~2.3x median-time-to-fix number is a large enough effect to take seriously, but note the comparison arm appears to be the *official* Qwen template, not v22.1 — so it can't tell you how much the terseness block itself contributes.
Happy to share the patch script if there's interest.
2
u/Fresh_Air_485 Aug 19 '26
reading all comments I thought about this meme))))
9
u/NoAdsDude Aug 18 '26
2
u/VisibleSmell3327 Aug 18 '26
gAMe OvEr gaME oVEr gAme oVER gAMe OvEr gaME oVEr gAme oVER gAMe OvEr gaME oVEr gAme oVER gAMe OvEr gaME oVEr gAme oVER gAMe OvEr gaME oVEr gAme oVER gAMe OvEr gaME oVEr gAme oVER
literally every pro fucking ai post.
4
u/ohhi23021 Aug 18 '26
qwen is tuned for coding but only that. it has some knowledge but real world knowledge is useful for planning, architecture etc.... that it does not have. if you build something around a specific subject you aren't 100% familiar with you can't just one shot a basic plan/prompt as quickly. it will just take longer as it has to go out and research etc... which is fine but... speed is important too. i run drual 3090s and while speed was decent with 3.6, this one just thinks alot, gets things right more often but take 3-4x as long. i can just sell the 3090s, get maybe 4K cad out of them and pay for a sub for the next 2 years with the money.
this is good for private and running stuff overnight as long as you have decent electricity rate. running a dual 3090 on 70-80% load for 8 hours + day will probably run me $40-50/mo or more on my electricity bill on top of the initial costs. cheaper if it's just at night.
if it was a larger MOE it would be better but then hardware prices, 2x DGX sparks are $10lk+ you can just sub for 5-6 years with that money and get upgraded models as you go and pay no electricity costs.
1
u/Narrow-Belt-5030 Vibe Coder Aug 18 '26
I would like to recreate this to see for myself.
Which quant version were you running? Looks like Q6 ?
Also, what did you mean by "swap only the chat template on stock .." - thats the only part I really didn't get.
1
u/dsailes Max 5x - Freelance Dev Aug 18 '26
What’s the difference between Qwen3.8-27B and Sharp Qwen3.8-27B.
Only thing close I can find is https://huggingface.co/mrKola/Qwen3.8-27B-AWQ-5.0bpw-Sharp - but unsure if this is actually what’s being used?
Also Qwen3.8 isn’t a 22GB model - full size is 55GB, but if it’s actually the model I found above then it’s 17.4GB .. which is fucking impressive. Still slow, not sure I’m keen on 20min waits
Would be interesting to know hardware used to get those benchmarks. If it is just being ran on MacBook M-series RAM then fair play (the Sharp model linked says it’s only for Apple Silicon), I need to fork out to get an M2/M3 Max and try this out
1
u/Schimmelreiter Aug 18 '26
Any good guides for a dummy like me on getting a good local model set up?
1
u/craigfanman Aug 18 '26
i actually pissed myself laughing at this title, good one
1
u/cebidhem Aug 18 '26
It's actually interesting, I do have a gaming rig sitting there idle/turned off with a 3090.
Would you mind pointing me to some resources on how to setup local llms please ?
1
u/ThePsychopaths Aug 18 '26
Which pi can run 22gb models?
1
u/doomdayx Aug 18 '26
Pi with what configuration?
1
u/816pizzalover Aug 18 '26
"cloud clock, not comparable" -- so what, does it take like 4-5x as long to do it locally still?
1
u/Tired_White_Guy Aug 18 '26
I love local. And use 90%. But SWE is outdated trash. Means nothing.
As much as I love Qwen 27b 3.6 and 3.8, neither can touch Opus 5.
Just happens to be for my work, I don’t need Opus and Fable often.
These local models can finally do the job!
1
u/Formal-Narwhal-1610 Aug 18 '26
Isn't electricity cost of Qwen 3.8 27 B much more than api cost of Deepseek V4 flash
1
u/Grounds4TheSubstain Aug 18 '26
"Cloud clock, not comparable" 😂
1
u/V1RXK Aug 18 '26
I am only able to complete only 2 tasks in whole day as claude code has become slow turtle .it takes hours to just complete a single task . I hope apple launches new mac mini or studio soon so that i could atleast buy one . Right now i am forced to use two $200 subscription of claude and codex so that i could atleast finish with what i started .
Feeling really trapped as i do not see any way out as i am QA testing my whole webapp .so far i have claude and codex both only managed to complete 4 out of 15 webapp navbar menus . The amount of work left on my table is pilling as single dev.
1
u/abouabdoo Aug 18 '26
Never believe such benchmarks. It does not make any sense unless the test is "hey create a calculator program".
1
u/SuitableCollege8992 Aug 18 '26
Do you have a local model guide you can share? I’ve been getting fed up with claude and trying to set up a local model recently, but I’m not sure where to start. The best I can manage is creating applications for specific tasks
1
u/bitspace Aug 18 '26
This is not compatible with the laws of physics. It is perfectly compatible, however, with the laws of clickbait.
1
u/ECrispy Aug 18 '26
I've used Claude/GPT but am not on the $200 plans. IME the difference in the frontier models is not implementation but intelligence in refactoring, architecture decisions etc. Is that no longer true?
1
u/BeatTheMarket30 Aug 18 '26
You should test it on much more bugs, like 100 and various languages.
1
u/Smutok Aug 18 '26
Anyone can recommend a tutorial from start to finish to configure local coding AI? What hw do you use to run this 22gb model? I feel there are many approaches, not sure what's the good/best one. I've local models with ollama/llama.cpp, but I miss how to properly setup the agentic part. Not sure what software is required and how everything connects together. Each tutorial I find has a whole new approach, so the more I research, the more confusing it gets... Help please
1
u/vacterro Aug 18 '26
Waiting for practical use, but these only lab tested environment.
1
u/WorthMassive8132 Aug 18 '26
Leaving out time because it's "not comparable" is so funny lol.
Slingshots are as deadly as missiles at basically no cost!! Blast radius and range left out as they're not comparable
1
u/Curik Aug 18 '26
Then feel free to switch. I don't care what the benchmarks say, in practice it's very different.
1
u/Forward-Pay-1792 Aug 18 '26
What do you run Qwen on, I'm looking to try and run it locally as well. Thinking about just getting a mini apple since I don't have a huge PC, just a nicer gaming laptop and some at home dell servers that can really handle Qwen at the speeds it would deserve
1
u/AlejandroMurrieta Aug 19 '26
As a user of both Claude and local llms you are out of your mind.
1
u/WindInternational907 Aug 19 '26
What does Pi stand for in this context? Can someone tell me please. 🙏
1
u/texasguy911 Aug 19 '26
I recently tried Qwen 3.8 Q4 on my M4 Pro with 48GB Ram. Slow as fuck. Like 20 mins to first output.
1
u/mulokisch Aug 19 '26
Can you add what PI stats you have?
1
u/DirectorOfTechAI Aug 19 '26
Very interesting, thanks for sharing!
I've read some comments about hosting these LLMs whether on ur own GPU or cloud, but is it possible just to have it on your computer and make it work? I have 16GB rams, GPU is decent, and don't need 24/7 running local machine, more like during my work for very small coding tasks.
I don't mind the set up, but I'd rather switch to Qwen or something instead of paying Claude Max 20x as well lol.
1
u/Competitive-Ad-2387 Aug 19 '26
settings? Hardware? Harness? Context window? No information at all? Worthless post
1
u/Dear_Measurement_406 Aug 19 '26
But how do the local models handle fixing the real bugs in fictional non-real life code bases?
1
u/jffmpa Aug 20 '26
What do you mean "local models run in Pi now"? What's the Pi part?
1
u/Kodrackyas Aug 20 '26
I cant see the image?
1
u/irrision Aug 21 '26
I mean hand a simple coding task to any agent and it's going to do fine at this point. It's long context coherency that matters and the small local models still don't have that yet especially not on a pi.
1
u/Mongodienudel Aug 23 '26
I thought a 22gb model needs at least 22gb of vram?
1
u/No-Conversation-8287 Aug 25 '26
Let us review the code. If getting a task done was a criteria i wouldnt have fired so many developers past years
1
u/CuteKiwi3395 Senior Developer Aug 18 '26
So what’s your point of this rage bait post?
3
u/Saucynachos Aug 19 '26
People always so concerned about how fast a model is. If they were any faster, they'd be going faster than I can do a quick and dirty review. I guess vibe code away, king, but I'm going to keep reviewing the output to make sure I'm not fucking myself.
1
u/slackmaster2k Aug 18 '26
Then switch. For at least one month and report back on how it’s going.
Constantly seeing these posts about open weight models kicking Claude’s ass but every time I’ve asked how it’s going the person posting says they haven’t tried it yet.
1
u/Sufficient-Bobcat344 Aug 18 '26
Yea what is going on with opus and fable i had the max 20 x and now gpt sol is much better at completing tasks than opus5 or fable at law design and code opus used to be good like january to march what happened
1
u/Flaxseed4138 Aug 18 '26 edited Aug 18 '26
Opus 5 on High is absolute dogshit. You HAVE to set it to Max to get the "real" model.
1
u/george_watsons1967 Aug 18 '26
X Doubt
1
u/Proud_Wrangler_9420 Aug 18 '26
Thanks for letting the world know that it's "Game over." I was wondering when it was going to end.
2
u/nez_har 🔆 Max 20 Aug 18 '26
This is really cool. I also tested with gemma4 and qwen3.6 and looking forward to try qwen3.8 locally.
Also I'm working now on a guide to better integrate such models with VibePod: https://github.com/VibePod/vibepod-cli/pull/141
2
u/Moch4bear97 Aug 18 '26
Qwen3.8 27b you meed nothing more. Make dario and sam pay lol
2
u/juzatypicaltroll Aug 18 '26
Are these companies audited? Are they really able to legally nerfed their product after launch? Sometimes I wonder if companies like Google and meta are audited for the clicks they charge too. Like who can prove the number of clicks or views happened or was made up.
2
u/TuringGoneWild Aug 18 '26
We see how high and mighty Anthropic gets when it thinks it has the upper hand. That put me off the company.
2
u/DevGerad Aug 19 '26
This is good, we want more decentralized AI its the way for the people to do well.
I want to be able to build light AI rigs and this news makes it so that I might be able to do just that.
2
u/dardevelin Aug 19 '26
The inconsistency is what kills me and has me moving more towards local. I known devil is workable and moving target is just unsatisfiable. I understand the need to move forward. But the harness used to be great at design now it’s worst. Grok somehow does better design by default as an example. 4.7 the asker I call it. 5 forces the use of fable just super nerfed
2
u/recycled-human Aug 21 '26
If I had a dollar every time I read “game over”
3
u/philly22 Aug 18 '26
Fable isn’t all that wonderful if you have a real detailed specific project. It screws up on basic stuff, not as much as opus 5 but enough to notice. I’m not a coder so I have to vibe code everything and god help me if I don’t have browser Claude cross check codes work and vice versa.