1def run(grade):2 score = 03 for q, ref in tests:4 ans = model(q)5 score += grade(ans, ref)6 return score / len(tests)JUDGERELEASE?BLOCKEDLLMTRAINING TEXTexactlooserefusehelpRED TEAM???????????
Khaki tray: held-out test questions · salmon tray: safety promptsRose block: the model under test · cells: the scoresCards: prompts · blue ? = not graded, green check = pass, salmon cross = failAt the back, the eval harness (a short Python loop), a judge and the release gate. In the middle, five held-out test questions, the model under test and a safety set of harmful requests and harmless look-alikes. In front, the training text, the score board and the red team. Exact match scores 0.60, a looser judge 0.80; the model refuses only 0.50 of harmful requests and helps with 0.50 of harmless ones, so the gate blocks the release. The model's answers here are recorded by hand to show typical mistakes; a real harness calls the model through its API. The graders, scores and gate are real Python: run it and it prints the numbers in the figure.

Measuring quality

  1. A language model can answer anything, so how do we know it is good, or safe? Nobody can read every answer. An evaluation (eval) is a fixed set of test prompts with known good answers, run and scored by a program.

Honest scores

Safety

What happens

;; step 1/10 · why
eval = test prompts + good answers + a scoring program

it answers two questions:
  quality  does the model get things right?
  safety   does it refuse what it must refuse,
           and still help with harmless requests?

The model's answers here are recorded by hand to show typical mistakes; a real harness calls the model through its API. The graders, scores and gate are real Python: run it and it prints the numbers in the figure. Spotting a refusal by its first words is crude: real safety evals use a trained classifier or a judge model, because a model can refuse politely in many ways, or say "Sorry" and then comply.