EvalPlus
Measure how well a model writes correct Python for HumanEval+ (164 tasks) and MBPP+ (378 tasks), where each task carries far more tests than the originals, so brittle solutions that pass the old tests are caught. EvalPerf adds a code-efficiency score.
Scope: this one product: install, generate, sanitize, execute safely, read pass@k, update, troubleshoot. Generic benchmark suites belong to lm-evaluation-harness and lighteval; repository-level coding-agent evals belong to swe-bench. Eval strategy and gates belong to llm-evals.
Work through the steps in order. Load a reference only when a step names it. Verified against EvalPlus 0.3.1 (2026-10-11). EvalPlus is a stable benchmark with infrequent releases (see references/install.md): both the datasets and the numbers are comparable across your own runs only on one version.
Discover first
Read-only; nothing here prints secrets.
python3 --version # >=3.9
command -v evalplus.evaluate evalplus.codegen docker
pip show evalplus 2>/dev/null | head -3
ls evalplus_results/ 2>/dev/null # default output root
docker image ls ganler/evalplus 2>/dev/null
URL="${LLM_BASE_URL:-http://localhost:8000/v1}"
[ -n "${OPENAI_API_KEY:-}" ] && echo "OPENAI_API_KEY set" || echo "OPENAI_API_KEY not set"
curl -fsS ${OPENAI_API_KEY:+-H "Authorization: Bearer $OPENAI_API_KEY"} "$URL/models" | jq -r '.data[].id'
Decision flow
- Not installed:
references/install.md (venv, pinned, optional extras).
- Model is behind an OpenAI-compatible server (vLLM, llama.cpp, LiteLLM, SGLang):
--backend openai --base-url. Chat prompts only; mind the fixed 768-token cap (references/run-and-backends.md).
- Reasoning model: the cap and the thinking text break scoring; read the reasoning section in
references/run-and-backends.md first.
- Local weights, no server:
--backend vllm or hf (needs the matching extra).
- Running generated code: Docker image or disposable VM, never your workstation (
references/execution-and-evalperf.md).
- Efficiency of generated code: EvalPerf (
references/execution-and-evalperf.md).
- Comparing two models or a quantization: same version, backend and decoding;
references/combos/quant-code-check.md.
- Odd scores, timeouts, empty outputs:
references/troubleshooting.md.
Rules
- Pin the version.
pip install "evalplus==0.3.1"; pip install ... @ git+https://github.com/evalplus/evalplus follows a moving master.
- Execute in a sandbox.
evalplus.evaluate runs model-written code with your privileges. Use ganler/evalplus in Docker (pinned digest or tag, not latest for decisions), or a throwaway VM. Never on a machine with secrets or mounted credentials.
- Greedy for comparisons.
--greedy (temperature 0, one sample) gives pass@1 that is reproducible enough to compare; sampling (--n-samples, --temperature) is for pass@k.
- Report base and plus. "Base" is the original test set, "Base + Extra" the EvalPlus tests. The gap between them is the signal.
- One prompt mode per comparison. Base vs chat prompts differ;
--force-base-prompt for base models that ship a chat template.
- Don't trust truncated runs. Check the sample count (164 for HumanEval+; 378 for MBPP+ v0.2.0) before reading a score.
- Keys from the environment.
OPENAI_API_KEY (or ANTHROPIC_API_KEY, GOOGLE_API_KEY) from a 0600 file, never inline. For local servers the key defaults to none.
- Keep the exact command and version with every score.
Workflows
1. HumanEval+ and MBPP+ against an OpenAI-compatible server
2. All-in-one local run
3. Code efficiency (EvalPerf)
4. Compare models or quants
Reference index
references/install.md: requirements, extras, status and maintenance, Docker image.
references/run-and-backends.md: codegen/evaluate/sanitize, backends, flags, sample formats, reasoning models.
references/execution-and-evalperf.md: sandboxing, timeouts, memory, parallelism, EvalPerf.
references/combos/quant-code-check.md: code-ability check for a quantized or swapped model on vLLM.
references/troubleshooting.md: symptoms and fixes.
references/updating.md: upgrades and dataset versions.
Companion skills
vllm: usual server for --backend openai. Install: npx skills add ScaleDockHQ/llm-skills --skill vllm.
lm-evaluation-harness: other public benchmarks on the same endpoint. Install: npx skills add ScaleDockHQ/llm-skills --skill lm-evaluation-harness.
swe-bench: repository-level issue resolution. Install: npx skills add ScaleDockHQ/llm-skills --skill swe-bench.
llm-evals: eval strategy, gates, decision records. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-evals.
reasoning-models: thinking-token handling. Install: npx skills add ScaleDockHQ/llm-skills --skill reasoning-models.
model-quantization: producing the quant under test. Install: npx skills add ScaleDockHQ/llm-skills --skill model-quantization.
1---2name: evalplus3description: Score code-generation LLMs on HumanEval+, MBPP+ and EvalPerf with EvalPlus (evalplus.evaluate, evalplus.codegen, evalplus.sanitize) as pass@1 on base vs extended tests, against vLLM, any OpenAI-compatible server, Hugging Face or cloud APIs. Use for coding-model comparisons, quant checks on code ability, sandboxed execution in Docker, sample JSONL formats, timeouts. Not for repo-level agent tasks (swe-bench) or general benchmarks (lm-evaluation-harness).4license: MIT5compatibility: Python >=3.9 (pip, venv) on Linux or macOS (EvalPerf is Linux only), curl and jq. Generated code is executed, so use the Docker image or a disposable VM. Needs a model endpoint or local GPU. Installs, Docker runs and anything that executes model-written code need the user's explicit approval.6metadata:7 source: https://skillmd.com/skills/scaledockhq/evalplus8 author: ScaleDockHQ9 version: "0.1.0"10---1112# EvalPlus1314Measure how well a model writes correct Python for HumanEval+ (164 tasks) and MBPP+ (378 tasks), where each task carries far more tests than the originals, so brittle solutions that pass the old tests are caught. EvalPerf adds a code-efficiency score.1516**Scope:** this one product: install, generate, sanitize, execute safely, read pass@k, update, troubleshoot. Generic benchmark suites belong to `lm-evaluation-harness` and `lighteval`; repository-level coding-agent evals belong to `swe-bench`. Eval strategy and gates belong to `llm-evals`.1718Work through the steps in order. Load a reference only when a step names it. Verified against EvalPlus 0.3.1 (2026-10-11). EvalPlus is a stable benchmark with infrequent releases (see `references/install.md`): both the datasets and the numbers are comparable across your own runs only on one version.1920## Discover first2122Read-only; nothing here prints secrets.2324```bash25python3 --version # >=3.926command -v evalplus.evaluate evalplus.codegen docker27pip show evalplus 2>/dev/null | head -328ls evalplus_results/ 2>/dev/null # default output root29docker image ls ganler/evalplus 2>/dev/null3031URL="${LLM_BASE_URL:-http://localhost:8000/v1}"32[ -n "${OPENAI_API_KEY:-}" ] && echo "OPENAI_API_KEY set" || echo "OPENAI_API_KEY not set"33curl -fsS ${OPENAI_API_KEY:+-H "Authorization: Bearer $OPENAI_API_KEY"} "$URL/models" | jq -r '.data[].id'34```3536## Decision flow37381. Not installed: `references/install.md` (venv, pinned, optional extras).392. Model is behind an OpenAI-compatible server (vLLM, llama.cpp, LiteLLM, SGLang): `--backend openai --base-url`. Chat prompts only; mind the fixed 768-token cap (`references/run-and-backends.md`).403. Reasoning model: the cap and the thinking text break scoring; read the reasoning section in `references/run-and-backends.md` first.414. Local weights, no server: `--backend vllm` or `hf` (needs the matching extra).425. Running generated code: Docker image or disposable VM, never your workstation (`references/execution-and-evalperf.md`).436. Efficiency of generated code: EvalPerf (`references/execution-and-evalperf.md`).447. Comparing two models or a quantization: same version, backend and decoding; `references/combos/quant-code-check.md`.458. Odd scores, timeouts, empty outputs: `references/troubleshooting.md`.4647## Rules4849- **Pin the version.** `pip install "evalplus==0.3.1"`; `pip install ... @ git+https://github.com/evalplus/evalplus` follows a moving `master`.50- **Execute in a sandbox.** `evalplus.evaluate` runs model-written code with your privileges. Use `ganler/evalplus` in Docker (pinned digest or tag, not `latest` for decisions), or a throwaway VM. Never on a machine with secrets or mounted credentials.51- **Greedy for comparisons.** `--greedy` (temperature 0, one sample) gives pass@1 that is reproducible enough to compare; sampling (`--n-samples`, `--temperature`) is for pass@k.52- **Report base and plus.** "Base" is the original test set, "Base + Extra" the EvalPlus tests. The gap between them is the signal.53- **One prompt mode per comparison.** Base vs chat prompts differ; `--force-base-prompt` for base models that ship a chat template.54- **Don't trust truncated runs.** Check the sample count (164 for HumanEval+; 378 for MBPP+ v0.2.0) before reading a score.55- **Keys from the environment.** `OPENAI_API_KEY` (or `ANTHROPIC_API_KEY`, `GOOGLE_API_KEY`) from a `0600` file, never inline. For local servers the key defaults to `none`.56- **Keep the exact command and version** with every score.5758## Workflows5960### 1. HumanEval+ and MBPP+ against an OpenAI-compatible server6162- [ ] Install. -> `references/install.md`63- [ ] Generate and sanitize (host, no code execution): `evalplus.codegen --model <served-name> --dataset humaneval --backend openai --base-url $URL --greedy --root evalplus_results`. -> `references/run-and-backends.md`64- [ ] Evaluate in Docker on the produced JSONL. -> `references/execution-and-evalperf.md`65- [ ] Verify: 164 (or 378) tasks scored; Base and Base + Extra pass@1 printed; sample file name encodes model, backend, temperature.6667### 2. All-in-one local run6869- [ ] `evalplus.evaluate --model <hf-id> --dataset humaneval --backend vllm --greedy` (executes code locally: only in a disposable environment).70- [ ] Verify: results cached next to the samples as `*_eval_results.jsonl`; delete or use `--i-just-wanna-run` to recompute.7172### 3. Code efficiency (EvalPerf)7374- [ ] Linux only; `perf_event_paranoid` must be relaxed, which is a host change: ask first. -> `references/execution-and-evalperf.md`7576### 4. Compare models or quants7778- [ ] Same dataset version, backend, prompt mode, greedy; run both. -> `references/combos/quant-code-check.md`79- [ ] Verify: compare Base + Extra, not only Base; treat differences within a few tasks (1 task = 0.6 pp on HumanEval+) as noise.8081## Reference index8283- `references/install.md`: requirements, extras, status and maintenance, Docker image.84- `references/run-and-backends.md`: codegen/evaluate/sanitize, backends, flags, sample formats, reasoning models.85- `references/execution-and-evalperf.md`: sandboxing, timeouts, memory, parallelism, EvalPerf.86- `references/combos/quant-code-check.md`: code-ability check for a quantized or swapped model on vLLM.87- `references/troubleshooting.md`: symptoms and fixes.88- `references/updating.md`: upgrades and dataset versions.8990## Companion skills9192- `vllm`: usual server for `--backend openai`. Install: `npx skills add ScaleDockHQ/llm-skills --skill vllm`.93- `lm-evaluation-harness`: other public benchmarks on the same endpoint. Install: `npx skills add ScaleDockHQ/llm-skills --skill lm-evaluation-harness`.94- `swe-bench`: repository-level issue resolution. Install: `npx skills add ScaleDockHQ/llm-skills --skill swe-bench`.95- `llm-evals`: eval strategy, gates, decision records. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-evals`.96- `reasoning-models`: thinking-token handling. Install: `npx skills add ScaleDockHQ/llm-skills --skill reasoning-models`.97- `model-quantization`: producing the quant under test. Install: `npx skills add ScaleDockHQ/llm-skills --skill model-quantization`.