benchmark-ollama-models
Skill by nerdai
Benchmarks Ollama Cloud models on the chapter notebooks' agent behaviour, such as real tool calls, skill activation and subagents finishing. It helps maintainers pick or re-validate the default Ollama Cloud model.
Install benchmark-ollama-models
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nerdai/llm-agents-from-scratch /tmp/llm-agents-from-scratch && mkdir -p ~/.claude/skills && cp -r /tmp/llm-agents-from-scratch/.claude/skills/benchmark-ollama-models ~/.claude/skills/benchmark-ollama-modelsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install benchmark-ollama-models in Claude Code
git clone --depth 1 https://github.com/nerdai/llm-agents-from-scratch /tmp/llm-agents-from-scratch && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/llm-agents-from-scratch/.claude/skills/benchmark-ollama-models ~/.gemini/antigravity-cli/skills/benchmark-ollama-modelsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install benchmark-ollama-models in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets out a procedure for choosing the default Ollama Cloud model for the chapter notebooks. It runs the benchmark script at _scripts/benchmark_models.py. The script records whether each notebook ran without errors and whether it behaved, meaning it met every check in its expectations table for that chapter. The source says models should be ranked by behaviour, because a notebook can finish while the model gets the lesson wrong.
The procedure has two stages. Stage 1 screens every model on chapters 03 to 07, with extra runs of chapter 04. Stage 2 runs the shortlist three times on chapters 04 to 09. The skill then covers checking the pick on skipped chapters, switching the default in code and docs, and re-recording the notebooks. It is written for maintainers of this book repository.
Written from the project's SKILL.md and checked against it.
What it can do
- List modelsLists the Ollama Cloud models to benchmark using the benchmark_models.py models command.
- Stage 1 screeningRuns every model on chapters 03 to 07 and repeats chapter 04 twice, in parallel.
- Stage 2 shortlist runRuns shortlisted models three times on chapters 04 to 09, including the approval gate in chapter 08.
- Summary rankingProduces a summary of results so models can be ranked by behaved score, then speed.
- Default switch checklistLists the code, peer, docs and notebook re-recording steps needed to change the default model.
What you need
- Ollama Cloud API keys in a .env file
- uv to run the benchmark script
- The book repository with the chapter notebooks
Try asking
- Benchmark the Ollama Cloud models on the chapter notebooks
- Run stage 1 screening on chapters 03 to 07 for every cloud model
- Summarise the stage 2 results and name the top model and a backup
Good to know
- Stage 2 takes 20 to 30 minutes, and chapter 09 alone takes 2 to 5 minutes per run.
- Runs must use an isolated HOME, because user-level skills change agent behaviour.
- A single run proves little, so three runs are used for decisions about the default.
- Some examples, such as goodnews_mcp and subagent_with_mcp_tool, need the real HOME.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/benchmark-ollama-models/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to benchmark-ollama-models
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
benchmark-ollama-models: common questions
Why does this benchmark rank models by behaviour instead of pass or fail?
The source says a notebook can run to completion while the model fakes tool calls or fails a subagent. The script records both whether a notebook ran and whether it behaved.
When should the Ollama Cloud default model be re-validated?
The source says to run it before changing the Ollama Cloud default in make_llm(), when a cloud model is retired, or when asked to compare cloud models on the notebooks.
What is the current default according to the history table?
The source records deepseek-v4.1-flash as the 2026-10-11 default, with glm-5.2 named as the backup.
How do I install benchmark-ollama-models?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is benchmark-ollama-models free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is benchmark-ollama-models safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to benchmark-ollama-models?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
