Racks & WattsLOCAL HARDWARE / CLEAR PICKS

Local AI

Run a model bigger than your VRAM: MoE offload and the memory worth buying

Choose RAM, VRAM or NVMe for local MoE models. Learn llama.cpp expert offload, the tmpfs catch and which memory upgrade fits your workload.

Unbranded computer cards, memory modules and storage on a warm-lit workbench

OUR PICKS / YOUR SETUP

Find your fit.

Buy system RAM for routed-expert capacity, VRAM for resident hot work, and NVMe for model files. A RAM disk uses the RAM you already own.

  • Expert selection16 of 896 routed
  • RAM shortlist2×48GB DDR5
  • GPU routes16GB or 24GB

How we evaluate hardware.

YOUR NEXT PROJECT / THE GEAR

Parts list

  • G.SKILL Flare X5 96GB DDR5-5600 kit

    Choose this matched 2×48GB kit when its exact part number matches your board and CPU support list.

    Check price on Amazon
  • ZOTAC RTX 3090 Trinity OC 24 GB — Renewed

    Choose for workloads needing more than 16 GB on one NVIDIA card.

    Check price on Amazon

Buy more system RAM when routed experts are the part that will not fit. Buy more VRAM when the work you need every token—or a dense model and its context—is spilling out. Mixture-of-experts models make that distinction worth real hardware. A giant parameter count no longer means every weight has to sit on your graphics card, but the rest of the model still needs a home.

Specs and behaviour from the makers and project docs; the Optane result is the builder’s own measurement.

Quick verdict: buy the missing tier

  • More room for CPU-side experts: a matched 96GB DDR5 kit. Start with G.SKILL Flare X5 for an EXPO-capable platform or Kingston FURY Renegade for an XMP shortlist.
  • More GPU-resident room: the ZOTAC RTX 3090 Trinity OC Renewed gives you 24GB on one card. Plan its power, cooling and condition terms as part of the purchase.
  • A 16GB desktop or slim workstation: ASUS Dual RTX 5060 Ti for a conventional GPU box; PNY RTX 2000 Ada for a low-profile, 70W card.
  • Somewhere to keep the model: Samsung 990 PRO 2TB for a compatible NVMe slot. Storage capacity gets the files onto the machine; RAM and VRAM determine how much stays close to the compute.

Our whole-machine local-LLM guide covers GPU desktops versus unified-memory machines. This guide answers the next question: which bits can you move out of VRAM without moving the whole job off the GPU?

What actually lives where?

A dense model uses its dense weights for every token. An MoE replaces some feed-forward work with a router choosing among many expert networks. Kimi, DeepSeek, Qwen3-MoE and GPT-OSS belong to this broad family, with different layouts and runtime support.

For a hybrid setup, prioritise GPU space for attention, dense feed-forward layers, shared experts, the KV cache and compute buffers. Those are the frequently used components you want close to GPU compute. Keep the bulky routed-expert tensors on the CPU side when they exceed the remaining VRAM. Shared experts run alongside the selected routed experts; “shared” does not mean they are cold storage.

The important distinction is placement versus execution. With llama.cpp’s CPU expert placement, selected expert work can execute on the CPU, reading system memory, while the GPU handles its assigned work. You exchange intermediate activations between devices. You do not automatically copy every selected expert to the GPU for every token. Current llama.cpp also documents an optional GPU expert cache that can upload experts on misses; that is a separate mechanism.

The project’s runtime documentation is the reference for those controls. Start with the simple CPU-expert route, then decide whether caching earns its VRAM.

The big-model arithmetic: 2.8T total, 104B active

The Kimi K3 model card lists 2.8 trillion total parameters, 104 billion activated parameters, 896 routed experts, 16 selected routed experts per token and two shared experts.

Here is the arithmetic, using decimal GB and a deliberately simple four-bit weight assumption:

Question Calculation Result
How much of the routed-expert pool is selected? 16 ÷ 896 × 100 1.79%
How much of the total parameter count is activated? 104 ÷ 2,800 × 100 3.71%
Raw storage for all weights at four bits each 2,800 billion × 4 ÷ 8 1,400GB
Four-bit byte equivalent of the active parameter count 104 billion × 4 ÷ 8 52GB

The first two percentages have different denominators. The shared experts, attention and other active components help explain why “16 of 896” is not the same fraction as “104B of 2.8T”. Add the two shared experts to the execution picture, not to the count of selected routed experts.

Add room for quantisation scales, metadata, runtime buffers and context memory. The 52GB figure expresses the active parameter count as four-bit bytes; reuse, caching, tensor placement and quantisation determine the traffic.

Sparsity saves repeated work: the router selects a fraction of the expert pool for that token. It does not delete the other experts. A later token can choose different ones, so their weights must remain accessible somewhere. That is the trick—and the memory bill.

The memory ladder, with the tmpfs catch

Think VRAM → system DDR5 → explicitly staged RAM-backed files → NVMe-backed mmap → SATA-backed mmap as a placement checklist. The middle two use the same physical RAM; tmpfs is not an extra capacity or bandwidth tier.

Tier What it buys you Where you hit the wall
VRAM GPU-local weights, context state and buffers Model placement plus KV cache exceeds the card’s capacity
System DDR5 CPU-resident routed experts and host-side work Available capacity, memory channels and CPU expert throughput
tmpfs / RAM disk Explicitly stage selected files in RAM instead of relying on slower backing storage It consumes the same RAM the application needs; tmpfs can swap
NVMe with mmap Large model files and file-backed access, with hot pages cached in RAM Repeated storage reads when the working set exceeds available RAM
SATA with mmap Reuse existing model storage or keep an archive Storage becomes a generation bottleneck if missing pages keep coming from it

A memory-mapped NVMe file can already have its active pages in the OS cache, as the Linux page-cache overview explains. Copying that file into tmpfs does not make DRAM faster. It can help when it changes which data stays in RAM instead of on a slower backing tier; it can hurt when the copy crowds out useful memory.

The Linux tmpfs documentation explains its virtual-memory and swap behaviour. Count a staged file against your RAM budget, keep its original on persistent storage, and watch for swapping. A “RAM drive” backed by busy swap has missed the point rather spectacularly.

The Optane example, credited properly

One builder reports 3.11 tokens/sec on Kimi K3 Q2_K with two RTX 3090s and second-generation Optane PMem, up from 2.20 after moving 414GB of an 865GB model into tmpfs: a calculated 41.36% gain.

That is a much larger memory machine than a 96GB desktop. Optane PMem in this build is also different from an ordinary NVMe SSD. Take the useful lesson—placement changes the bottleneck—rather than treating a pair of graphics cards as the whole recipe.

DDR5: buy capacity before chasing a profile

These are matched desktop UDIMM kits. Choose a kit and DIMM configuration on your board’s support list for your CPU and BIOS, then stability-test its profile. The 96GB DDR5 guide covers that platform work, including why desktop DIMMs do not fit SO-DIMM mini PCs.

Pick by fit Exact kit Maker-rated profile
EXPO-capable platform: G.SKILL Flare X5 F5-5600J4040D48GX2-FX5, 2×48GB DDR5-5600, CL40-40-40-89, 1.25V; EXPO and XMP
XMP platform: Kingston FURY Renegade KF560C32RSK2-96, 2×48GB DDR5-6000, CL32-38-38, 1.35V; XMP

G.SKILL’s specification and Kingston’s datasheet supply those profiles. On an illustrative two-channel, 64-bit-per-channel desktop, the theoretical transfer ceilings are:

  • 5,600 million transfers/sec × 16 bytes = 89.6GB/sec.
  • 6,000 million transfers/sec × 16 bytes = 96GB/sec.

That gives the faster profile 7.14% more theoretical transfer bandwidth. Start with a stable 96GB configuration, then compare profiles on your workload.

For an illustrative host budget, 96GiB installed − 16GiB reserved for the OS and runtime = 80GiB for host-resident weights. That budget must include any tmpfs copy; it is not enough for the builder’s 865GB model. For scale, raw four-bit weights are 16GB for 32B parameters or 35GB for 70B, before overhead, and MoE capacity is based on total parameters—not only the active count.

Check the G.SKILL 96GB kit on Amazon · Check the Kingston 96GB kit on Amazon.

VRAM: three different fits

Pick Why choose it here? Build requirement
ZOTAC RTX 3090 Trinity OC 24GB Renewed More resident model room on one GPU A case, PSU and cooling plan for this full-size card; use the selected Renewed offer’s terms
ASUS Dual RTX 5060 Ti 16GB A conventional desktop CUDA route for workloads fitting its memory Leave space for weights, context and runtime buffers within 16GB
PNY RTX 2000 Ada 16GB A low-profile, dual-slot card with a maker-rated 70W maximum Match bracket, slot clearance and workstation airflow

The GPU buying guide compares full-size cards; the low-profile guide covers slim machines. The PNY’s attraction is its physical and power fit, not more memory than the ASUS.

Two 24GB cards provide 48GB aggregate VRAM, but the runtime has to divide work and state between them. They do not become one contiguous 48GB card. Use the recorded two-GPU build for the slot and workload record, and the two-GPU PSU guide before adding another card.

Check the ZOTAC RTX 3090 Renewed on Amazon · Check the ASUS 16GB card on Amazon · Check the PNY low-profile card on Amazon.

NVMe: a home for the files, not pretend VRAM

Samsung 990 PRO 2TB is the storage pick for a compatible PCIe 4.0 ×4 M.2 2280 slot. Put model files here, leave free space for the conversions you actually keep, and use mmap where appropriate. Buy a larger SSD for more model files and more RAM to keep their working data resident.

The NVMe buying guide covers the drive’s app-pool fit and cooling. For inference, compare a cold load with a warmed run. If storage activity stays high during generation, the backing tier is still doing work that RAM could avoid.

Check the Samsung 990 PRO 2TB on Amazon.

Practical llama.cpp levers

Use a supported MoE GGUF and read your installed build’s --help. This single-GPU starting example keeps routed-expert weights from the first eight layers on the CPU, while requesting GPU placement for the remaining eligible work:

llama-cli -m model.gguf \
  --n-gpu-layers all --n-cpu-moe 8 \
  --ctx-size 4096 -n 128 \
  -p "Explain why a backup needs a restore test."

Increase the CPU-expert layer count when allocation fails; reduce it when more experts fit in VRAM. Use --cpu-moe to place all routed-expert weights on the CPU. The count refers to layers, not the number of selected experts per token.

For tensor-level control, --override-tensor accepts a name pattern and buffer type. The project’s expert-pattern form is:

--override-tensor '\.ffn_(up|down|gate|gate_up)_(ch|)exps=CPU'

Use that as an alternative to the broad CPU-expert option, and inspect the allocation log for the model’s actual tensors. Keep KV offload enabled while attention is on the GPU; context and concurrent requests still consume memory. Our context-length guide explains that bill.

For two GPUs, --split-mode layer --tensor-split 1,1 requests an equal proportion split; adjust proportions for unequal cards and available memory. Quantisation is the other big lever: choose a supported GGUF that fits the available tiers, then compare answer quality as well as speed. The four-bit arithmetic above is not a file-size prediction for every Q4 format.

Current builds also document --moe-cache-mib for an optional GPU cache and --moe-cache-cpu-share for CPU handling of cache misses. Start without that extra tuning. First record the build version, allocation log, model file, context and prompt; then change one placement setting and compare prompt processing, generation, RAM use and storage activity. Our tokens/sec versus response-time guide keeps those timings separate.

The buying decision

Buy more system RAM when a supported MoE’s CPU-side experts exceed available RAM and the next capacity step holds the working set. Buy another GPU when keeping a dense model resident—or making room for attention and long-context state—is the actual constraint, and the runtime supports your split. Use a smaller model when the larger one lives on a busy backing drive or takes longer to answer than the job can tolerate.

The win is not the largest model name on a screenshot. It is the model that fits your memory plan and finishes useful work. Start with the local AI hub if you are still choosing the machine; buy the missing tier once you know which one it is.

Sources & methodology

Where these facts come from.

Source dates are listed above.

As an Amazon Associate I earn from qualifying purchases.

Parts from this article

The gear, on Amazon

The models recommended above, with the specifications that matter for your choice.

EXPO-capable shortlist

G.SKILL Flare X5 96GB DDR5-5600 kit

Choose this matched 2×48GB kit when its exact part number matches your board and CPU support list.

2×48GB UDIMM5600 CL40EXPO + XMP
Check price on Amazon →

XMP shortlist

Kingston FURY Renegade 96GB DDR5-6000 kit

Choose this matched 2×48GB kit for an XMP-capable platform with room for a larger local model.

2×48GB UDIMM6000 CL32XMP 3.0
Check price on Amazon →

24 GB NVIDIA option

ZOTAC RTX 3090 Trinity OC 24 GB — Renewed

Choose for workloads needing more than 16 GB on one NVIDIA card.

24 GB GDDR6X350 W maximumRenewed
Check price on Amazon →

More headroom for a 14B quantized-model target

ASUS Dual RTX 5060 Ti OC 16 GB (DUAL-RTX5060TI-O16G)

Choose when your model and context need more room than 12 GB.

16 GB GDDR71 × 8-pin229 mm length
Check price on Amazon →

More model room

PNY NVIDIA RTX 2000 Ada 16GB (VCNRTX2000ADA-PB)

Fit 16GB of VRAM into a low-profile, dual-slot workstation without an auxiliary GPU power cable.

16 GB ECC GDDR670 WLow-profile, dual-slot
Check price on Amazon →

App / VM pool

Samsung 990 PRO 2 TB (MZ-V9P2T0B/AM)

Use this 2 TB, no-heatsink NVMe drive in a compatible slot or enclosure.

2 TB · PCIe 4.02 GB LPDDR41,200 TBW
Check price on Amazon →

Prepared by Racks & Watts.