benchkit-cli 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- benchkit_cli-0.1.0/LICENSE +201 -0
- benchkit_cli-0.1.0/PKG-INFO +294 -0
- benchkit_cli-0.1.0/README.md +276 -0
- benchkit_cli-0.1.0/pyproject.toml +83 -0
- benchkit_cli-0.1.0/setup.cfg +4 -0
- benchkit_cli-0.1.0/src/benchkit/__init__.py +1 -0
- benchkit_cli-0.1.0/src/benchkit/_pi_proxy.py +219 -0
- benchkit_cli-0.1.0/src/benchkit/answer_key_guard.ts +49 -0
- benchkit_cli-0.1.0/src/benchkit/artifacts.py +87 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/__init__.py +105 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/aider_polyglot.py +405 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/arc.py +52 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/banking77.py +149 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/base.py +19 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/boolq.py +49 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/chartqa.py +133 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/code_verifier.py +77 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/downloads.py +166 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/evalplus.py +288 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/git_surgery.py +485 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/gpqa.py +56 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/gsm8k.py +97 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/hellaswag.py +49 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/humaneval.py +103 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/ifeval.py +56 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/ifeval_instructions.py +477 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/mbpp.py +60 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/mc_arena.py +479 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/mcq.py +94 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/medfailbench.py +537 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/mmlu.py +54 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/mmlu_pro.py +62 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/mmvp.py +115 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/ocrbench.py +96 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/openbookqa.py +52 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/patcheval.py +929 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/piqa.py +52 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/ruler.py +172 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/ruler_generator.py +535 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/sanity.py +174 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/treejs_arena.py +268 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/truthfulqa.py +52 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/utils.py +25 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/vision.py +230 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/vstar.py +108 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/winogrande.py +52 -0
- benchkit_cli-0.1.0/src/benchkit/benchmarks/xstest.py +116 -0
- benchkit_cli-0.1.0/src/benchkit/browser.py +429 -0
- benchkit_cli-0.1.0/src/benchkit/catalog.py +121 -0
- benchkit_cli-0.1.0/src/benchkit/cli.py +1000 -0
- benchkit_cli-0.1.0/src/benchkit/client.py +1413 -0
- benchkit_cli-0.1.0/src/benchkit/controls.py +87 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/MMLU_LICENSE.txt +21 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/README.md +142 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/arc_challenge.jsonl +1172 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/banking77.jsonl +3080 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/banking77_intents.json +79 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/boolq.jsonl +3270 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/code_verifier.jsonl +500 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/gpqa_diamond.jsonl +198 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/gsm8k.jsonl +1319 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/hellaswag.jsonl +1000 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/humaneval.jsonl +164 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/ifeval.jsonl +541 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/mbpp.jsonl +500 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/mc_blocks_1_20_1.jsonl +1003 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/medfailbench_hard30.jsonl +30 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/medfailbench_hard30.md +13 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/openbookqa.jsonl +500 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/piqa.jsonl +1838 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/sanity_code.jsonl +6 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/truthfulqa.jsonl +817 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/winogrande.jsonl +1267 -0
- benchkit_cli-0.1.0/src/benchkit/datasets/xstest.csv +451 -0
- benchkit_cli-0.1.0/src/benchkit/decision.py +194 -0
- benchkit_cli-0.1.0/src/benchkit/demo.py +451 -0
- benchkit_cli-0.1.0/src/benchkit/dockerfiles.py +247 -0
- benchkit_cli-0.1.0/src/benchkit/engine.py +1270 -0
- benchkit_cli-0.1.0/src/benchkit/evaluation.py +195 -0
- benchkit_cli-0.1.0/src/benchkit/events.py +141 -0
- benchkit_cli-0.1.0/src/benchkit/executor.py +96 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/backport-release-stack/setup.sh +328 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/backport-release-stack/verify.sh +119 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/bisect-the-regression/setup.sh +49 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/bisect-the-regression/verify.sh +34 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/rebase-conflict-chain/setup.sh +65 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/rebase-conflict-chain/verify.sh +43 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/recover-complex-stash/setup.sh +152 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/recover-complex-stash/verify.sh +95 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/recover-lost-work/setup.sh +40 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/recover-lost-work/verify.sh +36 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/repair-force-pushed-remote/setup.sh +171 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/repair-force-pushed-remote/verify.sh +83 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/revert-merge-with-followups/setup.sh +198 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/revert-merge-with-followups/verify.sh +98 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/secret-in-history/README.md +27 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/secret-in-history/setup.sh +107 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/secret-in-history/verify.sh +106 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/split-the-mega-commit/setup.sh +50 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/split-the-mega-commit/verify.sh +48 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/untangle-nested-submodules/setup.sh +193 -0
- benchkit_cli-0.1.0/src/benchkit/git_surgery/untangle-nested-submodules/verify.sh +90 -0
- benchkit_cli-0.1.0/src/benchkit/history.py +474 -0
- benchkit_cli-0.1.0/src/benchkit/jobs.py +332 -0
- benchkit_cli-0.1.0/src/benchkit/leakage.py +51 -0
- benchkit_cli-0.1.0/src/benchkit/looping.py +873 -0
- benchkit_cli-0.1.0/src/benchkit/mc_render.py +274 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/atlas.png +0 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/blockStates.json.gz +0 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/version.json +4 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/viewer.html +23 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/viewer.js +2 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/viewer.js.LICENSE.txt +25 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/worker.js +2 -0
- benchkit_cli-0.1.0/src/benchkit/mc_viewer/dist/worker.js.LICENSE.txt +19 -0
- benchkit_cli-0.1.0/src/benchkit/metrics.py +100 -0
- benchkit_cli-0.1.0/src/benchkit/ollama.py +60 -0
- benchkit_cli-0.1.0/src/benchkit/perf.py +353 -0
- benchkit_cli-0.1.0/src/benchkit/perf_report.py +207 -0
- benchkit_cli-0.1.0/src/benchkit/perturbations.py +208 -0
- benchkit_cli-0.1.0/src/benchkit/pi_agent.py +476 -0
- benchkit_cli-0.1.0/src/benchkit/pi_package/package-lock.json +1827 -0
- benchkit_cli-0.1.0/src/benchkit/pi_package/package.json +8 -0
- benchkit_cli-0.1.0/src/benchkit/report.py +142 -0
- benchkit_cli-0.1.0/src/benchkit/report_markdown.py +645 -0
- benchkit_cli-0.1.0/src/benchkit/results.py +688 -0
- benchkit_cli-0.1.0/src/benchkit/retry.py +163 -0
- benchkit_cli-0.1.0/src/benchkit/runner.py +769 -0
- benchkit_cli-0.1.0/src/benchkit/sandbox.py +1167 -0
- benchkit_cli-0.1.0/src/benchkit/template_check.py +291 -0
- benchkit_cli-0.1.0/src/benchkit/templates/arena.html +504 -0
- benchkit_cli-0.1.0/src/benchkit/templates/history.html +58 -0
- benchkit_cli-0.1.0/src/benchkit/templates/perf.html +509 -0
- benchkit_cli-0.1.0/src/benchkit/templates/report.html +769 -0
- benchkit_cli-0.1.0/src/benchkit/tui/__init__.py +5 -0
- benchkit_cli-0.1.0/src/benchkit/tui/app.py +87 -0
- benchkit_cli-0.1.0/src/benchkit/tui/app.tcss +512 -0
- benchkit_cli-0.1.0/src/benchkit/tui/formatting.py +84 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/__init__.py +1 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/connect.py +191 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/detail.py +288 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/help.py +84 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/modals.py +544 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/results.py +361 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/run.py +988 -0
- benchkit_cli-0.1.0/src/benchkit/tui/screens/setup.py +733 -0
- benchkit_cli-0.1.0/src/benchkit/tui/theme.py +135 -0
- benchkit_cli-0.1.0/src/benchkit/tui/widgets.py +120 -0
- benchkit_cli-0.1.0/src/benchkit_cli.egg-info/PKG-INFO +294 -0
- benchkit_cli-0.1.0/src/benchkit_cli.egg-info/SOURCES.txt +184 -0
- benchkit_cli-0.1.0/src/benchkit_cli.egg-info/dependency_links.txt +1 -0
- benchkit_cli-0.1.0/src/benchkit_cli.egg-info/entry_points.txt +3 -0
- benchkit_cli-0.1.0/src/benchkit_cli.egg-info/requires.txt +9 -0
- benchkit_cli-0.1.0/src/benchkit_cli.egg-info/top_level.txt +1 -0
- benchkit_cli-0.1.0/tests/test_aider_polyglot.py +399 -0
- benchkit_cli-0.1.0/tests/test_banking77.py +169 -0
- benchkit_cli-0.1.0/tests/test_code_verifier.py +70 -0
- benchkit_cli-0.1.0/tests/test_concurrency.py +770 -0
- benchkit_cli-0.1.0/tests/test_datasets.py +165 -0
- benchkit_cli-0.1.0/tests/test_decision.py +357 -0
- benchkit_cli-0.1.0/tests/test_evalplus.py +28 -0
- benchkit_cli-0.1.0/tests/test_git_surgery.py +903 -0
- benchkit_cli-0.1.0/tests/test_gsm8k.py +72 -0
- benchkit_cli-0.1.0/tests/test_history.py +281 -0
- benchkit_cli-0.1.0/tests/test_humaneval.py +67 -0
- benchkit_cli-0.1.0/tests/test_looping.py +969 -0
- benchkit_cli-0.1.0/tests/test_mc_arena.py +436 -0
- benchkit_cli-0.1.0/tests/test_mcq.py +98 -0
- benchkit_cli-0.1.0/tests/test_medfailbench.py +435 -0
- benchkit_cli-0.1.0/tests/test_medfailbench_real_outputs.py +54 -0
- benchkit_cli-0.1.0/tests/test_medfailbench_real_outputs_escalation.py +133 -0
- benchkit_cli-0.1.0/tests/test_medfailbench_scoring_distortion.py +95 -0
- benchkit_cli-0.1.0/tests/test_patcheval.py +777 -0
- benchkit_cli-0.1.0/tests/test_perturbations.py +347 -0
- benchkit_cli-0.1.0/tests/test_pi_harness.py +1158 -0
- benchkit_cli-0.1.0/tests/test_repair.py +408 -0
- benchkit_cli-0.1.0/tests/test_report.py +143 -0
- benchkit_cli-0.1.0/tests/test_retry.py +133 -0
- benchkit_cli-0.1.0/tests/test_ruler.py +248 -0
- benchkit_cli-0.1.0/tests/test_runner.py +322 -0
- benchkit_cli-0.1.0/tests/test_sanity.py +34 -0
- benchkit_cli-0.1.0/tests/test_treejs_arena.py +391 -0
- benchkit_cli-0.1.0/tests/test_unload.py +270 -0
- benchkit_cli-0.1.0/tests/test_utils.py +23 -0
- benchkit_cli-0.1.0/tests/test_vision.py +330 -0
- benchkit_cli-0.1.0/tests/test_xstest.py +67 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: benchkit-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Benchmark your local LLMs with real eval suites
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: evalplus==0.3.1
|
|
10
|
+
Requires-Dist: httpx>=0.28.1
|
|
11
|
+
Requires-Dist: pyarrow>=25.0.0
|
|
12
|
+
Requires-Dist: rich>=15.0.0
|
|
13
|
+
Requires-Dist: python-dotenv>=1.2.3
|
|
14
|
+
Requires-Dist: textual>=8.2.8
|
|
15
|
+
Provides-Extra: browser
|
|
16
|
+
Requires-Dist: playwright>=1.63.0; extra == "browser"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
<div align="center">
|
|
20
|
+
|
|
21
|
+
<img src="assets/benchkit-connect.png" alt="BenchKit" width="880">
|
|
22
|
+
|
|
23
|
+
# BenchKit
|
|
24
|
+
|
|
25
|
+
**Benchmark local LLMs with real evaluation suites from a full terminal UI.**
|
|
26
|
+
|
|
27
|
+
Not vibes. Actual scores.
|
|
28
|
+
|
|
29
|
+
<img src="https://img.shields.io/badge/Python-3.11%2B-2563EB?style=flat-square&logo=python&logoColor=white&labelColor=0b0b0b" alt="Python 3.11+">
|
|
30
|
+
<img src="https://img.shields.io/badge/TUI-Textual-60A5FA?style=flat-square&labelColor=0b0b0b" alt="Built with Textual">
|
|
31
|
+
<img src="https://img.shields.io/badge/Suites-25-34D399?style=flat-square&labelColor=0b0b0b" alt="25 benchmark suites">
|
|
32
|
+
<img src="https://img.shields.io/badge/License-Apache%202.0-6B7280?style=flat-square&labelColor=0b0b0b" alt="Apache 2.0">
|
|
33
|
+
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
## What it does
|
|
37
|
+
|
|
38
|
+
BenchKit runs established coding, reasoning, knowledge, instruction-following,
|
|
39
|
+
vision, and long-context benchmarks against local models. It supports OpenAI-compatible
|
|
40
|
+
servers such as llama.cpp, llama-swap, vLLM, and LM Studio, plus native Ollama.
|
|
41
|
+
|
|
42
|
+
- Guided terminal UI for connecting, selecting models, running suites, and
|
|
43
|
+
exploring results
|
|
44
|
+
- Headless mode for scripts and CI
|
|
45
|
+
- Live streamed responses, reasoning traces, progress, speed, and loop detection
|
|
46
|
+
- Direct model evaluation and optional Pi coding-agent evaluation
|
|
47
|
+
- Benchmark slicing, tag filters, verifier repair, and choice-order robustness
|
|
48
|
+
- JSON, CSV, Markdown, and standalone interactive HTML reports
|
|
49
|
+
- Performance profiling and a local dashboard for historical runs
|
|
50
|
+
|
|
51
|
+
<div align="center">
|
|
52
|
+
<img src="assets/benchkit-run.png" alt="BenchKit running a benchmark" width="940">
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
## Quick start
|
|
56
|
+
|
|
57
|
+
BenchKit requires Python 3.11 or newer and [uv](https://docs.astral.sh/uv/).
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
uvx benchkit-cli # try it without installing
|
|
61
|
+
uv tool install benchkit-cli # or install the `benchkit` command
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
From a clone of this repository:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
uv sync
|
|
68
|
+
cp .env.example .env
|
|
69
|
+
uv run benchkit
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Set your server in a `.env` in the directory you run `benchkit` from (parent
|
|
73
|
+
directories are not searched), or enter it on the Connect screen:
|
|
74
|
+
|
|
75
|
+
```env
|
|
76
|
+
BENCHKIT_PROVIDER=openai
|
|
77
|
+
BENCHKIT_HOST=http://localhost:8080/v1
|
|
78
|
+
BENCHKIT_API_KEY=
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
For Ollama:
|
|
82
|
+
|
|
83
|
+
```env
|
|
84
|
+
BENCHKIT_PROVIDER=ollama
|
|
85
|
+
OLLAMA_HOST=http://localhost:11434
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
No inference server available? Explore the complete UI offline:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
uv run benchkit --demo
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Run benchmarks
|
|
95
|
+
|
|
96
|
+
The TUI lets you select models, benchmarks, task limits, and optional run modes.
|
|
97
|
+
For automation, use headless mode:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# Run the first 20 HumanEval tasks
|
|
101
|
+
uv run benchkit --headless --models qwen3:8b --benchmarks humaneval:20
|
|
102
|
+
|
|
103
|
+
# Run multiple models and benchmarks
|
|
104
|
+
uv run benchkit --headless \
|
|
105
|
+
--models qwen3:8b,gemma3:12b \
|
|
106
|
+
--benchmarks sanity,gsm8k:50
|
|
107
|
+
|
|
108
|
+
# Print prompts, reasoning traces, and responses
|
|
109
|
+
uv run benchkit --headless --models qwen3:8b \
|
|
110
|
+
--benchmarks sanity --verbose
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Task slices accept `20` for the first 20 tasks, `-20` for the last 20, and
|
|
114
|
+
`40-80` for a range.
|
|
115
|
+
|
|
116
|
+
Useful commands:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
uv run benchkit --list
|
|
120
|
+
uv run benchkit --help
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Benchmarks
|
|
124
|
+
|
|
125
|
+
| Benchmark | Key | Tasks | What it tests |
|
|
126
|
+
| --- | --- | ---: | --- |
|
|
127
|
+
| PatchEval | `patcheval` | 20 | Real Python bug fixes verified by hidden tests with Pi |
|
|
128
|
+
| Sanity | `sanity` | 25 | Fast checks across five core capabilities |
|
|
129
|
+
| Three.js Arena | `treejs-arena` | 25 | Creative single-file scenes, scored only on whether they render |
|
|
130
|
+
| Git Surgery | `git-surgery` | 10 | Stateful Git operations with Pi |
|
|
131
|
+
| MedFailBench | `medfailbench` | 30 | Offline heuristic screen for high-risk clinical responses; not clinical validation, certification, deployment evidence, or model ranking |
|
|
132
|
+
| Aider Polyglot | `aider-polyglot` | 225 | Repository editing across six languages with Pi |
|
|
133
|
+
| HumanEval | `humaneval` | 164 | Python function completion |
|
|
134
|
+
| HumanEval+ | `humaneval-plus` | 164 | HumanEval with expanded EvalPlus tests |
|
|
135
|
+
| MBPP | `mbpp` | 500 | Short Python programming tasks |
|
|
136
|
+
| MBPP+ | `mbpp-plus` | 378 | MBPP with expanded EvalPlus tests |
|
|
137
|
+
| GSM8K | `gsm8k` | 1,319 | Multi-step grade-school math |
|
|
138
|
+
| IFEval | `ifeval` | 541 | Verifiable instruction following |
|
|
139
|
+
| RULER | `ruler` | 39 × 6 | Practical long-context retrieval from 4K to 128K |
|
|
140
|
+
| RULER Full | `ruler-full` | 6,500 × 6 | Research-scale RULER (explicit opt-in) |
|
|
141
|
+
| XSTest | `xstest` | 450 | Safe compliance and unsafe refusal with an offline checker |
|
|
142
|
+
| GPQA | `gpqa` | 198 | Graduate-level science questions |
|
|
143
|
+
| MMLU-Pro | `mmlu-pro` | 12,032 | Reasoning across 14 knowledge categories |
|
|
144
|
+
| BANKING77 | `banking77` | 3,080 | Route a banking message to one of 77 intents |
|
|
145
|
+
| Code Verifier | `code-verifier` | 500 | Judge whether a model-written HumanEval+ solution passes its tests |
|
|
146
|
+
| OCRBench | `ocrbench` | 1,000 | Text recognition and text-centric VQA over images |
|
|
147
|
+
| ChartQA | `chartqa` | 2,500 | Questions about real charts, 5% relaxed numeric accuracy |
|
|
148
|
+
| MMVP | `mmvp` | 300 | Look-alike image pairs that differ in one detail; also reports pair accuracy |
|
|
149
|
+
| V* Bench | `vstar` | 191 | Small details in high-resolution images |
|
|
150
|
+
| MMLU | `mmlu` | 14,042 | Academic and professional knowledge |
|
|
151
|
+
| ARC | `arc` | 1,172 | Grade-school science reasoning |
|
|
152
|
+
| OpenBookQA | `openbookqa` | 500 | Elementary science knowledge |
|
|
153
|
+
| WinoGrande | `winogrande` | 1,267 | Commonsense pronoun resolution |
|
|
154
|
+
| PIQA | `piqa` | 1,838 | Physical commonsense reasoning |
|
|
155
|
+
| BoolQ | `boolq` | 3,270 | Passage-based yes/no questions |
|
|
156
|
+
| TruthfulQA | `truthfulqa` | 817 | Resistance to common misconceptions |
|
|
157
|
+
| HellaSwag | `hellaswag` | 1,000 | Plausible real-world continuations |
|
|
158
|
+
|
|
159
|
+
`treejs-arena` renders each generated page in headless Chromium, so it needs
|
|
160
|
+
the browser extra first:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
uv sync --extra browser
|
|
164
|
+
uv run playwright install chromium
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Vision suites (`ocrbench`, `chartqa`, `mmvp`, `vstar`) send images inline as
|
|
168
|
+
base64, so they need a vision model (a llama.cpp server started with
|
|
169
|
+
`--mmproj`, or an Ollama vision model). Each one downloads a pinned dataset
|
|
170
|
+
revision on first use. `mmvp` and `vstar` are small enough to run in full on
|
|
171
|
+
one consumer GPU and also run on decision models with an mmproj.
|
|
172
|
+
|
|
173
|
+
Small suites ship with BenchKit and work offline. Larger datasets (`mmlu`,
|
|
174
|
+
`mmlu-pro`, the vision suites, EvalPlus, RULER's haystacks, Aider Polyglot,
|
|
175
|
+
PatchEval) are
|
|
176
|
+
downloaded once into `~/.cache/benchkit` the first time a run needs them. List
|
|
177
|
+
what is installed and fetch everything that is missing ahead of time with:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
uv run benchkit datasets
|
|
181
|
+
uv run benchkit datasets install # every missing dataset
|
|
182
|
+
uv run benchkit datasets install mmlu # or just the ones you name
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
In the terminal app, press `d` on the setup screen (or click **Datasets**) for
|
|
186
|
+
the same list with an **Install all missing** button.
|
|
187
|
+
|
|
188
|
+
The CLI registry is the canonical source for current counts, descriptions,
|
|
189
|
+
and supported perturbations:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
uv run benchkit --list
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Advanced runs
|
|
196
|
+
|
|
197
|
+
Compare raw generation with the stock Pi coding agent (Docker required):
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
uv run benchkit --headless --models qwen3:8b \
|
|
201
|
+
--benchmarks gsm8k:20 --harness both
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Give incorrect answers one verifier-guided replacement attempt:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
uv run benchkit --headless --models qwen3:8b \
|
|
208
|
+
--benchmarks gsm8k:20 --repair-attempts 1
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Repairs default to off and can be set from 0–10. One is a practical starting
|
|
212
|
+
point, but the right depth depends on what you want to measure.
|
|
213
|
+
|
|
214
|
+
Test whether multiple-choice accuracy survives reordered answer choices:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
uv run benchkit --headless --models qwen3:8b \
|
|
218
|
+
--benchmarks mmlu-pro:100 --perturbation choice-order
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
Decision models served by llama.cpp (`/v1/systemone`) are detected
|
|
222
|
+
automatically and run on the multiple-choice and yes/no suites, scored on
|
|
223
|
+
accuracy plus calibration (Brier, ECE):
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
llama-server -hf ggml-org/Kev-4B-GGUF
|
|
227
|
+
uv run benchkit --headless --models <decision-model> \
|
|
228
|
+
--benchmarks mmlu-pro:100,boolq:100
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Behind a proxy that hides this, such as llama-swap (v262+), name the model:
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
uv run benchkit --headless --models d1-3b,qwen3:8b --benchmarks gpqa \
|
|
235
|
+
--decision-models d1-3b
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
or mark it once in the llama-swap config:
|
|
239
|
+
|
|
240
|
+
```yaml
|
|
241
|
+
models:
|
|
242
|
+
d1-3b:
|
|
243
|
+
metadata:
|
|
244
|
+
decision: true
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Profile inference performance:
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
uv run benchkit perf qwen3:8b
|
|
251
|
+
uv run benchkit perf qwen3:8b --depths minimal,4k,16k --gen 256 --reps 10
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## Results
|
|
255
|
+
|
|
256
|
+
Every run creates a timestamped directory containing:
|
|
257
|
+
|
|
258
|
+
```text
|
|
259
|
+
results/<timestamp>/
|
|
260
|
+
├── results.json
|
|
261
|
+
├── results.csv
|
|
262
|
+
├── results.md
|
|
263
|
+
└── results.html
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
Open `results.html` for an interactive report with charts and task-level
|
|
267
|
+
prompts, responses, reasoning traces, timing, and diagnostics.
|
|
268
|
+
|
|
269
|
+
Browse completed benchmark and performance runs locally:
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
uv run benchkit history
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
## Development
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
uv sync
|
|
279
|
+
uv run pre-commit install
|
|
280
|
+
uv run ruff check .
|
|
281
|
+
uv run ruff format .
|
|
282
|
+
uv run pytest
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for contributor setup and workflow.
|
|
286
|
+
|
|
287
|
+
## License
|
|
288
|
+
|
|
289
|
+
Apache License 2.0
|
|
290
|
+
|
|
291
|
+
<div align="center">
|
|
292
|
+
<br>
|
|
293
|
+
<sub>Themed with <a href="https://github.com/DogukanUrker/DogiZed">Dogi</a> · built on <a href="https://github.com/Textualize/textual">Textual</a></sub>
|
|
294
|
+
</div>
|