One-click accuracy evaluation harness for SGLang.
Actively maintained. Last release 7 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install sgl-evalsgl-eval
One-click accuracy evaluation harness for SGLang.
Point at any OpenAI-compatible endpoint. Scoring logic (graders, evaluators, prompts, dataset configs) is vendored from NeMo-Skills; sgl-eval contributes the transport, runner, and benchmark wiring.
Quick start
pip install sgl-eval
sgl-eval ping --base-url http://localhost:30000/v1
sgl-eval run gsm8k --base-url http://localhost:30000/v1 --num-examples 50
Four subcommands: run, list, ping, preset. sgl-eval run --help is
the full flag reference -- endpoint, sampling overrides (--temperature,
--seed, --thinking, ...), and any flags the benchmark itself adds.
Reading a run
Each run prints the headline metric first -- single-shot accuracy, averaged
across the k repeats when k > 1 -- and writes the same payload plus
provenance (model, endpoint, sampling config, vendored NS commit) as
metrics.json under --out-dir.
== aime25 ==
30 examples x 16 repeats | 823.7s | 4293 tok/s | 3.5M tokens
* pass@1[avg-of-16] = 78.96% +/- 1.21% (SEM 0.30%)
pass@16 = 93.33%
majority@16 = 93.33%
no_answer = 20.00% [warn: consider --max-tokens]
While the run is going, the progress bar carries a live accuracy. For a sanity check that is usually the whole point: watch it, decide, stop.
gsm8k: 34%|###4 | 452/1319 [02:11<04:12, 3.4it/s, acc=81.42%]
Every scored sample is streamed to
<out-dir>/sgl_eval_<name>_<stamp>/output-rs*.jsonl as it lands (disable
with --no-dump-predictions), so the per-sample record survives however the
run ends. Each record stores the assistant's final response in generation
and separately parsed reasoning in reasoning_content when the endpoint
provides it.