TANDEM.CPP: a 266 GB model on a 16 GB VRAM card — up to 14.2 tokens/s

DeepSeek 4.1 Flash weighs 266 GB — it will never fit in a consumer graphics card. Yet tests from fall 2026 show something different: a card with 16 GB of VRAM, 64 GB of RAM, and a fast SSD generate up to 14.2 tokens/s on this model. The secret is not miracle compression but data-flow management: TANDEM.CPP turns spare video memory into a cache of individual experts, so only the data needed right now travels through the slow tiers of the system. We break down how this hybrid scheme is built: the memory ladder, the model’s design, the numbers on three engines, the llama.cpp patches, Store mode, and the practical limitations.

The memory ladder: 896, 51, and 7 GB/s

The speed of a local LLM is determined not by the amount of memory but by the “road” the data travels to reach the compute unit. On the test system (an RTX 5070 Ti with 16 GB of VRAM, 64 GB of RAM, a fast SSD) it looks like this: video memory is about 896 GB/s, dual-channel DDR4 up to 51 GB/s in theory, and a fast SSD around 7 GB/s. Each next tier is 7–18 times slower than the previous one, and generation speed most often comes down to weight reads: while the data is in transit, the compute unit sits idle.

From this follows the main principle of hybrid schemes: keep the data in demand higher up the ladder, and read from the lower tiers only what the current token needs. The entire difference between the engines in this article lies in how they decide what to keep at the top and what to leave at the bottom.

With DeepSeek 4.1 Flash the math is harsh: expert weights are about 139 GiB — roughly twice the installed 64 GB of RAM. A significant part of the model lives on the SSD, cache misses are especially costly, and in this configuration the storage matters almost as much as the graphics card. If you are still picking hardware for a similar model, calculate the “expert weights versus RAM” ratio before buying: when the weights are twice the memory, the SSD becomes part of the compute system, and skimping on it is not an option. And if you are still choosing which open model is worth your hardware at all, walk through the open-model decision tree.

What is inside a 266 GB model

DeepSeek 4.1 Flash is an MoE model: 40 layers, 384 experts in each, and only 6 are engaged per token — the remaining 378 idle at that moment. How it differs from the other models in the lineup is covered in the DeepSeek lineup guide. The main block takes about 155 GB (about 2.25 bits per weight on average when quantized), and the n-gram tables take roughly 111 GB: the model accesses them selectively, so they can stay mapped on the SSD and be read as needed. Expert weights are about 139 GiB, and a rough estimate of consumption is 2.2 GiB per token: six experts out of 384 is around 1.5% of the expert portion (the authors stress that the layers are compressed unevenly, so this is precisely an estimate).

The quant’s authors recommend the IQ 2 XS format: even more compact, and on their reasoning tests it matched the original. True, these are the compression authors’ own measurements — we return to quality below.

Then the strategies diverge. Stock llama.cpp (the October 28 build in the test) acts head-on: the mandatory components go to the GPU first, and the remaining VRAM is filled with whole expert layers — covering all 384 experts of a layer, although a token uses only six. TANDEM.CPP lays out the model differently: expert weights are stored in RAM, and the spare video memory becomes a cache of individual experts — the recently used ones. Each request to an expert either hits the cache or misses, and then the data travels up from the lower tiers of the ladder.

The numbers: 7.4 → 10.4 → 14.2 tokens/s

On an RTX 5070 Ti with 16 GB of VRAM and 64 GB of RAM, the same model as of fall 2026 runs at different speeds: stock llama.cpp — 7.4 tokens/s, Strata — 10.4, TANDEM.CPP — 14.2 (13.3 on a rerun). Time to first token dropped from ~14 seconds to 6. On an RTX 5090 with 128 GB of RAM the gap is wider: 11.5 versus 33.1 tokens/s — almost threefold.

Systemllama.cppStrataTANDEM.CPP
RTX 5070 Ti, 16 GB VRAM, 64 GB RAM7.4 tokens/s10.4 tokens/s14.2 tokens/s (13.3 on a rerun)
RTX 5090, 128 GB RAM11.5 tokens/sno measurements33.1 tokens/s

It is useful to estimate the read ceilings for 2 GiB per token (the estimate from the previous section): from the SSD it is about 3 tokens/s, from RAM a bit over 20, from VRAM hundreds (data transfer alone, with no compute costs). The baseline 7.4 tokens/s of llama.cpp lies between the SSD and RAM limits — meaning part of the experts was being read straight from the drive. Quality did not degrade on the fly: on a small sample of a math benchmark, all configurations solved 39 or 40 of the first 40 tasks correctly.

The llama.cpp patches #29887 and #30966

The same mechanisms have landed in llama.cpp itself. Patch #29887 from October 7 adds an expert cache in VRAM: it is off by default and enabled with a separate parameter — check the exact name in the patch description and in llama-server –help of your build. On the RTX 5090 the gain is more than twofold: from 38.8 to 67.8 tokens/s. A detail worth knowing when comparing numbers: the patch was accepted three weeks before the llama.cpp version that TANDEM was compared against, and the TANDEM readme does not say whether the cache was enabled in the baseline speed measurement.

Patch #30966 from November 7 adds handling of part of the cache misses directly on the CPU, without copying weights across PCIe. With a cache of about 6 GB, speed rose from 24 to 47.6 tokens/s. The optimization has a boundary: with a 19 GB cache the processor started getting in the way — 65.5 tokens/s without CPU handling versus 54.1 with it. The share of load given to the CPU will have to be tuned for your system: the inflection point is different for every machine.

A practical quirk: with the expert cache enabled, the result of even greedy decoding can differ between reruns — the same prompt will not necessarily produce a bit-identical answer. Keep this in mind when comparing configurations: one run is not enough.

Store mode and the project’s limitations

In newer TANDEM.CPP builds a Store mode appeared: video memory and a pinned region of RAM merge into a single cache, and the missing data is read from the drive — with loading able to run in parallel with computation. Store makes it possible to run a model with weights noticeably larger than the RAM. An early build from November 1 ran on a modest i5-12400 with a model three times the RAM — and there the optimization turned into a slowdown: 6 versus 6.86 tokens/s for llama.cpp. It also matters that Store appeared after the 14.2 tokens/s tests: the entire gain in the table above cannot be credited to it.

The limitations are strict: Linux only, NVIDIA first and foremost, a single user; Windows is not supported. An independent test of the AMD adaptation (on a Qwen-family model) found no advantage over the previous configuration.

As for quality, the two-bit quant is so far confirmed only by the compression authors’ measurements: 99.8% of the original’s average score is retained, GPQA Diamond — 90.4 versus 90.9 for the uncompressed version. The KL divergence has not been published, there are no independent checks — treat the numbers from the compression authors with caution.

Frequently asked questions

Does TANDEM.CPP work on Windows? Not yet: the project runs only on Linux and is built for NVIDIA first of all. On Windows the practical path is current llama.cpp with patches #29887 and #30966.

Will you get 14.2 tokens/s on any system? No. There is no direct test of TANDEM against current llama.cpp with tuned cache and CPU offload on one system; the readme does not say whether the cache was enabled in the baseline speed measurement. On different hardware the number will be different — treat it as a reference point for this configuration, not a promise.

What matters more — the card or the SSD? If the expert weights are twice the RAM (139 GiB versus 64 GB), the SSD becomes part of the compute system — skimping on it is not an option: the difference between a 7 GB/s drive and a slow disk shows up directly in tokens/s here.

Does the cache change answer quality? In the available check — no: all configurations solved 39 or 40 of the first 40 tasks of the math benchmark. But reproducibility suffers: with the cache enabled, even greedy decoding can give different answers between runs.

Beating a 266 GB model is not about fitting it in, but about not hauling through the system data it does not need right now. All figures are for fall 2026, and on another configuration they will be different. Action: update llama.cpp, enable the expert cache from patch #29887, tune the CPU-handling share from #30966, and take measurements on your own hardware — before installing TANDEM.CPP. If the build is still in the planning stage, start with the basic kit: the starter local LLM setup on an RTX 3060 12 GB is described separately. For another approach to the same problem, read the piece on Strata.

Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: