maximus-slm-eval
Skill1 starsChanged 4 months agoMITView on GitHub
Evaluate local models and quantizations on your own tasks instead of leaderboards. Covers building a task-specific test set, promptfoo side-by-side runs against Ollama, lm-evaluation-harness against a llama.cpp server for standard tasks, llama-bench for prompt/generation throughput at real context depth, quant-vs-quant comparisons, and a decision memo. Use for 'which local model is better for X', 'Q4 vs Q8 quality', 'benchmark my Ollama models', 'promptfoo', 'lm-eval-harness', 'llama-bench', 'is this SLM good enough'.
In this repository49 other files it gives its agents.
- core/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- file-opsSkill
- maximus-agent-designSkill
- maximus-ai-cost-controlSkill
- maximus-ai-data-pipelineSkill
- maximus-ai-fluency-for-buildersSkill
- maximus-ai-product-specSkill
- maximus-ai-safety-governanceSkill
- maximus-ai-ux-patternsSkill
- maximus-brainSkill
- maximus-build-featureSkill
- maximus-chain-of-verificationSkill
- maximus-code-reviewSkill
- maximus-contact-intelligenceSkill
- maximus-counterparty-discoverySkill
- maximus-debug-incidentSkill
- maximus-deep-research-proSkill
- maximus-deep-researchSkill
- maximus-design-specSkill
- maximus-devops-shipSkill
- maximus-eval-and-testSkill
- maximus-fine-tuningSkill
- maximus-fintech-paymentsSkill
- maximus-investigative-researchSkill
- maximus-k3-model-selectionSkill
- maximus-k3-self-hostingSkill
- maximus-literature-reviewSkill
- maximus-llm-model-selectionSkill
- maximus-local-research-assistantSkill
- maximus-local-research-assistantSkill
- maximus-mlops-deploySkill
- maximus-ollama-opsSkill
- maximus-openclaw-localSkill
- maximus-people-finder-recruiterSkill
- maximus-people-finderSkill
- maximus-plan-implementationSkill
- maximus-prompt-engineeringSkill
- maximus-python-scientificSkill
- maximus-rag-pipelineSkill
- maximus-replit-handoff-proSkill
- maximus-slm-local-finetuneSkill
- maximus-slm-local-stackSkill
- maximus-slm-tool-callingSkill
- maximus-transaction-analystSkill
- maximus-write-articleSkill
- memory-keeperSkill
- skill-templateSkill
- web-researchSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 67
If the context in the eval is smaller than the context in production, the eval does not cover production.
- Very specific: line 77
Throughput from someone else's GPU: Run llama-bench on yours.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Maximus — SLM Eval
A leaderboard tells you which model won someone else's exam. You are not taking that exam. This skill writes yours, runs every candidate through it on your hardware, and returns a decision with the evidence attached.
Purpose
Answer "is this local model (or this quant) good enough for this job, and which one should I run?" with measured quality, measured speed at realistic context, and an explicit statement of what was not tested.
Scope boundary
| Need | Skill |
| Compare local models / quants on your tasks and box | this skill |
| Eval strategy for a shipped product (PR / nightly / canary) | maximus-eval-and-test |
| Tool-call failure rates specifically | maximus-slm-tool-calling (feeds this skill) |
| Choosing between cloud APIs | maximus-llm-model-selection |
| Picking candidates to test in the first place | maximus-slm-local-stack |
Core workflow
- Write the question as a decision. "Pick the smallest model at ≥ 90% of Qwen3-14B's score on our extraction set, at ≥ 20 tok/s with 16K context on this laptop." A threshold turns a vibe into a result.
- Build the task set from real work. 30-100 cases drawn from actual inputs, including the hard and ugly ones. Prefer assertions that are checkable in code (exact field, regex, JSON schema, contains-citation) over model-graded ones. Hold out a slice you do not look at while tuning prompts.
- Pin everything that is not under test. The same prompt, temperature 0 (or a fixed seed), the same context size set via Modelfile, and the same runtime version. Record them all in the memo.
- Run quality side by side with promptfoo. Providers
ollama:chat:<model>per candidate, one config,promptfoo eval, thenpromptfoo view. Model-gradedllm-rubricassertions are allowed, but say which model graded, and do not let a candidate grade itself. - Add standard tasks only when they answer the question.
lm-evaluation-harness
--model ggufagainst a llama.cpp server measures loglikelihood tasks on the exact quant you will run. It is useful for quant-degradation checks, and weak evidence about your own task. - Measure speed at the depth you will use.
llama-benchreports prompt processing (pp) and generation (tg). Use-dso it measures at real context depth, not an empty cache. Five repetitions is the default; report mean ± stddev. - Compare quants explicitly. Q4_K_M vs Q5_K_M vs Q8_0 of one model on the same set. The quality delta is task-dependent, and this is the only honest way to know yours.
- Write the decision memo. A table (model, quant, pass rate, tok/s pp/tg at depth, peak memory), the choice, the runner-up, and what was not tested.
Rigor rules
- A pass rate on 30 cases has wide error bars. A two-case difference is noise, so say so.
- Report failures by category (hallucinated field, wrong format, refusal, truncation), not just a total.
- Re-run the winner once more end-to-end before declaring it. Temperature-0 outputs can still vary across runtimes.
- If the context in the eval is smaller than the context in production, the eval does not cover production.
Anti-patterns
- Quoting MMLU to pick a summarizer.
- Testing at 2K context, deploying at 32K.
- Letting the candidate grade itself.
- Changing the prompt between models. That tests the prompt.
- One run, one winner. Variance is real, even at temperature 0.
- Throughput from someone else's GPU. Run
llama-benchon yours.
Output
promptfooconfig.yaml and the test set, raw result exports, a llama-bench
table, and a one-page decision memo following examples/decision-memo.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

