Skip to main content

Qwen3-Coder-Next 80B-A3B on a 12GB RTX 3060: Per-Quant VRAM, RAM and tok/s

Every quant needs CPU offload on 12GB — here is the file size, RAM budget and the closest published speeds for each.

Qwen3-Coder-Next on an RTX 3060 12GB: per-quant GGUF sizes, RAM needed, KV-cache math and offload tok/s from published 12GB runs, with llama.cpp flags.

Part of the RTX 3060 12GB local-LLM guide → Which models fit in 12 GB, each with its cited tok/s, and where two cards or RAM offload take over.

Where this fits: the 12 GB tier of the local-LLM GPU picks by VRAM (one card per tier, with cited tok/s). Tiers: 8 GB · 12 GB · 16 GB · 24 GB · 48 GB+ · 128 GB unified.

Check another model on the RTX 3060 12GB: Will Qwen3 14B run on the RTX 3060 12GB? → Runs, 31.2 tok/s median of 3 cited runs. Each page swaps the card or the model and lists every source.

Quick Answer

Yes. Qwen3-Coder-Next runs on an RTX 3060 12GB, but only with MoE expert offload, because no quant fits in 12GB. The practical pick is Q4_K_M, a 48.5 GB file per the unsloth GGUF repo, paired with 64GB of DDR4. Attention, the shared expert and the KV cache stay on the card, and the routed experts live in system RAM. For context, the card's own 7–9B baseline is a median of 55.2 tok/s at Q4 across 21 cited runs on the RTX 3060 12GB benchmark page. That is a dense-model baseline compiled from published sources, not SpecPicks testing, and it is not a figure for this model.

Qwen3-Coder-Next 80B-A3B on a 12GB RTX 3060: Per-Quant VRAM, RAM and tok/s

Hardware at a Glance

Median generation throughput at 7–9B models (Llama 3.1 8B, Qwen 3 8B), Q4 quantization, from community-reported runs SpecPicks tracks. Each row pools runs from different sources, runtimes and models in that class, so the rows are not a matched head-to-head; where the article compares cards on the same rig, its own figures are the like-for-like result. Street price is the second-lowest listing priced within the last 24 hours at 0.5–2× launch MSRP, so no single listing sets it, and a street figure well above MSRP says so in its cell; where too few listings pass that check the cell shows a dash and the launch MSRP, which is not comparable with the street figures. Rows marked for comparison are not the cards this article is about — they are included so the throughput column has something to be read against.

GPUVRAM Llama-3-8B class, Q4Street price Sources
NVIDIA GeForce RTX 3060 12 GB 12 GB 55 tok/s23 runs · 9 sources —too few current listings for a street figure · launch MSRP was $329 SpecPicks median of 23 runs; sources: TYO Lab blog, Hardware Corner, llama.cpp GitHub (CUDA performanc…, Ajit Singh / Hardware-Corner +5 more
GeForce RTX 4070 SUPERfor comparison 12 GB 57.8 tok/s12 runs · 6 sources $966street, all listings · 1.6× the $599 launch MSRP SpecPicks median of 12 runs; sources: Hardware Corner, llmrun.dev, LocalScore (Mozilla Builders), llama.cpp GitHub Discussions +2 more
Arc B580for comparison 12 GB 41 tok/s11 runs · 9 sources —too few current listings for a street figure · launch MSRP was $249 SpecPicks median of 11 runs; sources: Compute Market, llama.cpp GitHub Discussions, dev.to, InsiderLLM +5 more

Introduction

Qwen3-Coder-Next is an 80B-parameter model that activates only about 3B parameters per token. Per the Qwen3-Coder-Next model card, it has 48 layers and 512 experts, with 10 routed experts plus 1 shared expert per token and a native 262,144-token context. That split changes what a 12GB card can do. A dense 70B model at Q4 has to stream about 40 GB of weights for every token it generates. Qwen3-Coder-Next reads roughly 1.5B routed-expert parameters per token, and only those reads have to cross into system RAM.

This guide is for budget local-coding-agent builders on AM4, meaning a Ryzen 5000 CPU, DDR4 and a 12GB Ampere card. You want an agentic coder in Cline, Qwen Code or Claude Code that runs on hardware you already own or can buy used. As of October 2026, nobody has published a clean, reproducible RTX 3060 benchmark of this exact model. So this page gives you the following:

  • File sizes, taken from the GGUF repo.
  • Memory math, taken from the model's own config.json.
  • The closest published 12GB-card measurements, each attributed to its source.
  • Where an estimate is unavoidable, the arithmetic behind it, so you can check it.

Key Takeaways

  • No quant fits in VRAM. The smallest sensible quant, UD-IQ3_XXS, is 28.5 GB. Q4_K_M is 48.5 GB (unsloth GGUF repo). Every RTX 3060 setup is therefore an offload setup.
  • The closest published 12GB result is about 40 tok/s generation and about 500 tok/s prefill. It came from an RTX 4070 12GB with 64GB of DDR5, using --fit and a q8_0 KV cache at 64K context (carteakey.dev write-up).
  • DDR4 is the limiter on AM4. In llama.cpp issue #19480, one user reported 7 tok/s at Q4_K_M in pure CPU mode on DDR4-3200. GPU offload exists to beat that number.
  • The KV cache is unusually cheap. Only 12 of the 48 layers use full attention, with 2 KV heads × 256 dims. That works out to about 24 KB per token at f16, or about 1.6 GB at 64K context.
  • Budget 64GB of RAM for Q4_K_M. Budget 32GB only if you accept 2-bit quants.

Per-quant table: GGUF size, VRAM used, system RAM needed, generation tok/s

File sizes come from the unsloth/Qwen3-Coder-Next-GGUF file listing, in decimal GB, read October 2026. The VRAM column assumes llama.cpp's --fit fills the card to within about 512 MiB, which is how the 12GB RTX 4070 setup cited below was configured.

The system-RAM figure is the file size minus about 9 GB resident on the GPU, plus about 8 GB for the OS, your editor and the agent's tooling. It is rounded up to a real DIMM kit size.

QuantGGUF sizeVRAM used (12GB card)System RAM to installGeneration tok/s on RTX 3060
Q2_K29.2 GB~11.5 GB (fills card)32 GB (tight) / 48 GBnot reported
UD-IQ3_XXS28.5 GB~11.5 GB32 GB (tight) / 48 GBnot reported
Q3_K_M38.3 GB~11.5 GB48–64 GBnot reported
Q4_K_M48.5 GB~11.5 GB64 GBnot reported (see reference runs below)
Q5_K_M56.9 GB~11.5 GB64 GB (very tight) / 96 GBnot reported
Q6_K65.6 GB~11.5 GB96 GBnot reported
Q8_084.8 GB~11.5 GB128 GBnot reported

No public source reports a generation speed for this model on an RTX 3060 specifically, so the last column says so. Nothing has been filled in. Here are the nearest published reference runs:

Setup (source)QuantPrefill tok/sGeneration tok/s
RTX 4070 12GB + i5-12600K + 64GB DDR5, --fit, q8_0 KV, 64K ctx (carteakey.dev)UD-Q4_K_XL~502–511~39.6–39.9
Same rig, all experts forced to CPU (-ot .ffn_.*_exps.=CPU)UD-Q4_K_XL~410~33.7
RX 9070 XT 16GB + 64GB DDR5, experts to CPU, 39 layers on GPU (issue #19480)Q4_K_Mnot reported~25
RTX 5060 Ti 16GB + Ryzen 9 9900X + DDR5-6000, 34 expert layers on CPU (issue #19480)Q4_K_Mnot reported~36
CPU only, DDR4-3200 (issue #19480)Q4_K_Mnot reported~7

SpecPicks estimate, not a measurement: for an RTX 3060 with dual-channel DDR4-3200, expect roughly 15–22 tok/s generation at Q4_K_M. The estimate takes the RTX 4070's 33.7–40 tok/s and scales it by the system-memory bandwidth ratio. DDR4-3200 dual channel is 51.2 GB/s theoretical, against 96 GB/s for DDR5-6000, a ratio of about 0.53. Routed-expert reads from system RAM dominate generation time under offload, which is why that ratio is the right scaling factor. The 3060's own 360 GB/s of GDDR6 is slower than the 4070's 504 GB/s, but that only affects the part of each token computed on the GPU. If you run the model and get a number, the llama-bench command below produces figures you can compare directly with the reference rows.

On quality, the unsloth guide reports two third-party results. On Aider Polyglot, UD-IQ3_XXS comes close to BF16. On LiveCodeBench v6, Q3_K_M trails Q4_K_M. Unsloth's advice is to use at least Q4_K_M. In the issue #19480 perplexity table, perplexity is 8.38 at Q4_K_M, 8.25 at Q5_K_M and 8.23 at Q6_K, so the curve is nearly flat above Q5.

How does MoE expert offload keep the active weights on a 12GB card?

Each of the 48 layers has two parts. The first is the mixer: Gated DeltaNet linear attention in 36 layers and full gated attention in 12. The second is an MoE block with 512 small experts, each a 2048→512→2048 gated MLP of about 3.1M parameters.

The experts make up almost the entire model. 512 experts × 48 layers × 3.1M parameters is about 77B of the 80B total. The mixers, the shared experts, the router and the embeddings make up the remaining few billion. Those are the weights every token touches, so they belong on the GPU.

llama.cpp gives you three ways to split the model:

  • --n-cpu-moe N keeps the expert tensors of the first N layers in system RAM and everything else on the GPU. Start high, around 40, and lower N until VRAM is nearly full.
  • -ot / --override-tensor uses a regex. -ot ".ffn_.*_exps.=CPU" pushes every routed expert to the CPU. It is the simplest option, but it is also the slowest, at 33.7 tok/s against 39.9 on the 4070 rig, because it leaves VRAM unused.
  • --fit on is the newest option. llama.cpp measures free VRAM and places as many whole layers and expert tensors on the GPU as fit, keeping a margin you set with --fit-target. On the 4070, --fit beat a hand-tuned --n-cpu-moe 40 on prefill, at 511 against 451 tok/s, and matched it on generation.

A starting command for an RTX 3060 with 64GB of RAM:

llama-server -m Qwen3-Coder-Next-Q4_K_M.gguf \
 --ctx-size 65536 --fit on --fit-target 512 \
 -ctk q8_0 -ctv q8_0 --flash-attn on \
 --threads 8 --threads-batch 16 --no-mmap --jinja \
 --temp 1.0 --top-p 0.95 --top-k 40 --min-p 0.01

The sampling values are the ones the unsloth guide recommends. Set --threads to your physical core count, which is 8 on a 5800X and 6 on a 5600X. In issue #19480, SMT threads hurt generation.

Update llama.cpp before you start. The DeltaNet layers ran on a slow generic path until native Gated DeltaNet kernels for CPU, CUDA, Metal and Vulkan landed in March 2026 (PR #20334, referenced in issue #19480). Builds from before that release explain most of the "5x slower than expected" reports.

How much system RAM and which CPU do you need?

Under offload, the CPU's main job is reading about 1.5B routed-expert parameters per generated token. At Q4_K_M, about 4.9 bits per weight, that is roughly 0.9 GB per token. It means memory bandwidth, not core count, sets the ceiling.

SpecRyzen 7 5800XRyzen 5 5600X
Cores / threads8 / 166 / 12
Boost clock4.7 GHz4.6 GHz
L3 cache32 MB32 MB
TDP105 W65 W
MemoryDual-channel DDR4-3200 (official)Dual-channel DDR4-3200 (official)
PCIe to GPU4.0 x16 (B550/X570)4.0 x16 (B550/X570)

Both chips have the same memory controller and the same 51.2 GB/s theoretical bandwidth at DDR4-3200, so generation speeds should land close together. The 5800X's two extra cores help in two places. One is prefill threads (--threads-batch). The other is running a build, a test suite or a language server next to the model without stealing cycles from inference. Specs are from AMD's Ryzen 7 5800X product page.

Rules that matter more than the CPU choice:

  1. Install two or four matched DIMMs. A single stick halves bandwidth and roughly halves offloaded generation speed.
  2. Turn on XMP/DOCP. The carteakey.dev author ran DDR5-6000 at 2000 MT/s for months because the BIOS was set to Auto, a 3x handicap. AM4 boards default to DDR4-2133 the same way.
  3. Size RAM to the quant. Use the table above. If the model does not fit in RAM plus VRAM, llama.cpp pages from disk and generation collapses.

What does long context cost?

This model's KV cache is far smaller than most 80B-class models', because only the 12 full-attention layers keep one. From config.json, each of those layers has 2 KV heads × 256 head dims. At f16, that is 12 × 2 (K+V) × 2 × 256 × 2 bytes, or about 24 KB per token. The 36 DeltaNet layers keep a fixed-size recurrent state of under 100 MB that does not grow with context.

ContextKV cache, f16KV cache, q8_0
32K~0.8 GB~0.43 GB
64K~1.6 GB~0.86 GB
128K~3.2 GB~1.7 GB
256K (native max)~6.4 GB~3.4 GB

These figures are calculated from the published architecture. Real VRAM use comes out higher, because llama.cpp's compute buffers also grow with context and batch size. The carteakey.dev author reported about 4 GB at f16 and about 2 GB at q8_0 for 64K once everything is counted.

Either way, the trade is the same. Every gigabyte the cache takes is a gigabyte of expert tensors that move to the slower CPU side. q8_0 KV quantization roughly halves the cache with no visible quality change at short contexts, per the same write-up. For a 12GB card, 64K with a q8_0 cache is a sensible default. 128K works but pushes another layer or two off the GPU.

Prefill vs generation: why prompt processing drops more than token generation under offload

Generation handles one token at a time, so each step reads only the 10 active experts per layer. That load is small and bandwidth-bound.

Prefill processes hundreds or thousands of prompt tokens per batch, and across a large batch nearly all 512 experts in every layer get used. llama.cpp can compute those batches on the GPU even when the weights live in system RAM, but it has to copy the expert weights across PCIe to do it. On a 12GB card, prefill speed therefore depends on three things:

  • PCIe link. The RTX 3060 is a PCIe 4.0 x16 card. On a B450 or A520 board the link drops to 3.0, which halves transfer bandwidth.
  • Batch size. A larger --ubatch-size spreads each weight copy across more tokens.
  • How many layers stay fully resident. This is why --fit won on prefill on the 4070 rig.

Agent loops make this matter. Every tool call resends a long system prompt, the file context and the tool output, so prefill time, not generation speed, often decides whether the agent feels responsive. Turn on prompt caching (--cache-reuse in llama-server) so unchanged prefixes are not reprocessed.

Which RTX 3060 12GB card to buy

All three cards use the same GA106 GPU with 3,584 CUDA cores, 12GB of GDDR6 at 15 Gbps on a 192-bit bus (360 GB/s), a 170 W reference board power and a PCIe 4.0 x16 interface (TechPowerUp RTX 3060 12 GB spec sheet). For LLM inference they perform the same. The differences are size and cooling.

CardFansBoost clockApprox. lengthBest for
MSI Ventus 2X 12G OC21807 MHz~232–235 mmMid-towers; the safe default
ZOTAC Twin Edge OC21807 MHz~224 mmCompact and ITX-friendly cases
GIGABYTE Gaming OC 12G31837 MHz~282 mmLarger cases; three fans spread heat over long agent sessions

Specs are from the manufacturers' spec sheets. Check your exact SKU and revision before buying if case clearance is tight. Factory overclocks make no meaningful difference here. Offloaded inference is limited by memory and PCIe, not shader clock. Choose the cooler that fits your case and your tolerance for fan noise. A 3-fan cooler generally holds lower fan speeds at the same load.

Perf-per-dollar: is stepping up to 16GB or 24GB worth it?

The RTX 3060 12GB launched at a $329 MSRP. Using the estimated 15–22 tok/s, that is about 0.045–0.067 tok/s per launch-MSRP dollar. The RTX 4070 12GB launched at $599 and reached about 40 tok/s on a DDR5 platform, about 0.067 tok/s per dollar. Its advantage comes largely from the faster RAM behind it, not from the card itself.

Going to 16GB keeps more expert layers resident. The issue #19480 data shows a 16GB card reaching 25–36 tok/s with DDR5. Going to 24GB, such as an RTX 3090, moves roughly 40% of Q4_K_M onto the GPU and improves prefill the most.

The upgrade order for this model on AM4:

  1. Install 64GB of dual-channel RAM.
  2. Confirm XMP is on.
  3. Make sure the board runs the card at PCIe 4.0.
  4. Only then think about a larger GPU.

For per-model VRAM sizing across the 7B–70B range, see the best local LLM for 12GB VRAM guide. For a smaller MoE that fits more comfortably, see the Qwen3.6-35B-A3B on RTX 3060 deep dive.

Worked examples

Example 1: 32GB of RAM, unwilling to buy more. Q2_K (29.2 GB) or UD-IQ3_XXS (28.5 GB) loads with about 9 GB on the GPU, leaving about 20 GB in RAM. That is tight with a browser open. Choose UD-IQ3_XXS, which unsloth's Aider data rates close to BF16. Keep context at 32K and close other memory-heavy apps.

Example 2: 64GB DDR4-3600, 5800X, Ventus 2X. Run Q4_K_M with --fit on, 64K context and a q8_0 KV cache. This is the configuration the estimated 15–22 tok/s applies to. The slightly faster RAM may lift it toward the top of that range. It is a good fit for single-repo edits in Cline or Qwen Code.

Example 3: 128GB of RAM, wanting near-lossless output. Q6_K (65.6 GB) fits in RAM with room to spare. Generation slows roughly in proportion to bytes read per token, about 35% more data than Q4_K_M. The perplexity gain over Q5_K_M is 0.02. For most people, Q5_K_M is the ceiling worth running on this card.

Common pitfalls

  • Old llama.cpp builds. Builds from before March 2026 lack the native Gated DeltaNet kernels and run several times slower. Update first, benchmark second.
  • Single-channel RAM. One 32GB stick plus one 16GB stick, or a lone DIMM, cuts bandwidth and generation speed.
  • No VRAM margin. The carteakey.dev author moved from a 128 MiB to a 512 MiB --fit-target because the CUDA memory pool grows in 1 GiB chunks and caused out-of-memory errors as prompts grew.
  • Using -ot for all experts. It is simple, but it leaves VRAM idle. --fit or a tuned --n-cpu-moe is faster on both prefill and generation.
  • Expecting thinking mode. The model card states that this model is non-thinking only and never emits <think> blocks. Don't configure your agent to wait for them.

Bottom line: when this setup is right, and when it isn't

It's right if you have an AM4 box and an RTX 3060 12GB already, or want the lowest-cost route to an 80B-class agentic coder, and your work is single-file edits, test writing, and repo Q&A under about 64K tokens. Spend on RAM first.

It isn't right for all-day agentic refactors that regularly pass 100K tokens of context. At that size, every tool call pays a long prefill penalty over PCIe, the KV cache competes with expert layers for 12GB, and the loop slows down. A 24GB card, a 16GB card on a DDR5 platform, or a unified-memory system with 64GB or more keeps more of the model resident. If you mostly want fast autocomplete, a dense 7–9B coder that fits entirely in VRAM is faster and simpler. See the local coding agent on RTX 3060 guide.

Citations and sources

All sources were accessed October 26, 2026.

This page is an editorial synthesis. Its sources are published specifications and third-party measurements, plus arithmetic labelled as estimates. SpecPicks did not benchmark this configuration.

Products mentioned in this article

Amazon & eBay listings, plus full specs and alternatives on each product page.

As an Amazon Associate, SpecPicks earns from qualifying purchases; we also earn on qualifying eBay purchases via the eBay Partner Network. Prices shown were last tracked at crawl time and may vary — check the listing for the current price.

Watch a review

Friendly Fire: AMD Ryzen 7 5800X CPU Review & Benchmarks vs. 5600X & 5900X — Gamers Nexus on YouTube

Frequently asked questions

Does Qwen3-Coder-Next fit entirely inside 12GB of VRAM?
No. Even aggressive quants of an 80B-parameter model are far larger than 12GB, so the practical setup keeps attention layers, shared weights and the KV cache on the GPU and places the expert tensors in system RAM. Because only about 3B parameters are active per token, generation stays usable even though most of the weights live on the CPU side.
How much system RAM should I install for this setup?
Plan for the GGUF file size of your chosen quant plus headroom for the operating system, the editor and your agent tooling. On AM4 that usually means 64GB of dual-channel DDR4. Running a single stick halves memory bandwidth, which directly lowers offloaded token generation, so install matched pairs and enable the XMP profile in the BIOS.
Is the Ryzen 7 5800X worth it over the Ryzen 5 5600X as the offload host?
For MoE offload the bottleneck is mostly memory bandwidth, not core count, so the two CPUs land closer together than their core counts suggest. The 5800X's two extra cores help with prompt processing and with running a build or test suite next to the model. If budget is tight, spend the difference on more RAM first.
Will long context windows still work on a 12GB card?
Yes, but the KV cache grows with context length and competes with the weights you keep on the GPU. Quantizing the KV cache to q8_0 roughly halves its footprint with small quality loss on most coding tasks. For agent loops that regularly exceed 100K tokens, a 16GB or 24GB card avoids pushing more layers to the CPU.
When should I skip this and buy a bigger GPU instead?
If you run multi-file agentic refactors all day, the slower prefill from CPU offload adds up across every tool call. In that case a 24GB card, or a unified-memory box such as a Strix Halo system, keeps more of the model resident. For occasional coding help and single-file edits, a 12GB card plus enough RAM is the low-cost entry point.

— Mike Perry · Updated 2026-10-26

Parts this article names

Amazon Associate — prices tracked 2026-10-26, may vary.