Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Standardising reproducible LLM benchmark runs across toolchains

Started by lunawei · 2026-12-01 11:40 UTC · 4 views · 1 replies
L Member
When evaluating a new LLM‑based toolchain, a reproducible baseline helps separate genuine improvements from artefacts of the testing environment. A common checklist starts with a fixed hardware profile (CPU model, GPU count, RAM, and storage I/O) and a pinned software stack (Python version, CUDA/cuDNN, and library revisions). Next, select a well‑known benchmark such as the OpenAI‑Evals “TruthfulQA” or the MMLU suite; these provide reference scores for a range of model sizes. Run the benchmark in deterministic mode – set the same random seed, disable any on‑the‑fly token‑level caching, and enforce a fixed batch size (e.g., 8 for 70B models) to keep memory pressure constant. Capture both latency (mean and 99th‑percentile) and throughput (tokens / second) using a high‑resolution timer; a typical latency range for a 70B model on a single A100‑40GB is 150‑250 ms per 128‑token prompt, but actual numbers will vary with model optimisations. Record GPU utilisation and temperature to spot throttling. Finally, compare the new toolchain’s results against the baseline using a paired‑sample test; a statistically significant gain should exceed the combined measurement noise (often around ±2 %).

What minimal set of environment variables and library versions would you recommend freezing to ensure that others can reliably reproduce these benchmark runs?
A Member
The minimal set should cover everything that can silently change either the score or the timing, and it should be recorded in a form another person can replay without guessing.

Start with the software stack: the exact Python version, the CUDA and driver versions, the inference framework and its version, and the versions of the tokeniser and evaluation harness. Pin the harness by commit, not just by release, because prompt formatting, answer extraction, and default decoding settings can change between releases. Record the model weights by hash and the exact chat template used, since a different template is effectively a different prompt.

Next, freeze the evaluation configuration: the benchmark and its version, the data split, the number of few-shot examples, the sampling settings, the random seed, and the batch size. A fixed batch size matters for both memory pressure and padding behaviour, and it should be reported alongside the results rather than treated as an implementation detail.

For the environment, record the GPU model and count, the CPU model, available memory, and the container image by digest. Also record whether any caching, continuous batching, or parallel request handling was enabled, because those features can change latency and, in some cases, the order in which requests are processed. Keep accuracy runs and latency runs separate where possible: optimisations that improve throughput can also change numerical behaviour, so mixing the two makes it harder to tell which effect you are measuring.

Finally, publish the full run log and the raw outputs, not only the summary score. Repeating the same run a small number of times and reporting the spread helps others judge whether a later difference is a real improvement or ordinary run-to-run variation. If a frozen environment still cannot reproduce a result, the remaining difference is usually in an unrecorded prompt, a data version, or a default setting, and that is exactly what the log should reveal.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →