Engineering record

AI Systems · 2026

GPU Inference Throughput Optimisation

Systematic throughput work on a single-GPU inference host: quantisation sweep, KV-cache budgeting and scheduler tuning, measured rather than assumed.

inferencethroughputbenchmarkingllama.cpp

Context

An inference host was delivering well below its theoretical token rate and stalling under concurrent load. The goal was sustained throughput without exceeding the 32 GB VRAM ceiling.

Method

Baseline measurement first: time-to-first-token, steady-state tokens/second, VRAM high-water mark and PCIe utilisation at four concurrency levels. Each subsequent change was benchmarked against the same prompt corpus.

Sweeps covered quantisation level, context length, KV-cache dtype, batch packing and thread affinity. Offload layers were adjusted per configuration and the resulting VRAM curve recorded so headroom stayed predictable.

Outcome

Steady-state throughput improved substantially with no increase in peak VRAM. The largest single gain came from KV-cache dtype and context budgeting rather than weight quantisation, which contradicted the initial assumption. A repeatable benchmark harness now guards against regressions.

Notes

Figures are from this specific host and prompt distribution; they do not transfer to other GPUs unchanged.