Qwen3-Coder-30B-A3B

181.8 gen tok/s — used as the coding sub-agent

Qwen3-Coder-30B header plate: model name, tagline "Sub-agent coding slot", spec matrix with struck-through stock benchmark gen 173 tok/s and tuned benchmark gen 181.8 tok/s, context 200,000, GPU 1 x RTX 3090, VRAM ~21 GB at 200K, arch 30B MoE 3B active, slot chip qwen3-coder-30b-a3b.

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

FieldValue
Architecture30B total / 3B active MoE
Served byllama.cpp — the llama-server process behind the orchestrator
WeightsQ4_K_M, 18.56 GB
Context200,000
GPU footprintSingle RTX 3090
VRAM on one RTX 3090~21 GB @ 200K
Role hereThe coding sub-agent
SourceBase: Qwen/Qwen3-Coder-30B-A3B-Instruct · ours: extracted from Ollama qwen3-coder:30b-a3b-q4_K_M · GGUF alt: unsloth GGUF · ollama.com/library/qwen3-coder:30b
KV cacheq4_0 (K and V)
Batchingubatch 512 / batch 2048 (large batches = the prefill speed)
ReasoningOff — reasoning: false, content only
ToolsTool calling supported

Benchmarks

RunPrompt tok/sGen tok/s
First run here (Ollama q4_K_M, 4K ctx)3,958173.0
Orchestrator sweep13,150.2 tok/s181.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:

{
  "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.

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), restart the service, then smoke-test:

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. Best raw chat speed is the MTP entry.

Links. Model card · Unsloth GGUF · Ollama library · Apache-2.0 licence

Leave a Reply

Your email address will not be published. Required fields are marked *