Nov 04, 2026 · AI Systems · 6 min read

Designing Reproducible Local Evaluation Harnesses for Small Language Models

Public benchmarks rarely predict whether a 7B–14B local model will survive messy extraction, classification, and tool-calling workflows. A lightweight local harness running 200 golden cases in under three minutes catches regressions far earlier than manual spot-checking.

Three Layers of Verification

First, enforce strict structural validation (JSON Schema or Pydantic) before scoring semantics. A model that produces insightful text wrapped in broken markdown fences still breaks downstream automation. Second, pair deterministic assertions—exact entity matches, numeric tolerances, and forbidden-field checks—with a narrow rubric judge only for open-ended prose.

Third, log runtime telemetry alongside quality scores. Measuring time-to-first-token (TTFT), decode tokens per second, and peak KV-cache allocation per prompt length prevents silent latency regressions when upgrading inference engines or changing context window defaults.

{
  "case_id": "extract-spec-042",
  "temperature": 0.0,
  "seed": 42,
  "required_keys": ["model_code", "dimensions_mm", "compatibility"],
  "max_latency_ms": 1800
}

Keeping the eval dataset in plain JSONL under version control lets every prompt edit or quantization swap produce a clean diffable report in CI.