The short version
- Expert offloading (
--n-cpu-moe) applies only to mixture-of-experts (MoE) models. It parks part of the model in system RAM so less of it has to fit on the GPU. - Speculative decoding with a draft model speeds up generation, including on dense models. It doesn't shrink the model, and the draft model needs its own memory.
The headline about "not needing more VRAM" is therefore half right. Only the first technique reduces VRAM needs. The second makes the most of VRAM you already have.
The test machine and the claimed numbers
Raj ran the Qwen test on a Lenovo Legion 5 with a mobile RTX 3070 (8GB of VRAM) and 32GB of DDR4-3200. The Gemma test ran on a different machine, his desktop PC with an RTX 4070 Ti Super (16GB of GDDR6X), a Ryzen 5 7600X and 32GB of DDR5. All the figures below are his own, and the article doesn't give a methodology. It doesn't say which prompts he used, how long the runs lasted, which llama.cpp build he ran or how much the results varied between runs. Treat them as one person's data points.
| Test | Baseline | Tuned |
|---|---|---|
| Qwen3.6-35B-A3B (UD-IQ4_XS), expert offload | 4.02 tokens/s with no offload | 32.82 tokens/s with --n-cpu-moe 28 |
| Gemma 4 12B QAT, 32K context, MTP drafter | about 75 tokens/s | about 179 tokens/s |
The first result is roughly an 8x jump. The second is roughly 2.4x.
Technique one: park MoE experts in system RAM
An MoE model stores most of its weights as a large pool of "experts". Only a few are active for any one token. That makes the experts the least costly part of the model to keep in slower memory. The attention layers and other always-busy parts can stay on the GPU.
Qwen's own model card for Qwen3.6-35B-A3B shows why this model suits the trick. Houtini's LM Studio guide describes it as a 35-billion-parameter model with about 3 billion active per token. The Hugging Face model card lists 256 experts, with 8 routed experts plus 1 shared expert active at a time, so most of the weights sit idle on any given token.
In llama.cpp, the relevant flag is --n-cpu-moe N (short form -ncmoe). The server documentation says it keeps the MoE weights of the first N layers on the CPU. A separate flag, --n-cpu-ffn, is for the feed-forward weights of dense models. The two flags are not interchangeable.
Two practical cautions follow:
- 28 is one machine's number. It worked for this model, quantization and laptop. Your best value depends on your VRAM, context size and the model file. Start high and lower it until you run out of VRAM, or the reverse. Measure tokens per second at each step with the same prompt and settings.
- System RAM still has to hold the model. Offloading moves the weights. It doesn't make them smaller. A 35B-class model at a 4-bit-ish quantization needs a lot of RAM, and 32GB was comfortable on the test machine.
What about LM Studio and Ollama?
Raj says LM Studio has a dedicated offloading slider and that Ollama doesn't let you set this at all. The LM Studio part checks out, with a caveat about versions.
LM Studio 0.3.23 added an advanced load setting to put all MoE expert weights on the CPU or GPU, with GPU as the default. LM Studio says this helps when you lack the VRAM to offload the whole model to the GPU. If the entire model fits in GPU memory, it says you're better off leaving the experts on the GPU. LM Studio also says it uses the same underlying technology as llama.cpp's --n-cpu-moe.
The interface later changed. A bug-tracker report says LM Studio 0.4.0 replaced the toggle with a slider that forces entire layers, including non-expert parts, onto the CPU. A commenter on the same thread says the old option is equivalent to setting the new "Number of layers for which to force MoE layers into CPU" control to MAX. That is a user report, not official documentation. It does suggest the control you see depends on your LM Studio version, so check the model load dialog on your install.
I couldn't verify the claim about Ollama from the sources I found. If you rely on Ollama, check its current documentation before assuming the option is missing or present.
Technique two: speculative decoding with a draft model
Dense models touch all their weights on every token, so there is no idle expert pool to move. Speculative decoding attacks speed instead. A small draft model proposes a few tokens. The big model then checks them together in one batch, which is cheaper than generating them one at a time.
llama.cpp's documentation says the gain comes from the fact that computing a batch of tokens is more efficient than computing them one after another. It also notes that the speedup is substantial when the draft predictions are frequently correct. That condition explains why results vary so much by model, workload and drafter.
llama.cpp supports several variants. These include a separate draft model, EAGLE-3, DFlash and DSpark drafts, n-gram methods that need no extra model, and draft-mtp, which uses multi-token-prediction heads from the main model. Useful flags from the documentation:
--spec-draft-model(or-md) selects the draft model file.--spec-draft-n-maxsets how many tokens to draft. The default is 3.--spec-draft-nglcontrols how many draft layers go into VRAM.--spec-draft-n-ubatchcan be reduced to spare VRAM.
Raj paired Unsloth's Gemma 4 12B QAT build with a 242MB MTP drafter at 32K context. He is candid that the drafter needs its own VRAM share and suggests budgeting a few hundred megabytes. That is the catch. On a card already close to its VRAM limit, the drafter and its context buffers can push you over. Speculative decoding fits best when you have headroom, not when VRAM is the binding constraint.
How to test this yourself
- Pick the right model type. Use expert offload for MoE models such as the Qwen3.6-35B-A3B example. Use a draft model for dense models where a matching drafter exists.
- Set a baseline. Run the same model file, context size, prompt and sampler settings with no tweaks. Record tokens per second.
- Change one thing at a time. For MoE, vary the
--n-cpu-moevalue. For speculative decoding, add the drafter and watch free VRAM. - Check acceptance. llama.cpp prints a draft acceptance rate. A low rate means the drafter is wasting effort and the speedup will be small.
- Watch output behavior. Compare answers with and without the drafter. The documentation warns that stochastic sampling can pick different tokens across implementations and devices, and says to use greedy sampling when you need exact output matching.
- Use the built-in benchmarking tool if you want rigor. The documentation points to the SPEED-Bench client, which runs against a live
llama-serverand compares a baseline run with a speculative run.
Reading the claims critically
Raj's argument that default settings in beginner-friendly runtimes leave performance behind is plausible. The documented flags exist and the mechanisms are sound. But the broader framing needs some salt:
- His numbers come from one laptop and one author. Nothing here independently confirms them.
- A 4 tokens-per-second baseline suggests the untuned setup was badly mismatched to the hardware. Part of the 8x gain is escaping that bad configuration, not magic.
- RAM bandwidth matters. A laptop with DDR4-3200 will behave differently from a desktop with faster memory or a system with unified memory.
- "Cloud subscriptions become a tougher sell" is an opinion. Local models of this size trade away capability, convenience and sometimes context length, and electricity and hardware aren't free.
Even so, the practical message holds. If a local model feels slow on a modest Windows PC, the runtime's defaults may be the culprit rather than your GPU. For MoE models, moving the experts into system RAM can be the difference between unusable and comfortable. For dense models, a matching drafter can give a large speedup if you can spare a few hundred megabytes. Raj also names KV cache quantization, context-size tuning and quantization choice as further levers. His article only mentions these and doesn't test them.
Correction (October 31, 2026): An earlier version said both benchmark sets came from Raj's Lenovo Legion 5 laptop. The Qwen figures did; the Gemma 4 figures (about 75 to about 179 tokens/s) came from his desktop PC with an RTX 4070 Ti Super (16GB), a Ryzen 5 7600X and 32GB of DDR5, and the laptop is a Legion 5, not a Legion 5 Pro.
References
- I changed two settings in my local AI setup, and stopped needing more VRAM XDA · 2026-10-31T18:30:20+00:00
- LM Studio GPU Offload Settings & Developer Mode · Houtini houtini.com
- speculative.md github.com