Qwen 3.8 27B vs Claude Code (2026): Yes, but Not Opus
Amazon affiliate links. We earn a small commission at no cost to you.
Qwen3.8-27B is good enough that cancelling a Claude subscription is now a real question instead of a joke. Here is where it holds up, where it breaks, and what the split actually looks like.
Jump to 12 sections
You pay $20 or $100 a month for Claude and you want to know if an open-weight model on your own hardware lets you stop. That is the actual question, and the answer is not yes or no. It is a split. Qwen3.8-27B takes over most of your volume, and Claude keeps the hard 20 percent.
Bottom Line
Yes, Qwen 3.8 27B can replace Claude Code for most daily coding. Do not expect Opus-level output. That is the one-line answer I should have said at the end of the video. Qwen 3.8 does the bounded work: edits, tests, refactors, and debugging a failure you can paste. Claude keeps the ambiguous design work and the long unsupervised loops.
| Question from the comments | Short answer |
|---|---|
| What machine is in the video? | 14-inch MacBook Pro, M3 Max, 128GB unified memory, 2TB SSD |
| Which model file? | Qwen 3.8 27B, 4-bit MLX build |
| Which agent? | Pi, a terminal coding agent, not Claude Code |
| What do I need at home? | 24GB of VRAM (or a 32GB+ Mac) for Q4, and about 20 GB of free disk |
| Why is my 16GB card under 10 tok/s? | The Q4_K_M file is 16.6 GB, so part of the model runs on the CPU |
| Is Q3 good enough? | It drifts about 4x more than Q4. Use it only when Q4 does not fit |
The video below is the uncut run, no edits over the failures. This post is the verdict and the buying decision.
The exact setup in the video
Many of you asked what this ran on. I forgot to say it on camera. Here it is, from my replies under the video and the session repo.
| Part | What I used |
|---|---|
| Machine | MacBook Pro 14-inch, Apple M3 Max |
| Memory | 128GB unified memory (shared by CPU and GPU; a Mac has no separate VRAM) |
| Storage | 2TB SSD |
| Model | Qwen 3.8 27B, 4-bit MLX build. The repo lists it as “4-bit (MLX via Ollama)“ |
| Model size | 16.05 GB of weights for mlx-community/Qwen3.8-27B-4bit (Hugging Face API, read 2026-11-11) |
| Agent | Pi, pointed at the local server’s OpenAI-compatible endpoint |
| Task | The repo’s standard prompt: a video title and thumbnail generator that must use codex exec, not a cloud API |
| Session length | 26 minutes, uncut |
| Code it wrote | qwen-3.8-27b/app on GitHub. Run node server.js in that folder |
One honest caveat about the machine. It is the 14-inch model. It gets loud under a model load, and I think it throttles, because work sometimes hangs at random. A 16-inch or a Mac Studio holds speed longer.
Speed on this Mac. I did not log tok/s during the session. I measured the same model on the same Mac on 2026-08-14, one engine at a time, with every other model server stopped (RESULTS.md):
| Engine | Decode tok/s (300 tokens) | Prefill tok/s (12,658-token prompt) |
|---|---|---|
| MLX 4-bit (mlx-lm 0.31.3) | 19.2 | 61 |
| llama.cpp Q4_K_M + MTP (build 9878) | 17.4 | 122 |
| llama.cpp Q4_K_M, no MTP | 7.4 | not measured |
| Ollama 0.32.12, MTP tag | 7.0 | not measured |
MLX decodes 10% faster, but llama.cpp with MTP reads the prompt 2x faster. A coding agent sends a long system prompt every session, so one first agent turn took about 121 s on llama.cpp and about 221 s on MLX. For agent work, use llama.cpp with MTP. The launch script is qwen3.8-27b-start-server.sh (--spec-type draft-mtp --spec-draft-n-max 2, 32K context).
What you need at home
I wrote “24 GB VRAM” in a reply. Here is the precise version. On a PC, the GPU’s VRAM must hold the model file plus the context cache. On a Mac, unified memory does that job, and macOS needs its own share.
- 24GB card (RTX 3090, 4090): Q4_K_M with a working agent context.
- 16GB card (RTX 5060 Ti, 4060 Ti 16GB): a file under about 14.5 GB, such as UD-IQ4_XS (14.35 GB) or UD-Q3_K_XL (13.15 GB), or two cards.
- Mac: 32GB+ for Q4. Some 24GB Macs load it, but the context gets tight.
- Disk: about 20 GB free per quant. The files are 13-18 GB, and the vision projector adds about 0.9 GB.
All our measured rows from this Mac, with a CSV download: M3 Max 128GB LLM benchmarks.
Why a 16GB card runs it under 10 tok/s
One viewer asked why an RTX 5060 Ti 16GB “can’t even get 10 tok/sec”. The usual file is the cause, not the card. Unsloth’s UD-Q4_K_M is 16,564,259,744 bytes and bartowski’s Q4_K_M is 17.44 GB (Hugging Face, read 2026-11-11). Neither fits in 16GB with any context. The runtime puts the overflow layers on the CPU, and a dense 27B model reads every layer for every token. The slowest part sets the pace.
Two fixes work. Pick a file that leaves 2 GB or more free for context, or split the model across two cards. OVERBRING Labs measured 31.1 tok/s on UD-Q4_K_XL across two RTX 5060 Ti 16GB cards (writeup). I have not measured a single 5060 Ti, so I give no number for it. See the RTX 5060 Ti 16GB model guide for what fits on one card.
Q3 vs Q4: what you lose
A viewer saw headroom on my Mac and asked if I tried Q3. I did not, so I have no same-task comparison. On a 128GB Mac there is no memory reason to drop below 4-bit. The measured quality cost comes from bartowski’s Qwen3.8-27B card (repo updated 2026-10-13), KL divergence against bf16 on wiki.test.raw:
| Quant | File size | Mean KLD (lower is better) | Same top token as bf16 |
|---|---|---|---|
| Q4_K_M | 17.44 GB | 0.0139 | 95.0% |
| IQ4_XS | 15.48 GB | 0.0188 | 94.1% |
| IQ3_M | 14.86 GB | 0.0406 | 91.1% |
| Q3_K_M | 13.40 GB | 0.0564 | 89.8% |
| IQ3_XXS | 12.32 GB | 0.0739 | 88.5% |
Q3_K_M saves 4.04 GB and drifts about four times more than Q4_K_M. IQ4_XS is the better trade for a 16GB card: 1.96 GB smaller than Q4_K_M for 35% more drift. KLD measures text prediction, not code quality, so treat it as direction. For how the quant names work, see IQ4_XS vs Q4_K_M vs Q4_K_XL.
What you are actually comparing
First, get the model right. The Qwen 3.8 release covers two different models, and only one of them runs on your desk.
| Repo | Size | Runs locally? |
|---|---|---|
| Qwen/Qwen3.8-27B | 27B dense, vision-language | Yes. This is the one. |
| Qwen/Qwen3.8-27B-FP8 | Same model, FP8 weights | Yes, on 48GB+ |
| Qwen/Qwen3.8-2.4T-A95B | 2.4T total, 95B active MoE | No. Datacenter only. |
The rest of this page is about the 27B. Confirmed specs from the model card: Apache 2.0, 64 layers of hybrid Gated DeltaNet plus gated attention, 262,144 native context extensible toward 1M with YaRN, thinking mode on by default with reasoning_effort levels. Weights landed on Hugging Face on August 14, 2026.
Claude’s side of the ledger, from claude.com/pricing: Pro is $20/month ($17/month billed annually), Max is $100/month for 5x Pro usage, and Ultra is $200/month for 10x (read 2026-11-11). The context window is now “up to 1M, varies by model” on every plan. When this post first ran in August, plans carried 200K and Qwen had more native context. That edge is gone.
Where Qwen 3.8 holds up
Bounded, well-specified edits. Rename across a package, add a route, write the test, convert a script from one library to another, fix a stack trace you can paste. This is the bulk of most working days and Qwen3.8-27B does it without drama.
Debugging with a reproducible failure. The most useful independent data point so far is a wall-clock writeup from OVERBRING Labs on two RTX 5060 Ti 16GB cards. The model found a bug’s root cause across three codebases in about 3.85 minutes, finished the whole task in roughly 10 minutes of wall clock, and fixed two related problems it noticed on the way. That is not a demo. That is a normal Tuesday.
Reading a lot of code at once. 262K native context means you can put a whole service in the window instead of feeding it files one at a time. On your own machine, the KV cache sets the real limit (see below).
Vendor benchmarks say software engineering. Qwen reports SWE-bench Pro at 61.7, LiveCodeBench v6 at 90.3, and Terminal-Bench 2.1 at 73.0, up from 63.4 on the previous generation. Those numbers are vendor-reported and every one of them came from Qwen’s own launch material. Treat them as direction, not proof. The verdict here rests on the wall-clock run above and my own session in the video, not the leaderboard.
Where it breaks
Ambiguous work. “This feels slow, make it better.” “Design the schema for this feature.” Qwen3.8 will do something confident and wrong. Claude asks the clarifying question. That gap is not closing this generation.
Long autonomous loops. Tool-call reliability is the failure mode, not raw code quality. Twenty steps in, it repeats a call, drops a file path, or convinces itself an edit landed that did not. You supervise it. You do not hand it a ticket and walk away.
Speed. The same OVERBRING run measured 31.1 tok/s mean on UD-Q4_K_XL, 25.3 on Q6_K, 26.6 on NVFP4, on two 16GB cards. That is fine for supervised work. On a thin fanless laptop it is not: a 27B at Q4 on a base MacBook Air is memory-bandwidth-starved and drops into single-digit tokens per second, which is technically running and practically unusable for agent loops. Size the machine before you judge the model.
Context that costs memory. 262K native does not mean 262K on your machine. The KV cache at long context eats VRAM the weights already claimed. See context window traps for local agents before you set a big number and wonder why it swaps.
The hardware line
This is where the decision gets made. Real file sizes from the Unsloth GGUF repo:
| Quant | File size | Realistic machine |
|---|---|---|
| IQ4_XS | 14.3 GB | 24GB card, lots of context headroom |
| Q4_K_M | 16.5 GB | 24GB card. The default pick. |
| Q5_K_M | 19.8 GB | 24GB card, short context only |
| Q6_K | 22 GB | 32GB+ |
| Q8_0 | 29 GB | 48GB unified memory |
| BF16 | 54.7 GB | 64GB+ |
Weights are not the whole bill. Add the KV cache, the vision encoder, and your OS. A 16.5 GB file on a 24GB card leaves you roughly 5-6 GB for context, which is a working agent session, not a 262K one.
So the honest tiers are: 24GB is the entry point at Q4, 32GB is comfortable, and 48GB+ is where you stop thinking about it. Below 16GB, run a smaller model instead of a bad quant of this one. See best local LLMs for 32GB RAM for that tier.
A used 24 GB card is the cheapest honest entry at Q4_K_M. A 48 GB+ Mac runs Q8_0 with real context and no fan noise.
The math nobody does honestly
Claude Pro is $240 a year. A used RTX 3090 averaged $1,601 across 331 listings as of November 2026 (resaleprices, updated Nov 8), up 27.7% in 90 days, plus electricity. The 2026 memory shortage made the card cost more than six years of Pro. On paper, local no longer wins inside a year.
The paper is wrong in one direction and right in the other. It is wrong because your time has a price, and a supervised local agent costs you attention that Claude does not. It is right because the card does not only run Qwen. It runs the next model too, and the one after that, at no extra cost. The subscription buys one month of one vendor’s decisions.
The real reason to run local is not the $20. It is that your code never leaves the machine, your throughput has no weekly ceiling, and nobody deprecates your model on you. If your problem is specifically the weekly ceiling, read how Claude Code limits actually work first. Some of that burn is fixable for free and does not need new hardware.
The verdict: the 80/20 split
I do not run one model. Nobody who does this seriously runs one model.
Local Qwen3.8-27B gets: boilerplate, refactors, test writing, log and stack-trace analysis, first-pass code review, doc generation, anything on a private codebase, anything you would run in a loop over many files. Call it 80 percent of the volume.
Claude gets: architecture decisions, gnarly multi-system debugging, anything where being confidently wrong is expensive, and the sessions where you need a second opinion rather than an executor. That is 20 percent of the volume and most of the value.
The practical move is to keep Pro at $20, not Max at $100. You are not cancelling Claude. You are demoting it from workhorse to specialist, and the bill drops accordingly.
If you must have a single answer: on a 24GB card or better, yes, Qwen3.8-27B can carry your daily coding. It cannot carry your hardest day.
Setting it up
Qwen3.8-27B is a drop-in for any OpenAI-compatible agent, which means Qwen Code, OpenClaw, or any client you can point at a local base URL. Claude Code is the exception: it speaks the Anthropic API format, so it needs a translating proxy rather than a plain base-URL swap. Two things break for almost everyone: the default context length is far below what agents assume, so raise it on both the serve side and the client; and the agent may say “OpenAI” while running fully local, because it uses the OpenAI SDK format and not OpenAI. Full walkthrough in best local models for OpenClaw.
If you are still choosing a model rather than a workflow, Qwen3.8-27B vs Muse Glimmer 30B covers the other Apache 2.0 release aimed at the same card.
What I could not verify
Every benchmark number Qwen published is vendor-reported and had no independent reproduction as of August 19, 2026. The tok/s figures are one person’s hardware, not a spec. Your quant, your context setting, and your codebase move all of it. I have not run Q3 against Q4 on the same coding task, and I have not measured a single 16GB card. The quality table above is bartowski’s KLD measurement, not a coding test.
Sources
- My session repo: README, Qwen 3.8 RESULTS.md (bake-off 2026-08-14), app code added 2026-08-20.
- File sizes: Hugging Face API for unsloth/Qwen3.8-27B-GGUF, ggml-org/Qwen3.8-27B-GGUF and mlx-community/Qwen3.8-27B-4bit, read 2026-11-11.
- Quality: bartowski/Qwen3.8-27B-GGUF KLD table, read 2026-11-11.
- Claude plans: claude.com/pricing, read 2026-11-11.
- Used RTX 3090 price: resaleprices (updated 2026-11-08), via the OpenClaw DC price reference.