Find the LLM You Need

Quickstart • Install • Define a task • Run a comparison • Analyze results • Examples
Introduction
Teams often choose LLMs by vibes or minimal spot checking. Unfortunately, this process opens us up to missing real gaps in model performance or regressions, even when we're using expensive frontier models. Instead, we can apply statistical techniques to figure out which model is truly the best quality for our use cases.
The llm-workbench Python library guides data scientists and machine learning practitioners through the process of statistically evaluating multiple LLMs for performance on custom tasks, including agentic tasks. It's lightweight and flexible, but guides you on how to structure your work to get reliable and trustworthy results.
The toolkit supports the following tasks:
Install & Setup
Requires Python 3.12+.
Install it into your own project — the whole toolkit is one package with a single CLI:
uv add "llm-workbench[analysis]" # or: pip install "llm-workbench[analysis]"
Extras keep the base install light; add the ones you need:
| Install | Adds | You need it if… |
|---|
llm-workbench | Ollama + AWS Bedrock clients | you only use local Ollama or Bedrock |
llm-workbench[openai] | OpenAI SDK | you use openai/ or bedrock-mantle/ model ids |
llm-workbench[anthropic] | native Anthropic SDK | you use the anthropic/ client |
llm-workbench[analysis] | pandas / scipy / statsmodels / matplotlib | you run power or analyze — most users want this |
Combine them as needed, e.g. uv add "llm-workbench[analysis,anthropic]".
Using conda instead of uv? It works, with a few project-specific caveats — see Installing with conda.
Everything is driven by one CLI, llm-workbench (verify the install):
llm-workbench --help
The workflow follows the sections below: define your task → create evals → run a small pilot → size the study with power analysis → build the full test set → run the comparison → analyze the results.

Read on to learn how to use it for all these steps.
Quickstart (scaffold a starter and run it)
llm-workbench init writes a tiny, self-contained example into your current directory — a
general-knowledge Q&A dataset (dataset.jsonl), a prompt template (prompt.txt), and a
judge eval (evals_kit/example-helpfulness/). These are yours to keep and edit, so you see
the whole loop before wiring up your own task and data.
llm-workbench init # scaffolds prompt.txt, dataset.jsonl, evals_kit/example-helpfulness/
1. Smoke test with zero credentials. The mock/echo provider just echoes the prompt,
so this needs no API keys — it proves the pipeline runs end to end (no judge, so no scores):
llm-workbench run compare \
--prompt-template prompt.txt --dataset dataset.jsonl \
--model mock/echo --eval example-helpfulness --out-dir runs/example
2. A real local comparison with Ollama. Pull a couple of local models
(ollama pull llama3.1 && ollama pull mistral), then compare them and use one as the judge
to actually score answers:
llm-workbench run compare \
--prompt-template prompt.txt --dataset dataset.jsonl \
--model ollama/llama3.1 --model ollama/mistral \
--eval example-helpfulness --judge-model ollama/llama3.1 --out-dir runs/example
llm-workbench analyze runs/example --reference ollama/llama3.1 # needs the `analysis` extra