agentleFS
MacroTechTitanMacroTechTitan/MaximusAI/skills/maximus-slm-eval/SKILL.md

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'.

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
  1. Distinctive:

    If the context in the eval is smaller than the context in production, the eval does not cover production.

    line 67
  2. Very specific:

    Throughput from someone else's GPU: Run llama-bench on yours.

    line 77

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

NeedSkill
Compare local models / quants on your tasks and boxthis skill
Eval strategy for a shipped product (PR / nightly / canary)maximus-eval-and-test
Tool-call failure rates specificallymaximus-slm-tool-calling (feeds this skill)
Choosing between cloud APIsmaximus-llm-model-selection
Picking candidates to test in the first placemaximus-slm-local-stack

Core workflow

  1. 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.
  2. 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.
  3. 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.
  4. Run quality side by side with promptfoo. Providers ollama:chat:<model> per candidate, one config, promptfoo eval, then promptfoo view. Model-graded llm-rubric assertions are allowed, but say which model graded, and do not let a candidate grade itself.
  5. Add standard tasks only when they answer the question. lm-evaluation-harness --model gguf against 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.
  6. Measure speed at the depth you will use. llama-bench reports prompt processing (pp) and generation (tg). Use -d so it measures at real context depth, not an empty cache. Five repetitions is the default; report mean ± stddev.
  7. 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.
  8. 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-bench on 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.