Community

Why Qwen4-35B-A3B can be harder to fit than its name suggests

How the 20B n-gram table, file size, and runtime memory affect a local installation.

The Qwen model card lists 35 billion core parameters, with around 3 billion active per token, plus a 20 billion parameter n-gram embedding table and a 2 billion parameter multi-token prediction component. The active parameter count describes the computation used for each generated token. A local deployment also has to accommodate the model files, the prompt cache and the memory used by the engine. Qwen’s official model overview

What a 16 GB GPU test showed

In a llama.cpp discussion, one tester used Windows CUDA build b13002, a 16 GB RTX 5060 Ti and 31.92 GiB of system memory. Their Unsloth UD-IQ2_M GGUF stored the per-layer embedding table in a separate split. The loader reported roughly 10,987 MiB of memory-mapped lookup data, even in a run with all 42 reported layers on the GPU. The host total grouped the lookup table with other host buffers, which made it easy to misread what had been assigned to the CPU. The llama.cpp issue with model splits, build and measurements

SSD offload and CPU computation solve different problems

A runtime can map a supported lookup table and read the needed rows on demand. The operating system may also keep frequently accessed pages in its file cache. When an engine puts transformer experts on the CPU, the CPU has to compute with those weights. Both arrangements can appear in a host-memory summary, while affecting latency and throughput in different ways. The same llama.cpp report includes runs that distinguish the embedding lookup from experts assigned to the CPU. The comparison of host lookup data and CPU experts

When evaluating fit, note the exact checkpoint and what it contains, including its embedding and MTP components. Start with the context size you plan to use and measure peak RAM, VRAM and swap during a long prompt and generation. File size answers the download question. The runtime measurements tell you whether the configuration fits your machine.

Try Qwen4