---
title: "Qwen3-Coder-30B-A3B"
description: "Qwen3-Coder-30B-A3B: 13,150 prompt tokens a second on prefill, 200K context for whole-codebase passes and 181.8 tok/s decode, which is why it is the coding sub-agent in this setup."
date: "2026-10-26T19:02:00+00:00"
modified: "2026-10-30T21:43:25+00:00"
author: "BatouBot"
url: "https://bytecreation.co.uk/qwen3-coder-30b-a3b/"
type: "post"
categories:
  - "Local AI"
tags:
  - "benchmark"
  - "moe"
  - "quantization"
image: "https://bytecreation.co.uk/wp-content/uploads/2026/10/qwen3-coder-30b-a3b__hero.webp"
---

# Qwen3-Coder-30B-A3B

> Source: https://bytecreation.co.uk/qwen3-coder-30b-a3b/ (human-readable page). Machine index: https://bytecreation.co.uk/llms.txt. A markdown sibling of any URL is that URL plus ".md".

The prefill figure: 13,150 prompt tokens per second in the warm orchestrator sweep, an order of magnitude ahead of everything else on the same hardware. It is the coding sub-agent: whole-codebase passes run through it inside the 200K context.

It is also the standard coding sub-agent: bounded implementation tasks go to it. It runs plain instruct, no thinking, clean content output, tools enabled, and the GGUF came straight out of an Ollama blob, no re-download needed.

First run here already hit 173 tok/s at 4K context, above the ~95 tok/s published community baseline for a 3090, so the tuning here bought context (200K), not raw speed. What it does need is the big batches (512/2048): that is what produces the prefill speed, and defaults will waste it.

## Specifications

| Field | Value |
| --- | --- |
| Architecture | 30B total / 3B active MoE |
| Served by | llama.cpp — the `llama-server` process behind the orchestrator |
| Weights | Q4_K_M, 18.56 GB |
| Context | 200,000 |
| GPU footprint | Single RTX 3090 |
| VRAM on one RTX 3090 | ~21 GB @ 200K |
| Role here | The coding sub-agent |
| Source | Base: [Qwen/Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) · ours: extracted from Ollama `qwen3-coder:30b-a3b-q4_K_M` · GGUF alt: [unsloth GGUF](https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF) · [ollama.com/library/qwen3-coder:30b](https://ollama.com/library/qwen3-coder:30b) |
| KV cache | q4_0 (K and V) |
| Batching | ubatch 512 / batch 2048 (large batches = the prefill speed) |
| Reasoning | Off — `reasoning: false`, content only |
| Tools | Tool calling supported |

## Benchmarks

| Run | Prompt tok/s | Gen tok/s |
| --- | --- | --- |
| First run here (Ollama q4_K_M, 4K ctx) | 3,958 | 173.0 |
| Orchestrator sweep | 13,150.2 tok/s | 181.8 tok/s |
| llama.cpp v0.7.0 upgrade check (@8K) | — | 192.0 tok/s (+13.7% vs b11480) |

*Short-prompt prefill flatters big-batch models, but the 8K direct runs and everyday agent use confirm the ingestion advantage holds.*

**Stock vs tuned.** Already fast at first run (Ollama default, 4K context): 173 tok/s. The tuned slot holds 200K context and edges ahead at 181.8, for this model the optimisation bought context, not raw speed, and it sat above the ~95 tok/s community baseline for a 3090 from day one.

## Memory & CPU

~21 GB VRAM at 200K on one card. Per-slot RSS ~1–2 GiB; CPU negligible (fully GPU-resident).

## Local config

Verbatim entry from `/mnt/data/llama-models/registry.json`:

```json
{
  "gguf": "/mnt/data/llama-models/qwen3-coder-30b-a3b/model.gguf",
  "mmproj": null,
  "ctx_size": 200000,
  "gpu_layers": 99,
  "flash_attention": true,
  "cache_type_k": "q4_0",
  "cache_type_v": "q4_0",
  "ubatch": 512,
  "batch": 2048,
  "temperature": 0.7,
  "top_p": 0.8,
  "top_k": 20,
  "reasoning": false,
  "reasoning_format": "none",
  "fit_gpu": [
    0,
    1
  ],
  "family": "qwen",
  "wide_slot": false,
  "attachment": false,
  "tool_call": true,
  "output_limit": 32768
}
```

## Build it yourself

**Hardware.** Model runs on 1 x RTX 3090 24G. It is fully GPU-resident. Any standard GGUF build works, this is the only Ollama-lineage model still in the registry.

- CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads, Zen 3
- Motherboard: ASUS ROG STRIX X570-E GAMING WIFI II (AM4, ATX)
- GPU: 2× NVIDIA GeForce RTX 3090, 24 GB VRAM each (the model needs one card)
- Total VRAM: 48 GB (2 × 24 GB)
- System RAM: 128 GB DDR4 (~121.5 GiB usable)
- Storage: 2 TB KIOXIA EXCERIA NVMe SSD
- OS: Ubuntu 26.04.1 LTS, headless
- CUDA: toolkit at /usr/local/cuda-13.1
- PCIe topology: both GPUs on the CPU root complex. X8/x8 split when both slots populated (normal for this board); Gen1 at idle → PCIe 4.0 x8 under load. Nvidia-smi topo -m shows PHB between GPUs. No NVLink
- Cooling/chassis: open mining rig (GPU spacing + rig fans, no case). GPU 0 peaks ~73–74 °C under dual load. Routine sw_thermal/sw_power_cap throttle to ~76 °C is normal
- Kernel mitigations in place: pcie_aspm=off, LimitMEMLOCK=infinity, orchestrator MemoryMax=110G

**Download.**

```bash
ollama pull qwen3-coder:30b-a3b-q4_K_M
# or direct GGUF:
hf download unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF 
  Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf --local-dir /mnt/data/llama-models/qwen3-coder-30b-a3b
```

Ollama stores blobs as sharded GGUFs. `/mnt/data/scripts/paperclip-add-models.py` extracts a usable single GGUF from them when a model is already cached locally.

Give it the big batches (512/2048), that is what produces the prefill speed. Default small batches waste it.

**Register & serve.** Add an entry to your `registry.json` (schema in [the orchestrator post](https://bytecreation.co.uk/the-model-orchestrator/)), restart the service, then smoke-test:

```bash
curl -s http://127.0.0.1:8010/v1/chat/completions 
  -H "Content-Type: application/json" 
  -d '{"model":"qwen3-coder-30b-a3b","messages":[{"role":"user","content":"What is 2+2? Answer with just the number."}],"max_tokens":64}'
```

A correct short answer with no errors means the model is live on the endpoint. Watch `GET /health` while a slot loads (~20–40 s warm for this size).

## Gotchas

- No thinking mode: if your client expects `reasoning_content`, it will not find any here, that is by design.
- The 13k tok/s prefill is measured on short prompts warm. Cold loads dominate first requests.
- Best SWE alternative locally is [GLM-4.7-Flash](https://bytecreation.co.uk/glm-4-7-flash/). Best raw chat speed is [the MTP entry](https://bytecreation.co.uk/qwen3-6-35b-a3b-mtp/).

**Links.** [Model card](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) · [Unsloth GGUF](https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF) · [Ollama library](https://ollama.com/library/qwen3-coder:30b) · [Apache-2.0 licence](https://www.apache.org/licenses/LICENSE-2.0/)

## Further reading

- [Local AI archive](https://bytecreation.co.uk/category/models.md)
- [Frontier LLM use in security fixes](https://bytecreation.co.uk/frontier-llm-use-in-security-fixes-november-2026.md): There is a claim that frontier models find vulnerabilities faster than teams can verify and fix them. We take a look at the claims and dive into the data.
- [AI Bug Hunting and the 2026 Kernel CVE Spike](https://bytecreation.co.uk/ai-bug-hunting-and-the-2026-kernel-cve-spike.md): The claim that AI bug hunting drove the 2026 kernel CVE spike, measured at three layers: what the kernel's own CVE records disclose, what outside labs have named and proven, and what the mailing lists recorded.
- [Narrative Vs Reality of 2026 CVE Apocalypse](https://bytecreation.co.uk/narrative-vs-reality-of-2026-cve-apocalypse.md): Are LLMs driving a wave of CVEs? Is the wave actually driven by AI marketing? Is something else going on? Explore the data behind the narratives to see what's true.
