Local Model Evaluation Workflow: Scoring Several Models on the Same Prompts

The Short Answer: Who This Is For
The short answer: if you can send a curl request, you can build a workflow that scores several models on the same prompts. It suits anyone choosing between local models. Once the flow works, swapping prompts or adding a model needs no structural change.
It is not for scoring small local models directly against large cloud models, and it is not a formal benchmark for publication; the scores only mean something for your own use case.
What You Need
Install Ollama. On macOS or Linux, run curl -fsSL https://ollama.com/install.sh | sh in the terminal; on Windows, run irm https://ollama.com/install.ps1 | iex in PowerShell.
Use llama3.2 and qwen2.5 as the candidate models, pulled with ollama pull llama3.2 and ollama pull qwen2.5. Model names follow the model:tag format, and the tag defaults to latest when omitted. Also prepare a prompt list and a rubric: 5 to 10 prompts, and a rubric with four criteria — accuracy, completeness, conciseness, and format compliance — each scored 0 to 5, with the standard for each score written down in advance.
Step by Step
Run ollama --version to verify the installation, then run ollama pull llama3.2 and ollama pull qwen2.5. Once the downloads finish, run ollama run llama3.2 and chat for a sentence. The API address is http://localhost:11434.
Use a shell loop to call /api/generate for each model in turn, for example curl http://localhost:11434/api/generate -d '{"model":"llama3.2","prompt":"…","stream":false,"options":{"temperature":0}}'. Setting stream to false returns the full result in one response, and fixing temperature at 0 makes answers reproducible.
Collect the answers and speed data. Save each response's response field together with eval_count and eval_duration. Following the formula in the official API documentation, generation speed in tokens per second equals eval_count divided by eval_duration, multiplied by 10 to the power of 9. Record the scores in a table with columns for model, prompt, the four rubric scores, and generation speed.
For a speed-only check, use llama-bench: llama-bench -m model-file.gguf measures prompt processing over 512 tokens and generation over 128 tokens by default, reporting average tokens per second with a standard deviation; add -o json for JSON output. Note that it measures GGUF files, and Ollama does not hand out GGUF paths.
Common Problems and Fixes
Problem one: curl cannot connect to port 11434. First confirm the Ollama service is running: ollama list showing your downloaded models means the service is up. If you have just installed it and never started it, run ollama run with any model once, then retry.
Problem two: scores for the same prompt vary a lot between runs. Check whether temperature is fixed at 0; without that, the model answers differently every time. Problem three: one model is much slower. Check the returned load_duration; large models are slow on computers without a strong GPU, so switch to a smaller tag if needed, for example qwen2.5:1.5b.
Things to Watch
Data sent to a local call stays on your machine. The default configuration only listens on your own machine; if you need other devices on your local network to reach it, read the official documentation on environment variables, and do not expose the port to the public internet. Cloud models are called through ollama.com and require signing in or creating a key; never put keys in a code repository. Do not put real user information in evaluation prompts.
The steps in this article were checked against the official pages on 2026-11-19. If platform rules change, the official pages apply.
Tools mentioned
Sources
This article is compiled from the public sources above and does not reproduce the originals in full; see the official sources for details.