LocalTPS

Can NVIDIA RTX 4090 (24GB) Run Qwen3-Coder 30B-A3B (MoE)?

Quick Verdict:Partially (with RAM offload) — at 64K context (Q4_K_M), Qwen3-Coder 30B-A3B (MoE) requires 24.6 GB vs 24 GB VRAM, offloading 3% of weights to system RAM at ~111.7 tok/s.

Hardware

GB
Memory Type

Model & Context

MoE · 30.5B (1.9B active)
Coding Agent Context Presets
65,536 tokens · KV: FP16
Context Window64K / 256K
KV Cache Quant
MTP Speculative Decoding
Usable (Slight Lag)

Offloading 3% of weights to RAM. Switch to Q4_0 KV Cache for full-GPU speed.

Generation Speed
111.7 tok/s
Offload Penalty Applied
Time to First Token (TTFT)
5.8 sec
32,000 prompt tokens
VRAM Status
RAM Offload
24.6 / 24 GB
97% GPU · 3% RAM
VRAM Allocation BreakdownTotal Required: 24.57 GB / 24 GB VRAM
VRAM Limit (24 GB)
Model Weights (GGUF):17.28 GB
KV Cache:6.00 GB
Runtime Overhead:1.29 GB
Offloaded to System RAM (+0.57 GB)

Technical FAQ

How much VRAM does Qwen3-Coder 30B-A3B (MoE) need at 64K context?

With Q4_K_M GGUF weights (17.28 GB), FP16 KV Cache (6.00 GB), and runtime overhead (1.29 GB), total VRAM required at 65,536 tokens is 24.57 GB.

Is NVIDIA RTX 4090 (24GB) fast enough for Cline or OpenCode with Qwen3-Coder 30B-A3B (MoE)?

Rated "Usable (Slight Lag)" at 64K context: 111.7 tok/s decode and 5.8s TTFT for 32,000 prompt tokens. Offloading 3% of weights to RAM. Switch to Q4_0 KV Cache for full-GPU speed.

How much VRAM does Q4_0 KV Cache save on Qwen3-Coder 30B-A3B (MoE)?

Switching KV Cache from FP16 to Q4_0 at 64K context cuts KV memory from 6.00 GB down to 1.69 GB, lowering total memory to 20.25 GB (328.2 tok/s).

Is it cheaper to run Qwen3-Coder 30B-A3B (MoE) locally or via Cloud API / RunPod?

For full-time coding agent usage (5M input + 1M output tokens/day), OpenRouter costs ~$13.86/mo, while renting NVIDIA RTX 5090 32GB on Vast.ai costs ~$114.40/mo. Upgrading to NVIDIA A100 GPU accelerator (PCIe card) (40GB) ($1,400 MSRP) pays back in ~192.8 months.