📍 In One Sentence
Qwen3.8-27B (Apache-2.0, 18 GB in Ollama at Q4_K_M) is the current model in this pair that fits one 24 GB GPU, while DeepSeek V4 (MIT, 160 to 893 GB of weights) is server-class; the vendors' published coding benchmarks use different setups and cannot be ranked against each other.
💬 In Plain Terms
If your code must not leave your computer, use Qwen3.8-27B: it is small enough for a 24 GB graphics card. DeepSeek V4 is open too, but it is far too big for a normal PC, so most people reach it through a cloud service. The test scores each company published are measured in different ways, so they do not tell you which one is better.
Model Overview: Current Open-Weight Coding Models
Qwen3.8-27B is the only current model checked here that fits consumer hardware; every DeepSeek V4 build is server-class. Parameters, licences and weights sizes below come from the Hugging Face model cards and file listings (sizes are the summed safetensors files, checked 2026-10-20) and from Ollama's tag pages.
Context: DeepSeek published V4 as a preview on 2026-04-24 and later released V4-Flash-0731, V4-Pro-0813, V4.1-Flash and a minor update V4.1-Flash-1017; Qwen published Qwen3.6 in April 2026 and Qwen3.8 in August 2026. DeepSeek-V4-Pro (Preview) is 1.6T parameters with 49B active (864.7 GB). Qwen also lists a 2.4T-parameter Qwen3.8 model, which is far beyond local use. We found no smaller Qwen3.8 MoE, so Qwen3.6-35B-A3B stays in the table. "HF" means the figure comes from Hugging Face metadata; its total can include non-language components.
Model | Parameters | License | Weights (Hugging Face) | Local run? |
|---|---|---|---|---|
| Qwen3.8-27B | 27B dense (28B with vision) | Apache-2.0 | 55.6 GB (BF16) | Yes: Ollama 18 GB (Q4_K_M) |
| Qwen3.6-35B-A3B | 35B MoE, 3B active | Apache-2.0 | 71.9 GB (BF16) | Ollama 24 GB (Q4_K_M); tight on 24 GB |
| Qwen3.6-27B | 27B dense | Apache-2.0 | 55.6 GB (BF16) | Yes: Ollama 17 GB (Q4_K_M) |
| Qwen3.8-Flash-Next | 125B MoE, 6B active | qwen-community-1.0 | 360.0 GB | No: server-class |
| DeepSeek-V4-Flash (Preview) | 284B MoE, 13B active | MIT | 159.6 GB (FP4+FP8) | No: server-class |
| DeepSeek-V4-Flash-0731 | 304B (HF) | MIT | 166.9 GB | No: server-class |
| DeepSeek-V4.1-Flash | 763B (HF) | MIT | 510.3 GB | No: server-class; Ollama cloud only |
| DeepSeek-V4-Pro-0813 | 1.65T (HF) | MIT | 892.7 GB | No: server-class; Ollama cloud only |

Vendor-Published Coding Benchmarks
Every number below is as published by the vendor named in the row; benchmarks differ in version, harness, reasoning effort and sampling, so the rows are not directly comparable. "–" means the benchmark is not on that model's own card. PromptQuorum did not run any of them.
Model | Terminal-Bench | SWE-bench | LiveCodeBench | DeepSWE 1.1 |
|---|---|---|---|---|
| Qwen3.8-27B (Qwen) | 2.1: 73.0 | Pro: 61.7 | v6: 90.3 | 42.2 |
| Qwen3.8-Flash-Next (Qwen) | – | Pro: 62.5 | v6: 91.9 | 58.7 |
| Qwen3.6-27B (Qwen) | 2.0: 59.3 | Verified: 77.2 / Pro: 53.5 | v6: 83.9 | – |
| Qwen3.6-35B-A3B (Qwen) | 2.0: 51.5 | Verified: 73.4 / Pro: 49.5 | v6: 80.4 | – |
| DeepSeek-V4.1-Flash (DeepSeek) | 2.1: 90.6 | – | – | 74.2 |
| DeepSeek-V4.1-Flash-1017 (DeepSeek) | 4.0: 42.3 | – | – | 77.0 |
| DeepSeek-V4-Pro-0813 (DeepSeek) | 2.1: 87.9 | – | – | 62.7 |
| DeepSeek-V4-Flash-0731 (DeepSeek) | 2.1: 82.7 | – | – | 54.4 |
| DeepSeek-V4-Pro Max, Preview (DeepSeek) | 2.0: 67.9 | Verified: 80.6 / Pro: 55.4 | 93.5 | – |
| DeepSeek-V4-Flash Max, Preview (DeepSeek) | 2.0: 56.9 | Verified: 79.0 / Pro: 52.6 | 91.6 | – |
Sources (Hugging Face model cards, checked 2026-10-20): Qwen3.8-27B, Qwen3.8-Flash-Next, Qwen3.6-27B, Qwen3.6-35B-A3B, DeepSeek-V4.1-Flash, V4.1-Flash-1017, V4-Pro-0813, V4-Flash-0731, V4-Flash, V4-Pro. Setups differ. Qwen3.8-27B: Terminal-Bench 2.1 with the Terminus harness and SWE-bench Pro on a refined task set with the Claude Code harness. Qwen3.6: Terminal-Bench 2.0 with a 3-hour timeout and a 5-run average. DeepSeek V4.1-Flash and V4-Pro-0813: maximum reasoning effort (DeepSWE for V4.1-Flash with the mini-SWE harness; V4-Pro-0813 with DeepSeek Harness in minimal mode); the V4.1-Flash-1017 row is Terminal-Bench 4.0 with the Claude Code harness; the Preview rows use maximum reasoning mode and do not state the LiveCodeBench version. Terminal-Bench 2.0, 2.1 and 4.0 are different versions with different score scales, and SWE-bench Verified and Pro are different task sets. The V4.1 and V4-0813 cards do not list LiveCodeBench or SWE-bench.
Weights Size and Hardware: What Fits Where
A 24 GB graphics card can hold Qwen3.8-27B at Q4_K_M with about 6 GB to spare; none of the DeepSeek V4 weights fit on fewer than 7 such cards. The "24 GB cards needed" column is simple division of the listed weights size by 24 GB. It counts weights only (no KV cache, activations or runtime overhead), so real needs are higher. A 16 GB card cannot hold the 18 GB Qwen3.8-27B build in VRAM. We did not measure speed or maximum context on any hardware and publish no tokens-per-second figure.
Model | Weights (source) | 24 GB cards needed | Fits one 24 GB card? |
|---|---|---|---|
| Qwen3.8-27B, Q4_K_M | 18 GB (Ollama) | 0.75 | Yes, about 6 GB left |
| Qwen3.8-27B, BF16 | 55.6 GB (HF) | 2.3 | No |
| Qwen3.6-35B-A3B, Q4_K_M | 24 GB (Ollama) | 1.0 | No headroom left |
| Qwen3.8-Flash-Next | 360.0 GB (HF) | 15.0 | No |
| DeepSeek-V4-Flash (Preview) | 159.6 GB (HF) | 6.7 | No |
| DeepSeek-V4-Flash-0731 | 166.9 GB (HF) | 7.0 | No |
| DeepSeek-V4.1-Flash | 510.3 GB (HF) | 21.3 | No |
| DeepSeek-V4-Pro-0813 | 892.7 GB (HF) | 37.2 | No |
Ollama sizes are from the qwen3.8 and qwen3.6 tag pages (256K context window listed; checked 2026-10-20). Hugging Face sizes are the summed safetensors files. Ollama's official deepseek-v4.1-flash and deepseek-v4-pro entries list cloud tags only.
Previous Generation: Qwen2.5-Coder vs DeepSeek-Coder-V2 (History)
Earlier versions of this page compared Qwen2.5-Coder 32B with DeepSeek-Coder-V2, DeepSeek-V3 and DeepSeek-R1-Distill-Qwen-32B. Those models are the previous generation; the figures are kept here only as history. HumanEval measures single-function Python generation and is a much easier benchmark than the ones in the table above, so these numbers must not be compared with them.
Model | Terminal-Bench | SWE-bench | LiveCodeBench | DeepSWE 1.1 |
|---|---|---|---|---|
| Qwen3.8-27B (Qwen) | 2.1: 73.0 | Pro: 61.7 | v6: 90.3 | 42.2 |
| Qwen3.8-Flash-Next (Qwen) | – | Pro: 62.5 | v6: 91.9 | 58.7 |
| Qwen3.6-27B (Qwen) | 2.0: 59.3 | Verified: 77.2 / Pro: 53.5 | v6: 83.9 | – |
| Qwen3.6-35B-A3B (Qwen) | 2.0: 51.5 | Verified: 73.4 / Pro: 49.5 | v6: 80.4 | – |
| DeepSeek-V4.1-Flash (DeepSeek) | 2.1: 90.6 | – | – | 74.2 |
| DeepSeek-V4.1-Flash-1017 (DeepSeek) | 4.0: 42.3 | – | – | 77.0 |
| DeepSeek-V4-Pro-0813 (DeepSeek) | 2.1: 87.9 | – | – | 62.7 |
| DeepSeek-V4-Flash-0731 (DeepSeek) | 2.1: 82.7 | – | – | 54.4 |
| DeepSeek-V4-Pro Max, Preview (DeepSeek) | 2.0: 67.9 | Verified: 80.6 / Pro: 55.4 | 93.5 | – |
| DeepSeek-V4-Flash Max, Preview (DeepSeek) | 2.0: 56.9 | Verified: 79.0 / Pro: 52.6 | 91.6 | – |
Sources: the Qwen2.5-Coder Technical Report (pass@1 as published by Qwen) and the DeepSeek-R1-Distill-Qwen-32B model card (LiveCodeBench 57.2 under a different evaluation protocol, so the starred value is not comparable with the other rows). PromptQuorum did not run these benchmarks.
IDE Integration: Continue.dev, Cline, and Cursor Local Mode
Both model families work with Continue.dev, Cline and Cursor's local-model mode through an OpenAI-compatible endpoint. Qwen3.8-27B runs locally through Ollama; DeepSeek V4 is normally reached through DeepSeek's hosted API or an Ollama cloud tag.
- 1Install Ollama and pull the model: ollama pull qwen3.8:27b
Why it matters: Ollama runs the GPU inference and exposes an API on port 11434. - 2In the Continue.dev config.json set the provider to "ollama" and the model to "qwen3.8:27b"
Why it matters: This points Continue.dev at your local Ollama instance instead of a cloud API. - 3For Cline: set baseUrl to http://localhost:11434/v1 and apiKey to "ollama"
Why it matters: Cline uses the OpenAI SDK format; any string works as the apiKey for Ollama. - 4For the DeepSeek API: use DeepSeek's OpenAI-compatible endpoint with your DeepSeek API key and a current model name from DeepSeek's API docs, such as deepseek-flash or deepseek-v4-pro
Why it matters: The same integrations work with a different base URL; your code is then sent to DeepSeek's servers. - 5Compare answers on a real refactoring task from your own repository before you commit to a model
Why it matters: Published benchmark rows do not predict how a model handles your codebase.
Verdict Matrix: DeepSeek V4 vs Qwen3.8 by Use Case
Your main constraint is whether code can leave your machine; the published numbers do not name a winner.
DeepSeek V4 vs Qwen3.8 Coding Decision
Use a local LLM if:
- •Code must stay on your machine (proprietary, confidential, regulated) → Qwen3.8-27B via Ollama on a 24 GB card
- •You only have a 16 GB GPU → the 18 GB Qwen3.8-27B build does not fit in VRAM; test a smaller model on your own tasks first
- •You need self-hosted MIT-licensed weights and have server hardware → DeepSeek-V4-Flash or V4.1-Flash (160 to 510 GB)
- •Apache-2.0 matters for your legal review → Qwen3.8-27B or Qwen3.6
Use a cloud model if:
- •Code may leave your machine and you want DeepSeek's published agentic-coding results → DeepSeek API or an Ollama cloud tag
- •No suitable GPU or server → a vendor API (DeepSeek API, or Alibaba Cloud for Qwen)
- •Hardest long-running agent tasks → run both vendors' APIs on your own repository and compare
Quick decision:
- →Fully local, current generation: Qwen3.8-27B
- →Largest open DeepSeek you can self-host: server-class V4 (MIT)
- →Highest Terminal-Bench 2.1 on this page: DeepSeek-V4.1-Flash at 90.6 (DeepSeek's setup; not comparable with Qwen's 73.0)
- →Like-for-like winner: none published; test both on your own code

Related Guides
- Qwen production deployment guide: /power-local-llm/qwen-local-deployment-complete-guide-2026
- Continue.dev vs Cline vs Aider comparison: /power-local-llm/continue-dev-vs-cline-vs-aider-local
- Replace GitHub Copilot with local LLM: /power-local-llm/replace-github-copilot-with-local-llm
- Best local coding models 2026: /power-local-llm/best-local-coding-models-2026
- Best local reasoning model 2026 — for reasoning (not coding) distills, this is the guide: /local-llms/best-local-reasoning-model-deepseek-r1-2026
- Best IDE Plugins for Local LLMs in 2026 (VS Code & JetBrains) -- VS Code and JetBrains plugins for connecting local coding models
- Qwen Local Deployment: Complete Production Guide 2026 -- deploy the Qwen coding model as a persistent local server
Frequently Asked Questions
Which is better for local coding in 2026, DeepSeek or Qwen?
The published numbers do not settle it, because the vendors report different benchmark versions and harnesses. As published by Qwen, Qwen3.8-27B scores 61.7 on SWE-bench Pro, 73.0 on Terminal-Bench 2.1 (Terminus harness) and 90.3 on LiveCodeBench v6. As published by DeepSeek, DeepSeek-V4.1-Flash scores 90.6 on Terminal-Bench 2.1 and 74.2 on DeepSWE v1.1 under DeepSeek's own maximum-reasoning-effort setup. For code that must stay on your machine, only the Qwen model has an official consumer-size build (Ollama: 18 GB at Q4_K_M).
Can I run DeepSeek-V4 locally?
The weights are open (MIT licence) but not consumer-sized. Hugging Face file sizes: V4-Flash (Preview) 159.6 GB, V4-Flash-0731 166.9 GB, V4.1-Flash 510.3 GB, V4-Pro-0813 892.7 GB. Divided by 24 GB, that is 6.7 to 37.2 cards of 24 GB for the weights alone, before the KV cache. Ollama's official deepseek-v4-pro and deepseek-v4.1-flash entries list cloud tags only (checked 2026-10-20). Realistic routes are server hardware you control, a rented server, or the DeepSeek API.
What does Qwen3.8-27B need to run locally?
Ollama lists qwen3.8:27b at 18 GB (Q4_K_M, 256K context window), 30 GB at Q8_0 and 56 GB at BF16. On a 24 GB card the 18 GB build leaves about 6 GB for the context cache and runtime; on a 16 GB card it does not fit in VRAM. We have not measured speed or maximum context on any card, so this page gives no tokens-per-second figure.
Are the benchmark numbers on this page comparable?
Only within the same benchmark version and harness. Terminal-Bench 2.0, 2.1 and 4.0 are different versions, SWE-bench Verified and Pro are different task sets, and each vendor used its own harness, reasoning effort and sampling. Treat the table as a record of what each vendor published, not a head-to-head. PromptQuorum has not run any of these benchmarks.
How does the DeepSeek API compare in cost with running Qwen locally?
We do not quote API prices here because they change; see DeepSeek's pricing page for current rates (Ollama's cloud listing for deepseek-v4.1-flash shows its own per-token rates). A local setup has no per-token fee but costs hardware and electricity. The main reason to run locally is that inference stays on your machine instead of going to a vendor's cloud API (check your tools' telemetry settings), not that it is cheaper.
Are DeepSeek-V3, R1 and Qwen2.5-Coder still current?
No. They are the previous generation and appear only in the history section. DeepSeek's API names deepseek-chat and deepseek-reasoner (V3/R1 era) were scheduled for retirement on 2026-07-24. The current open generations are DeepSeek V4 / V4.1 and Qwen3.8; for the 35B-A3B MoE size we found no Qwen3.8 successor in Qwen's Hugging Face listing, so Qwen3.6-35B-A3B is shown.
Update Log
- 2026-05-26: Initial publication. Speed figures are indicative estimates.
- 2026-07-01: Corrected HumanEval standings — Qwen2.5-Coder 32B leads at ~88.4% vs DeepSeek-Coder-V2-Lite ~83.5%. Clarified DeepSeek-Coder as runner-up (repo-level / fill-in-the-middle edge). Added CodeLlama and Llama 3 as legacy reference points.
- 2026-08-27: Refreshed hardware price estimates and updated all 8 language versions (DE, ES, FR, JA, ZH, PT, AR, KO).
- 2026-10-19: Added the previous-generation notice (DeepSeek-V4 and Qwen3.6 are newer and were not re-tested); corrected DeepSeek-V3 from 236B to 671B parameters (37B active; Ollama lists deepseek-v3 at 404 GB); replaced the outdated V3 API price with current DeepSeek API prices; labeled the V3/R1 API results as previous generation; added a FAQ on whether V3 is still current. Replaced the unsourced HumanEval/LiveCodeBench/SWE-bench table with figures traced to the Qwen2.5-Coder technical report and the DeepSeek-R1 model card (SWE-bench column removed); corrected the HumanEval headline to 92.7% vs 81.1% (the earlier 88.4% vs 83.5% could not be traced to its source); removed the unsourced RTX 4090 price and discontinuation claim; marked the electricity and amortization figures as illustrative.
- 2026-10-20: Rebuilt around the current generation. Replaced the previous-generation verdict with vendor-published numbers for Qwen3.8-27B, Qwen3.8-Flash-Next, Qwen3.6 and DeepSeek V4 (Preview, V4-Flash-0731, V4-Pro-0813, V4.1-Flash and V4.1-Flash-1017) from the Hugging Face model cards, plus weights sizes (Hugging Face) and Ollama tag sizes, all checked 2026-10-20. Removed the unmeasured speed table and the editorial per-language winners; moved the Qwen2.5-Coder / DeepSeek-V3 comparison to a history section; replaced the price-based API FAQ with a price-free one; the affiliate GPU link now points to an RTX 4090 24 GB search.
- 2026-10-20: Rebuilt around the current generation. Replaced the previous-generation verdict with vendor-published numbers for Qwen3.8-27B, Qwen3.8-Flash-Next, Qwen3.6 and DeepSeek V4 (Preview, V4-Flash-0731, V4-Pro-0813, V4.1-Flash and V4.1-Flash-1017) from the Hugging Face model cards, plus weights sizes (Hugging Face) and Ollama tag sizes, all checked 2026-10-20. Removed the unmeasured speed table and the editorial per-language winners; moved the Qwen2.5-Coder / DeepSeek-V3 comparison to a history section; replaced the price-based API FAQ with a price-free one; the affiliate GPU link now points to an RTX 4090 24 GB search.
- 2026-10-20: Rebuilt around the current generation. Replaced the previous-generation verdict with vendor-published numbers for Qwen3.8-27B, Qwen3.8-Flash-Next, Qwen3.6 and DeepSeek V4 (Preview, V4-Flash-0731, V4-Pro-0813, V4.1-Flash and V4.1-Flash-1017) from the Hugging Face model cards, plus weights sizes (Hugging Face) and Ollama tag sizes, all checked 2026-10-20. Removed the unmeasured speed table and the editorial per-language winners; moved the Qwen2.5-Coder / DeepSeek-V3 comparison to a history section; replaced the price-based API FAQ with a price-free one; the affiliate GPU link now points to an RTX 4090 24 GB search.
- Next review scheduled: 2027-04-20
