- Category: C. AI Engineering & LLM Ops
- English term: Benchmark-Driven Model Selection
- Related: Task-Specific Benchmark · Model Cascade and Routing · Local-First (Local Pipeline) · Quantization · Mutual Exclusion (Mutex) Lock
General Meaning
Relying solely on public leaderboard composite scores or nominal parameter counts when selecting an LLM often leads to disappointing production performance. Actual inference speed and accuracy vary dramatically depending on the inference framework, quantization format, host memory bandwidth, target language, and prompt structure.
Benchmark-Driven Model Selection runs domain-relevant benchmarks on the actual target hardware and dynamically chooses models by comparing measured accuracy, tokens per second, and memory footprint. Grounding decisions in objective measurement logs ensures reproducibility and accountability.
Why It Matters
- Matching hardware characteristics: Optimal model sizes and quantization formats differ depending on the chipset (such as Apple Silicon) and installed unified memory.
- Avoiding the composite score trap: A model scoring high on general trivia benchmarks is not necessarily reliable at strict JSON adherence or numerical extraction.
- Detecting regressions immediately: Empirical testing immediately catches accuracy drops on specific tasks caused by model version updates or quantization changes.
How the Site Factory Uses It
In the Site Factory, operational rule K100 (select each Mac's model per task from the latest empirical benchmarks) governs model selection rather than hardcoding fixed model names. Selection uses empirical data measured on the exact machine running the job (Mac mini, Studio 1, or Studio 2), prioritizing accuracy (correctness rate) first and comparing inference speed (tok/s) or memory fit only when accuracy is tied.
Verification checks not just the model name but the exact digest (content hash) to ensure identity. When borrowing capacity on another Mac, the model is re-selected using the target Mac's benchmark data, and once a model is chosen at the start of a job, it is never swapped mid-task. Empirical data is continuously collected by the 24/7 in-house benchmark project (mac-llm-bench, published at llmonmac.com), and newly released models are never deployed to production jobs until they pass on-device benchmarks.
Caveats & Operational Rules
- Never reuse metrics from a different machine: Because Mac mini (16GB) and Mac Studio 2 (96GB M5 Ultra) have different memory bandwidth and concurrency loads, always consult measurements taken on the exact host machine.
- Never choose by speed alone: Fast inference is useless if the model breaks JSON contracts or mis-extracts figures; the Site Factory always prioritizes accuracy first.
- Never hardcode fixed model names: Embedding a specific model name (such as an older
gemma4:12b) as a constant based on past habits violates K100.
Related Terms
- Task-Specific Benchmark
- Model Cascade and Routing
- Local-First (Local Pipeline)
- Quantization
- Mutual Exclusion (Mutex) Lock
References
- Book: Mark Richards and Neal Ford, "Fundamentals of Software Architecture", Chapter 4 (Architecture Characteristics Defined)
Verified: 2026-11-08