cd /news/ai-tools/practical-model-evaluation-and-compr… · home topics ai-tools article
[ARTICLE · art-136021] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Practical model evaluation and compression tools

Developer 0xSero released model-toolkit, a GitHub repository of standalone Python tools for evaluating, observing, pruning, and quantizing language models, drawn from the REAP and EXL3 experiments including the GLM-5.3 fidelity campaign and Harbor coding evaluations. The toolkit covers Terminal-Bench (Harbor, explicit 2.1 default), DeepSWE, GPQA Diamond, SciCode, EleutherAI's LM evaluation registry (MMLU, GSM8K, IFEval), KL-divergence fidelity measurement, Cerebras REAP observation and pruning, ExLlamaV3 EXL3 quantization, calibration coverage gates, runtime checks, throughput comparison, and SHA-256 evidence sealing, with each tool shipping a portable SKILL.md for coding agents. It requires Python 3.10+, with the pinned Cerebras REAP checkout requiring Python 3.12+, and bundles no model weights, benchmark questions, session logs, or credentials.

read5 min views2 publishedSep 21, 2026
Practical model evaluation and compression tools
Image: Michielbdejong (auto-discovered)

Practical tools for evaluating, observing, pruning, and quantizing language models. Each tool also includes a portable SKILL.md for coding agents. Pick a folder, install that tool's dependencies, and run it. There is no server or orchestration framework to deploy.

This repository collects the workflows used in 0xSero's REAP and EXL3 experiments, including the GLM-5.3 fidelity campaign and Harbor coding evaluations. It contains reusable Python tools plus small launchers for the original upstream implementations. Model weights, benchmark questions, private session logs, and credentials are not bundled.

I want to… Tool What runs
Test an agent on terminal tasks Terminal-Bench Harbor; explicit 2.1 default, configurable dataset
Test long software engineering tasks DeepSWE Official DeepSWE task set through Pier
Measure graduate-level science reasoning GPQA Diamond Included API runner, deterministic choice shuffle, retained responses
Evaluate scientific code SciCode Official SciCode Inspect evaluator
Run reasoning/knowledge/ instruction benchmarks LM evaluation EleutherAI task registry: MMLU, GSM8K, IFEval, and more
Measure fidelity lost through pruning/quantization KL divergence Included full-logit capture and aligned forward-KL comparison
Collect expert activation statistics REAP observation Pinned Cerebras REAP observer; observation-only by default
Select which experts to keep REAP pruning Global, domain-balanced, and max-over-domain keep plans
Convert a supported model to EXL3 EXL3 quantization Pinned ExLlamaV3 converter, recipes and resume support
Check calibration inputs and expert coverage Calibration Corpus hashes, counts, per-layer/expert coverage gate
Check that the intended model really works Runtime checks Model-list check, real completion, JSON output, graph-log audit
Compare inference throughput fairly Throughput Common-window analysis of exact token-emission traces
Package reproducible evidence Evidence SHA-256 sealing and tamper/missing-file verification

“Intelligence” is measured through specific tasks, not a single invented composite score. DeepSWE is the concrete software benchmark included here; it is not labeled as a separate benchmark called “Deep Suite.”

Python 3.10+ is required. External tools may require newer Python; the pinned Cerebras REAP checkout requires Python 3.12+.

git clone https://github.com/0xSero/model-toolkit.git
cd model-toolkit
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python toolkit.py list

Most launchers and GPQA use only the Python standard library. NumPy is needed for KL, pruning plans, and route coverage. Install large GPU libraries and benchmark harnesses in separate environments using each folder's README; their dependencies may conflict.

export OPENAI_API_KEY='your-local-or-provider-key'
python toolkit.py run runtime-checks \
  --base-url http://localhost:8000/v1 --model your-served-model \
  --output runs/smoke.json

After accepting GPQA's dataset terms and down gpqa_diamond.csv:

python toolkit.py run gpqa-diamond \
  --csv data/gpqa_diamond.csv --model your-served-model \
  --base-url http://localhost:8000/v1 --limit 2 \
  --output runs/gpqa-smoke

Remove --limit for the full 198-question set. Configure sampling, reasoning effort, and output budget explicitly for your comparison. Request failures withhold the aggregate accuracy; output truncations are reported separately.

python toolkit.py run terminal-bench \
  --model openai/your-served-model --jobs-dir runs/tb21 \
  --limit 1 --dry-run
python toolkit.py run exl3-quantization \
  --input models/source --output models/exl3-4bpw \
  --work runs/exl3-work --bits 4 --dry-run

The previews do not require the external harness or a GPU. Actual runs do. Terminal-Bench and DeepSWE require a container environment. SciCode executes generated code: run its harness inside a disposable evaluation environment.

Pinned model + calibration corpus
             ↓
       REAP observations → coverage checks → expert keep plan
             ↓                                 ↓
       upstream pruning / architecture-specific weight surgery
             ↓
        EXL3 conversion → runtime checks → KL + task benchmarks
                                             ↓
                                      sealed evidence

Observation formats, expert tensor layouts, and quantization kernels vary by architecture. The tool READMEs state the supported boundary. A keep plan does not modify weights. A completed conversion does not prove runtime support or retained model quality.

For KL, compare the quantized model against pruned BF16 to isolate quantization loss, and separately against original BF16 to measure total pruning-plus-quantization loss. Keep sampling, prompts, tokenization, and task sets fixed when comparing task scores.

See REAP observation for the executable path and provenance for the connection to earlier sessions and skills.

upstreams.json records exact upstream commits. python toolkit.py fetch NAME checks out one of them under .external/; it does not install dependencies. Record harness/package versions, model and dataset revisions, hardware, context, sampling, timeouts, and all failed attempts with your run.

The included tools are tested with synthetic data, mocked API responses, and CLI checks. This release does not claim a fresh GPU conversion, full benchmark, or architecture compatibility test. See validation. Historical model scores are deliberately not presented as results of this release.

Run the local checks:

python -m unittest discover -s tests -v

MIT for this toolkit's code; imported MIT notices are retained in licenses/. External harnesses, datasets, models, and model-specific code retain their own licenses. REAP belongs to Cerebras Research; ExLlamaV3/EXL3 to turboderp and contributors; Terminal-Bench/Harbor to their authors; DeepSWE/Pier to Datacurve; SciCode to its authors; lm-evaluation-harness to EleutherAI and contributors. See provenance.

── more in #ai-tools 4 stories · sorted by recency
── more on @0xsero 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/practical-model-eval…] indexed:0 read:5min 2026-09-21 ·