A 22 GB model on a 4 GB card: Qwen3.6-35B in dlm 0.5.0
Qwen3.6-35B-A3B in Q4_K_M is a 22 GB file. The test machine has a GTX 1650 with 4 GB of VRAM and 16 GB of system RAM, so the model fits in neither. With dlm 0.5.0 it runs there anyway: it reasons in <think>, answers “The capital of France is Paris.”, and decodes at 2.5–2.9 tokens a second.
That isn’t fast. It is a 35B model answering correctly on a card that costs less than its download takes in disk space. Here is what made it work.
Why a MoE model, not a dense one
A dense model reads every weight for every token, so streaming one that is five times the card means moving most of it over PCIe each step. A Mixture-of-Experts model doesn’t. Qwen3.6-35B-A3B has 35B parameters but activates about 3B per token: each layer’s router picks a few experts, and the rest sit idle. dlm keeps the parts every token touches (attention, routers, the shared expert) close to the GPU and fetches only the experts a token picks.
That idea already worked in 0.4. What it lacked was the plumbing to make expert misses cheap.
Making expert misses cheap
- Cache the experts in RAM. The host-RAM tier used to pass a MoE layer’s core straight through to disk, re-reading and re-quantizing it every token, and sized itself too small for the experts. On TinyMixtral that one fix took batch-1 decode from 0.28 to 12.8 tok/s.
- Fetch each expert once. Prefill used to run a MoE layer one token at a time, uploading the same expert again for every token that chose it. Now attention runs for every token first, then each selected expert is fetched once and applied to all its tokens in one batched call.
- Keep the popular ones. The VRAM expert cache evicts by a decayed count of how often the router picks each expert, not by recency.
- Guess the next layer’s experts early. While a layer computes, the next layer’s router runs on the host over the current input, and a worker warms the experts it predicts.
- Sometimes, don’t upload at all. One token through one expert is a memory-bound read, and system RAM can beat a small card’s PCIe link. A decode miss runs on whichever of CPU or GPU has measured cheaper so far.
Reading the disk directly
With 22 GB of experts and 16 GB of RAM, most misses still go to the SSD, so how dlm reads the file matters. It used to copy weights out of a memory map, which faults pages in one at a time. In 0.5.0 a layer or expert arrives in one positioned, unbuffered read (O_DIRECT on Linux, FILE_FLAG_NO_BUFFERING on Windows). Random expert slices of this file came in at 1,344 MB/s that way, against 461 MB/s from the map.
Letting the model draft for itself
Qwen3.6 ships a multi-token-prediction head, a small extra layer trained to guess the next token. With --speculative mtp it proposes tokens and the full model checks them in one pass, so an accepted guess costs no extra trip through the experts. The hard part was rollback: three of every four layers are linear attention, whose recurrent state can’t be cut back past a rejected token. dlm checkpoints that state (about 60 MB) before each round and replays the accepted tokens when a guess misses. Greedy output stays exactly what plain decoding gives.
The numbers
| Qwen3.6-35B-A3B Q4_K_M, GTX 1650 | Decode tok/s |
|---|---|
| Plain decoding | 1.51–1.62 |
| --speculative mtp, gamma 1 (74% accepted) | 2.09–2.56 |
| --speculative mtp, gamma 2 (57% accepted) | 2.23–2.51 |
Ranges are back-to-back rounds on one machine; the SSD slowed across rounds, which is why they are wide. Scores match the CPU’s within 0.09 nats a token.
Try it
dlm search qwen3.6-35b --ggufdlm serve --model-path models/Qwen_Qwen3.6-35B-A3B-Q4_K_M.gguf --speculative mtpThe model support page lists what loads, and the changelog has every other 0.5.0 change. See Model support and the Changelog.