Test log #001: a benchmark harness I can trust
Warm-ups, medians, prompt processing vs generation, and the flags I record so future results are comparable.
Most local-LLM benchmarks are not comparable. Different builds, different quantizations, different context lengths, one run after a cold start, and a number copied from a terminal without the flags that produced it. I want this site to be better than that, so the first test is the harness itself.
What I record for every run
- Model file and SHA-256, so “Q4_K_M” cannot quietly become a different file.
llama.cppbuild hash, backend, and driver version.- Quantization and imatrix source, if any.
- Context size, batch size, and the exact offload flags.
- How many layers are on the GPU and how many are on the CPU.
- Prompt processing speed and generation speed, separately.
- Peak RAM and VRAM.
- Median of three runs after a warm-up run.
Why prompt processing and generation are separate
Prompt processing is compute-bound: the model reads the whole prompt in parallel. Generation is memory-bandwidth-bound: it produces one token at a time and waits for weights. A single “tokens per second” number hides which one you measured. If a result looks spectacular, it is often prompt processing.
Why medians, not best runs
The first run includes model loading, page-cache misses, and whatever the machine was doing in the background. A single hot run is not a stable measurement. Three runs after a warm-up, with the median reported, is a reasonable compromise for a one-GPU lab.
What comes next
The first real subject is a 30B-class mixture-of-experts model on this machine: what fits on the GPU, what has to stay in DDR4, and how much generation speed is left when the experts are spread across both. I will publish the table when I trust it.
If a number on this site looks too good, assume I measured prompt processing until proven otherwise.