Running Mixture of Experts (MoE) models on a used $1,000 eBay server has historically hit a hard bottleneck during prompt processing, known as prefill. Exactly how much server hardware and waiting time can a simple configuration file change actually save? In reality, the bottleneck is driven not by a shortage of silicon, but by unoptimized default software parameters. Tweaking the micro-batch size alone is enough to accelerate primary inference.
Across tests on eleven models ranging from 107 billion to 320 billion parameters, the median prefill speed increase reached +97% without purchasing new hardware.
Anatomy of bus idle time
When llama.cpp keeps MoE expert weights in RAM, it transfers them to the GPU over the PCIe bus for each micro-batch during the prefill phase. The root cause lies in the default value of this parameter (--ubatch-size), which stands at a mere 512 tokens.
Increasing ubatch-size to 2048 or 4096 cuts PCIe weight transfers by 4 to 8 times.
For long incoming contexts, such a microscopic step means continuous and redundant back-and-forth data duplication. The test hardware configuration included two Intel Xeon E5-2698 v4 processors with a total of 40 physical cores, 192 GB of DDR4 RAM, and two Pascal-architecture Quadro P5000 GPUs with 16 GB of VRAM each. The combined PCIe 3.0 bandwidth for both cards is roughly 20 GB/s, and under active CPU load, it drops significantly lower. The compute chips spent cycles sitting idle, waiting on data delivery.
The cost of acceleration and server crashes
Scaling the micro-batch size to 2048 or 4096 tokens allowed the testing of eleven models with expert weights stored in system RAM. Prefill speed gains ranged from +29% to +150%. Meanwhile, subsequent token generation speed remained unchanged.
One of the configurations crashed the entire server twice.
Free acceleration does not exist: the performance gain came at the expense of VRAM. Four models required shifting several expert layers back to the CPU, causing generation speeds to drop by roughly 4%, while one configuration crashed the entire server twice. To answer the hardware economics question: new accelerators are not required, but operational risks scale proportionally with bus and memory load.
The bottleneck for local inference on budget infrastructure is frequently not aging compute cores, but inefficient data exchange between system RAM and GPUs. Fine-tuning layer transfers unlocks hidden performance headroom, but walks a fine line on the edge of hardware instability.
What is your current infrastructure bottleneck: raw compute limits or memory bandwidth starvation?
What came before
Can legacy server hardware double its local inference speed without buying expensive accelerators? The real bottleneck turned out to be standard software presets moving data across the PCIe bus in tiny chunks rather than aging silicon.
Our stories: AVX2 Patch Cuts CPU LLM Batching Costs 10x (August 21); Llama.cpp Cuts On-Prem MoE Inference Costs with MTP (August 24).