The article explains how Qwen3-30B-A3B, a Mixture-of-Experts (MoE) model, runs on a PC with only 8 GB of VRAM by activating just 3.3 billion of its 30.5 billion parameters per token. Unlike dense models where all parameters compute every token, Qwen3-30B-A3B replaces the MLP in each of its 48 layers with 128 experts (each a SwiGLU block of 2,048×768) and a router (2,048×128). For each token, the router selects 8 experts via top-8 softmax with norm_topk_prob, yielding a weighted sum added to the residual stream. This results in 56.9 million active parameters per layer (2.73 billion total for layers), plus 0.31 billion from the output vocabulary matrix, matching the reported ~3.3 billion activated. The 19 GB Q4_K_M file splits across GPU and system RAM; on an i5-6600K with 32 GB DDR4-2400 and RTX 3060 Ti (8 GB VRAM), Ollama placed 33% of layers on GPU. Generation reached 19.4 tokens/s (vs. 52.6 tokens/s for Qwen3-8B fully on GPU), aligning with the theoretical 20 tokens/s ceiling from 1.9 GB read per token at 38.4 GB/s DDR4 bandwidth. Prompt processing lagged at 32.4 tokens/s due to CPU compute limits. The default qwen3:30b tag pulls the Thinking-2507 variant, which ignores --think=false and produced a 2,709-token reasoning loop; the Instruct-2507 variant (qwen3:30b-instruct) avoids this. The model requires ≥32 GB RAM; quality matches dense ~14B models, not 32B.
Read original
dev.to