Zuhal Karadavut
Theme

LLM inference, evaluation and retrieval

release-gate

May this candidate model replace the current release, and if not, why? And what should the answer be when the benchmark cannot tell?

Answer

On the real results of sql-under-compression it holds q4_k_m: 59 questions lost and 26 gained against f16 (p = 0.00045), more than the 1-point policy allows, although it is 2.6 times as fast. q8_0 ships. q5_k_m gets cannot tell: no loss is shown, but with 34 differing questions a loss of 1 point could hide in that run. 134 tests pass in CI.

Lost and gained against f16, and the decision (questions)
← lostgained →q8_0 ship65data/results-full-dev/q8_0.jsonq5_k_m cannot tell1420data/results-full-dev/q5_k_m.jsonq4_k_m hold5926data/results-full-dev/q4_k_m.json

How it was measured

  • The app pairs a candidate with the current release question by question. Only the questions where they differ count: lost (current right, candidate wrong) and gained (the reverse). The exact two-sided sign test says how likely a split this uneven is if both are equally good.
  • Hold means a loss is shown and it is larger than the policy allows. Cannot tell means no loss is shown, but the run could not have shown a loss of the allowed size either. Ship is everything else.
  • For every number of differing questions the app computes the smallest net loss the test could call significant: 9, 14 and 21 questions for q8_0, q5_k_m and q4_k_m. That number decides between ship and cannot tell.
  • Speed and memory are single measurements, so they only give ship or hold. The default policy: at most 1 point of accuracy loss, at least 1.2 times the speed, at most 4 GB of peak memory, significance level 0.05.
  • Tests: 118 backend tests and 16 frontend tests. CI also starts the app with docker compose, as the quick start does, and asks it for the q4_k_m decision, which must be hold.

Proof

Every file is pinned to the commit the numbers come from, so the links cannot drift.

Reproduce it

docker compose up --build
pytest
cd frontend && npm ci && npm test

The app then runs on localhost. The files in data/ are copies of the benchmark's result files, the same apart from line endings.

The repository on GitHub

Limits

  • The gate compares the observed loss with the allowance. It is not a formal non-inferiority test.
  • One JSON file is the release store, for one process. No authentication.

Built with

  • Python
  • FastAPI
  • React
  • TypeScript
  • Vitest
  • Docker
  • GitHub Actions