evalrouter 0.3.6__tar.gz → 0.3.8__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.
- {evalrouter-0.3.6 → evalrouter-0.3.8}/PKG-INFO +118 -6
- {evalrouter-0.3.6 → evalrouter-0.3.8}/README.md +117 -5
- {evalrouter-0.3.6 → evalrouter-0.3.8}/pyproject.toml +1 -1
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/__init__.py +1 -1
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/__init__.py +6 -1
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/_account.py +450 -16
- evalrouter-0.3.8/src/kimpton_evalrouter/_artifacts.py +294 -0
- evalrouter-0.3.8/src/kimpton_evalrouter/_comparison.py +929 -0
- evalrouter-0.3.8/src/kimpton_evalrouter/_comparison_html.py +233 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/_guided.py +1090 -106
- evalrouter-0.3.8/src/kimpton_evalrouter/_read_cache.py +399 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/_resources.py +86 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/cli.py +1721 -159
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/live.py +8 -7
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/picker.py +84 -20
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/types.py +292 -1
- {evalrouter-0.3.6 → evalrouter-0.3.8}/LICENSE +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/bundle.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/components.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/models.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/protocol.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/py.typed +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/templates.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/evalrouter_contracts/validation.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/__main__.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/_boundary.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/_helpers.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/_listing.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/_transport.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/langsmith.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/py.typed +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/__init__.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/_console.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/_theme.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/_widgets.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/screens.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/render/tables.py +0 -0
- {evalrouter-0.3.6 → evalrouter-0.3.8}/src/kimpton_evalrouter/tracing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: evalrouter
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
4
4
|
Summary: Typed Kimpton evaluation client and command-line interface
|
|
5
5
|
License-Expression: LicenseRef-Kimpton-EvalRouter-SDK
|
|
6
6
|
License-File: LICENSE
|
|
@@ -92,7 +92,7 @@ evalrouter run gpqa-diamond --model gpt-4o-mini
|
|
|
92
92
|
|
|
93
93
|
`run` matches the benchmark and model by slug, name or ID, suggesting the
|
|
94
94
|
closest names after a typo. It creates a free quote, shows the coverage,
|
|
95
|
-
conservative estimate, spending cap and concurrency, and asks
|
|
95
|
+
conservative estimate, spending cap and concurrency, and asks whether to start the run (Start run or Cancel).
|
|
96
96
|
Only a yes starts paid work. It then follows progress and prints the scores,
|
|
97
97
|
the change from your previous completed run of the same benchmark and model,
|
|
98
98
|
and the report link. In a terminal, missing choices are asked for; run
|
|
@@ -111,8 +111,63 @@ submitted (`~/.local/state/evalrouter`, or `EVALROUTER_STATE_DIR`; identifiers
|
|
|
111
111
|
only, never credentials). Repeating the same command after a dropped connection
|
|
112
112
|
resumes that run instead of starting another; `--new` starts a separate one.
|
|
113
113
|
Afterwards, `results`, `export --format html,json`, `wait` and `open` default to
|
|
114
|
-
your last run and accept a unique run ID prefix.
|
|
115
|
-
|
|
114
|
+
your last run and accept a unique run ID prefix. `results --diff` also compares
|
|
115
|
+
with the previous run of the same benchmark and model; that takes a few more
|
|
116
|
+
requests, so plain `results` does not. Watching a run survives brief API
|
|
117
|
+
outages such as a 503 during a deployment.
|
|
118
|
+
|
|
119
|
+
## Resume a stopped run
|
|
120
|
+
|
|
121
|
+
```sh
|
|
122
|
+
evalrouter resume RUN_ID --dry-run
|
|
123
|
+
evalrouter resume RUN_ID
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
When a run stops early, for example because it reached its spending cap,
|
|
127
|
+
`resume` quotes a new run that covers the same tasks. Tasks the original run
|
|
128
|
+
already graded are reused at $0, with no model request and no fee; only the
|
|
129
|
+
remaining tasks are rerun and charged, within a new cap. The quote shows the
|
|
130
|
+
source run, how many tasks are reused and rerun, which are left out and why,
|
|
131
|
+
the worst case, the cap, and when the reusable evidence and the quote expire.
|
|
132
|
+
Only a yes (or `--yes`) starts paid work; `--dry-run` never does. Without a
|
|
133
|
+
terminal, pass both `--yes` and `--max-cost USD`. A running run is only
|
|
134
|
+
watched. The original run and its results are never changed.
|
|
135
|
+
|
|
136
|
+
The accepted quote and its key are saved locally before submission, so
|
|
137
|
+
repeating the command after a dropped connection, or after adding credit when
|
|
138
|
+
the account was short, submits the same quote and cannot start a second run.
|
|
139
|
+
An expired quote is replaced by a fresh one, which must be confirmed again if
|
|
140
|
+
its cap differs. Repeating it with a different `--max-cost` or
|
|
141
|
+
`--include-cancelled` choice gets a fresh quote instead; if the earlier
|
|
142
|
+
submission already started a run, that run is shown and its scope stays as
|
|
143
|
+
accepted. A run can be resumed once: `resume` on a run that was already
|
|
144
|
+
resumed follows it to the newest run of that chain. A newest run that is still
|
|
145
|
+
running is watched; a finished one is quoted and asked about again, even with
|
|
146
|
+
`--yes`, and scripts are refused with its ID (`continuation_exists`, exit 2).
|
|
147
|
+
Tasks stopped by cancellation or the time limit are rerun only with
|
|
148
|
+
`--include-cancelled`.
|
|
149
|
+
|
|
150
|
+
Every task a quote leaves out, whether refused, cancelled without
|
|
151
|
+
`--include-cancelled`, or with a charge or provider outcome that is unresolved,
|
|
152
|
+
is excluded for good once you resume: neither that run nor any later resume of
|
|
153
|
+
it will run the task, and nothing brings it back automatically. The quote says
|
|
154
|
+
so whenever it leaves tasks out. At a terminal you are always asked, even with
|
|
155
|
+
`--yes`, and when cancelled tasks are left out you can get a new quote that
|
|
156
|
+
includes them instead. Without a terminal, such a resume also needs
|
|
157
|
+
`--accept-left-out`; otherwise it is refused (`confirmation_required`, exit 2)
|
|
158
|
+
and nothing is charged.
|
|
159
|
+
|
|
160
|
+
Resume supports one model, one benchmark and one attempt per task on the
|
|
161
|
+
reviewed native benchmark families (Inspect, SOB text and lm-eval) without a
|
|
162
|
+
judge model, within the source run's evidence retention and on the same
|
|
163
|
+
EvalRouter deployment. Comparisons, several benchmarks or attempts, judge-graded
|
|
164
|
+
benchmarks, repository agents and your own benchmarks are refused rather than
|
|
165
|
+
rerun. Graded tasks from runs that finished before resume evidence was recorded,
|
|
166
|
+
including existing runs, cannot gain that evidence later, and results are
|
|
167
|
+
never reused across EvalRouter deployments: after a deployment, those tasks are
|
|
168
|
+
refused rather than reused or rerun. Tasks whose earlier charge or provider
|
|
169
|
+
outcome is unresolved are left out and never retried. A server without resume
|
|
170
|
+
says so, and nothing is quoted or charged.
|
|
116
171
|
|
|
117
172
|
## Lists
|
|
118
173
|
|
|
@@ -140,6 +195,21 @@ evalrouter catalog --slug BENCHMARK_SLUG --json
|
|
|
140
195
|
Choose a profile whose `quote_availability.status` is `ready_for_quote` and a
|
|
141
196
|
compatible managed model route from those responses. An active catalog entry
|
|
142
197
|
alone does not mean it is ready to run.
|
|
198
|
+
|
|
199
|
+
These three catalog reads are public, so the CLI sends them without your
|
|
200
|
+
credentials: they never read the keychain or refresh a sign-in. If the API
|
|
201
|
+
explicitly allows it (`Cache-Control` with `max-age`, and no `no-store`,
|
|
202
|
+
`no-cache` or `private`), the CLI keeps a local copy for at most five minutes
|
|
203
|
+
and says so on stderr when it uses one. `--refresh` reads the catalog now,
|
|
204
|
+
asking caches along the way to revalidate, and fails rather than show an older copy, and `--offline` uses only a fresh local
|
|
205
|
+
copy with no network. When a server marks a response `no-store`, the command still makes a request
|
|
206
|
+
and no offline copy is retained. Availability shown from a copy is informational: a quote always
|
|
207
|
+
checks it again. Workspace data, run status, results, quotes, credits and signed
|
|
208
|
+
URLs are never cached. The copy lives in `$XDG_CACHE_HOME/evalrouter` (or
|
|
209
|
+
`~/.cache/evalrouter`; `%LOCALAPPDATA%\evalrouter\cache` on Windows, or
|
|
210
|
+
`EVALROUTER_CACHE_DIR`), may be deleted at any time, and
|
|
211
|
+
`EVALROUTER_READ_CACHE=off` disables it.
|
|
212
|
+
|
|
143
213
|
Save this as `quote.json`, replacing both uppercase identifiers:
|
|
144
214
|
|
|
145
215
|
```json
|
|
@@ -176,12 +246,54 @@ Inspect terminal status, coverage, errors and billing alongside scores. A sample
|
|
|
176
246
|
is not a full-benchmark score. Exports refuse overwrite by default; use the
|
|
177
247
|
result's integer `--version` for repeatable reports.
|
|
178
248
|
|
|
249
|
+
Every command that saves a file prints its full path. An explicit `--output`
|
|
250
|
+
file is used exactly and never replaced (exports accept `--overwrite`); a
|
|
251
|
+
directory, or no file name, gets a default such as `evalrouter-<run>.json` or
|
|
252
|
+
`evalrouter-bundle-<namespace>-<name>-<version>.zip`, moving to the next free
|
|
253
|
+
`-2`, `-3`... name instead of replacing anything. Add `--open` or `--reveal`
|
|
254
|
+
to open the saved file or show it in your file manager; nothing opens
|
|
255
|
+
otherwise, and a missing viewer never fails the command.
|
|
256
|
+
|
|
257
|
+
### Comparing runs
|
|
258
|
+
|
|
259
|
+
```sh
|
|
260
|
+
evalrouter compare RUN_ID RUN_ID --format html --output my-comparison
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
`compare` takes 1 to 8 finished runs of the same benchmark version, dataset,
|
|
264
|
+
task population, task selection and output format in one workspace. Each run
|
|
265
|
+
must be a managed or connected model run; comparison, agent and environment
|
|
266
|
+
runs are refused, and so is a run whose export does not record one of these
|
|
267
|
+
identities. It downloads each run's JSON export again and saves
|
|
268
|
+
`comparison.json` and `sources/<run>.json` in a new private directory.
|
|
269
|
+
`comparison.json` holds each run's model identity (route, revision, protocol,
|
|
270
|
+
recorded limits, generation and routing settings), coverage, errors, its
|
|
271
|
+
frozen native summary with the headline's own denominator, and its settled
|
|
272
|
+
EvalRouter charge. A run that did not complete, or graded fewer tasks than
|
|
273
|
+
planned, is marked partial in `comparison.json` and in its own row of the
|
|
274
|
+
terminal table.
|
|
275
|
+
|
|
276
|
+
`sources/` keeps each export byte for byte, with its SHA-256 recorded. By
|
|
277
|
+
default every graded sample must carry its scored answer: the final completion
|
|
278
|
+
text for SOB, plus the per-sample metadata the export supplies (for SOB, the
|
|
279
|
+
response's token counts and finish reason). Exports do not contain complete
|
|
280
|
+
transcripts, reasoning, timings or per-attempt usage. Keep these files
|
|
281
|
+
private. Use `--without-raw` to archive runs whose answers have expired or
|
|
282
|
+
are withheld by the export policy. Different transports, limits or generation
|
|
283
|
+
settings are listed as warnings. Nothing is regraded, and no deltas,
|
|
284
|
+
intervals or winner are computed. `--output NAME.json` puts the sources in
|
|
285
|
+
`NAME-sources/`.
|
|
286
|
+
|
|
179
287
|
## Supported commands
|
|
180
288
|
|
|
181
289
|
`catalog` (`--models`, `--slug` or `--environment`), `connections list/create/check/update/disable`,
|
|
182
|
-
`quote`, `run`, `status`, `wait`, `cancel`, `results`, `export` and `open`.
|
|
290
|
+
`quote`, `run`, `resume`, `status`, `wait`, `cancel`, `results`, `export`, `compare` and `open`.
|
|
183
291
|
Repository qualification uses `agent-builds options/preview/create/list/status/cancel`.
|
|
184
292
|
Authoring your own benchmark package uses `benchmark init/validate/bundle`.
|
|
293
|
+
`credits` shows the workspace balance, the amount held by running evaluations
|
|
294
|
+
and what is available for new ones. It works with an `evalrouter login` sign-in
|
|
295
|
+
or an API key with the `billing:read` scope. Credit is added on the website under
|
|
296
|
+
Settings > Billing; the CLI never takes a payment.
|
|
185
297
|
Run each command with `--help` for exact flags. A connected model's credential
|
|
186
298
|
is never a command argument: `connections create` asks with hidden input in a
|
|
187
299
|
terminal, and scripts use `--key-stdin` or `--key-env NAME`
|
|
@@ -218,7 +330,7 @@ stays thin (httpx and rich only). With pip, use `pip install 'evalrouter[benchma
|
|
|
218
330
|
uv tool install --python 3.12 "evalrouter[benchmark]"
|
|
219
331
|
evalrouter benchmark init ./my-benchmark --namespace example --name my-benchmark
|
|
220
332
|
evalrouter benchmark validate ./my-benchmark
|
|
221
|
-
evalrouter benchmark bundle ./my-benchmark
|
|
333
|
+
evalrouter benchmark bundle ./my-benchmark # evalrouter-bundle-example-my-benchmark-<version>.zip
|
|
222
334
|
```
|
|
223
335
|
|
|
224
336
|
Without the extra these three commands stop before reading your package and
|
|
@@ -72,7 +72,7 @@ evalrouter run gpqa-diamond --model gpt-4o-mini
|
|
|
72
72
|
|
|
73
73
|
`run` matches the benchmark and model by slug, name or ID, suggesting the
|
|
74
74
|
closest names after a typo. It creates a free quote, shows the coverage,
|
|
75
|
-
conservative estimate, spending cap and concurrency, and asks
|
|
75
|
+
conservative estimate, spending cap and concurrency, and asks whether to start the run (Start run or Cancel).
|
|
76
76
|
Only a yes starts paid work. It then follows progress and prints the scores,
|
|
77
77
|
the change from your previous completed run of the same benchmark and model,
|
|
78
78
|
and the report link. In a terminal, missing choices are asked for; run
|
|
@@ -91,8 +91,63 @@ submitted (`~/.local/state/evalrouter`, or `EVALROUTER_STATE_DIR`; identifiers
|
|
|
91
91
|
only, never credentials). Repeating the same command after a dropped connection
|
|
92
92
|
resumes that run instead of starting another; `--new` starts a separate one.
|
|
93
93
|
Afterwards, `results`, `export --format html,json`, `wait` and `open` default to
|
|
94
|
-
your last run and accept a unique run ID prefix.
|
|
95
|
-
|
|
94
|
+
your last run and accept a unique run ID prefix. `results --diff` also compares
|
|
95
|
+
with the previous run of the same benchmark and model; that takes a few more
|
|
96
|
+
requests, so plain `results` does not. Watching a run survives brief API
|
|
97
|
+
outages such as a 503 during a deployment.
|
|
98
|
+
|
|
99
|
+
## Resume a stopped run
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
evalrouter resume RUN_ID --dry-run
|
|
103
|
+
evalrouter resume RUN_ID
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
When a run stops early, for example because it reached its spending cap,
|
|
107
|
+
`resume` quotes a new run that covers the same tasks. Tasks the original run
|
|
108
|
+
already graded are reused at $0, with no model request and no fee; only the
|
|
109
|
+
remaining tasks are rerun and charged, within a new cap. The quote shows the
|
|
110
|
+
source run, how many tasks are reused and rerun, which are left out and why,
|
|
111
|
+
the worst case, the cap, and when the reusable evidence and the quote expire.
|
|
112
|
+
Only a yes (or `--yes`) starts paid work; `--dry-run` never does. Without a
|
|
113
|
+
terminal, pass both `--yes` and `--max-cost USD`. A running run is only
|
|
114
|
+
watched. The original run and its results are never changed.
|
|
115
|
+
|
|
116
|
+
The accepted quote and its key are saved locally before submission, so
|
|
117
|
+
repeating the command after a dropped connection, or after adding credit when
|
|
118
|
+
the account was short, submits the same quote and cannot start a second run.
|
|
119
|
+
An expired quote is replaced by a fresh one, which must be confirmed again if
|
|
120
|
+
its cap differs. Repeating it with a different `--max-cost` or
|
|
121
|
+
`--include-cancelled` choice gets a fresh quote instead; if the earlier
|
|
122
|
+
submission already started a run, that run is shown and its scope stays as
|
|
123
|
+
accepted. A run can be resumed once: `resume` on a run that was already
|
|
124
|
+
resumed follows it to the newest run of that chain. A newest run that is still
|
|
125
|
+
running is watched; a finished one is quoted and asked about again, even with
|
|
126
|
+
`--yes`, and scripts are refused with its ID (`continuation_exists`, exit 2).
|
|
127
|
+
Tasks stopped by cancellation or the time limit are rerun only with
|
|
128
|
+
`--include-cancelled`.
|
|
129
|
+
|
|
130
|
+
Every task a quote leaves out, whether refused, cancelled without
|
|
131
|
+
`--include-cancelled`, or with a charge or provider outcome that is unresolved,
|
|
132
|
+
is excluded for good once you resume: neither that run nor any later resume of
|
|
133
|
+
it will run the task, and nothing brings it back automatically. The quote says
|
|
134
|
+
so whenever it leaves tasks out. At a terminal you are always asked, even with
|
|
135
|
+
`--yes`, and when cancelled tasks are left out you can get a new quote that
|
|
136
|
+
includes them instead. Without a terminal, such a resume also needs
|
|
137
|
+
`--accept-left-out`; otherwise it is refused (`confirmation_required`, exit 2)
|
|
138
|
+
and nothing is charged.
|
|
139
|
+
|
|
140
|
+
Resume supports one model, one benchmark and one attempt per task on the
|
|
141
|
+
reviewed native benchmark families (Inspect, SOB text and lm-eval) without a
|
|
142
|
+
judge model, within the source run's evidence retention and on the same
|
|
143
|
+
EvalRouter deployment. Comparisons, several benchmarks or attempts, judge-graded
|
|
144
|
+
benchmarks, repository agents and your own benchmarks are refused rather than
|
|
145
|
+
rerun. Graded tasks from runs that finished before resume evidence was recorded,
|
|
146
|
+
including existing runs, cannot gain that evidence later, and results are
|
|
147
|
+
never reused across EvalRouter deployments: after a deployment, those tasks are
|
|
148
|
+
refused rather than reused or rerun. Tasks whose earlier charge or provider
|
|
149
|
+
outcome is unresolved are left out and never retried. A server without resume
|
|
150
|
+
says so, and nothing is quoted or charged.
|
|
96
151
|
|
|
97
152
|
## Lists
|
|
98
153
|
|
|
@@ -120,6 +175,21 @@ evalrouter catalog --slug BENCHMARK_SLUG --json
|
|
|
120
175
|
Choose a profile whose `quote_availability.status` is `ready_for_quote` and a
|
|
121
176
|
compatible managed model route from those responses. An active catalog entry
|
|
122
177
|
alone does not mean it is ready to run.
|
|
178
|
+
|
|
179
|
+
These three catalog reads are public, so the CLI sends them without your
|
|
180
|
+
credentials: they never read the keychain or refresh a sign-in. If the API
|
|
181
|
+
explicitly allows it (`Cache-Control` with `max-age`, and no `no-store`,
|
|
182
|
+
`no-cache` or `private`), the CLI keeps a local copy for at most five minutes
|
|
183
|
+
and says so on stderr when it uses one. `--refresh` reads the catalog now,
|
|
184
|
+
asking caches along the way to revalidate, and fails rather than show an older copy, and `--offline` uses only a fresh local
|
|
185
|
+
copy with no network. When a server marks a response `no-store`, the command still makes a request
|
|
186
|
+
and no offline copy is retained. Availability shown from a copy is informational: a quote always
|
|
187
|
+
checks it again. Workspace data, run status, results, quotes, credits and signed
|
|
188
|
+
URLs are never cached. The copy lives in `$XDG_CACHE_HOME/evalrouter` (or
|
|
189
|
+
`~/.cache/evalrouter`; `%LOCALAPPDATA%\evalrouter\cache` on Windows, or
|
|
190
|
+
`EVALROUTER_CACHE_DIR`), may be deleted at any time, and
|
|
191
|
+
`EVALROUTER_READ_CACHE=off` disables it.
|
|
192
|
+
|
|
123
193
|
Save this as `quote.json`, replacing both uppercase identifiers:
|
|
124
194
|
|
|
125
195
|
```json
|
|
@@ -156,12 +226,54 @@ Inspect terminal status, coverage, errors and billing alongside scores. A sample
|
|
|
156
226
|
is not a full-benchmark score. Exports refuse overwrite by default; use the
|
|
157
227
|
result's integer `--version` for repeatable reports.
|
|
158
228
|
|
|
229
|
+
Every command that saves a file prints its full path. An explicit `--output`
|
|
230
|
+
file is used exactly and never replaced (exports accept `--overwrite`); a
|
|
231
|
+
directory, or no file name, gets a default such as `evalrouter-<run>.json` or
|
|
232
|
+
`evalrouter-bundle-<namespace>-<name>-<version>.zip`, moving to the next free
|
|
233
|
+
`-2`, `-3`... name instead of replacing anything. Add `--open` or `--reveal`
|
|
234
|
+
to open the saved file or show it in your file manager; nothing opens
|
|
235
|
+
otherwise, and a missing viewer never fails the command.
|
|
236
|
+
|
|
237
|
+
### Comparing runs
|
|
238
|
+
|
|
239
|
+
```sh
|
|
240
|
+
evalrouter compare RUN_ID RUN_ID --format html --output my-comparison
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
`compare` takes 1 to 8 finished runs of the same benchmark version, dataset,
|
|
244
|
+
task population, task selection and output format in one workspace. Each run
|
|
245
|
+
must be a managed or connected model run; comparison, agent and environment
|
|
246
|
+
runs are refused, and so is a run whose export does not record one of these
|
|
247
|
+
identities. It downloads each run's JSON export again and saves
|
|
248
|
+
`comparison.json` and `sources/<run>.json` in a new private directory.
|
|
249
|
+
`comparison.json` holds each run's model identity (route, revision, protocol,
|
|
250
|
+
recorded limits, generation and routing settings), coverage, errors, its
|
|
251
|
+
frozen native summary with the headline's own denominator, and its settled
|
|
252
|
+
EvalRouter charge. A run that did not complete, or graded fewer tasks than
|
|
253
|
+
planned, is marked partial in `comparison.json` and in its own row of the
|
|
254
|
+
terminal table.
|
|
255
|
+
|
|
256
|
+
`sources/` keeps each export byte for byte, with its SHA-256 recorded. By
|
|
257
|
+
default every graded sample must carry its scored answer: the final completion
|
|
258
|
+
text for SOB, plus the per-sample metadata the export supplies (for SOB, the
|
|
259
|
+
response's token counts and finish reason). Exports do not contain complete
|
|
260
|
+
transcripts, reasoning, timings or per-attempt usage. Keep these files
|
|
261
|
+
private. Use `--without-raw` to archive runs whose answers have expired or
|
|
262
|
+
are withheld by the export policy. Different transports, limits or generation
|
|
263
|
+
settings are listed as warnings. Nothing is regraded, and no deltas,
|
|
264
|
+
intervals or winner are computed. `--output NAME.json` puts the sources in
|
|
265
|
+
`NAME-sources/`.
|
|
266
|
+
|
|
159
267
|
## Supported commands
|
|
160
268
|
|
|
161
269
|
`catalog` (`--models`, `--slug` or `--environment`), `connections list/create/check/update/disable`,
|
|
162
|
-
`quote`, `run`, `status`, `wait`, `cancel`, `results`, `export` and `open`.
|
|
270
|
+
`quote`, `run`, `resume`, `status`, `wait`, `cancel`, `results`, `export`, `compare` and `open`.
|
|
163
271
|
Repository qualification uses `agent-builds options/preview/create/list/status/cancel`.
|
|
164
272
|
Authoring your own benchmark package uses `benchmark init/validate/bundle`.
|
|
273
|
+
`credits` shows the workspace balance, the amount held by running evaluations
|
|
274
|
+
and what is available for new ones. It works with an `evalrouter login` sign-in
|
|
275
|
+
or an API key with the `billing:read` scope. Credit is added on the website under
|
|
276
|
+
Settings > Billing; the CLI never takes a payment.
|
|
165
277
|
Run each command with `--help` for exact flags. A connected model's credential
|
|
166
278
|
is never a command argument: `connections create` asks with hidden input in a
|
|
167
279
|
terminal, and scripts use `--key-stdin` or `--key-env NAME`
|
|
@@ -198,7 +310,7 @@ stays thin (httpx and rich only). With pip, use `pip install 'evalrouter[benchma
|
|
|
198
310
|
uv tool install --python 3.12 "evalrouter[benchmark]"
|
|
199
311
|
evalrouter benchmark init ./my-benchmark --namespace example --name my-benchmark
|
|
200
312
|
evalrouter benchmark validate ./my-benchmark
|
|
201
|
-
evalrouter benchmark bundle ./my-benchmark
|
|
313
|
+
evalrouter benchmark bundle ./my-benchmark # evalrouter-bundle-example-my-benchmark-<version>.zip
|
|
202
314
|
```
|
|
203
315
|
|
|
204
316
|
Without the extra these three commands stop before reading your package and
|
|
@@ -13,6 +13,7 @@ from ._resources import Evals as _Evals
|
|
|
13
13
|
from ._resources import Evaluations as _Evaluations
|
|
14
14
|
from ._resources import Protocols as _Protocols
|
|
15
15
|
from ._resources import Quotes as _Quotes
|
|
16
|
+
from ._resources import Regrades as _Regrades
|
|
16
17
|
from ._resources import Runs as _Runs
|
|
17
18
|
from ._transport import APIError, ClientError, RequestOptions, RequestTimeout, WaitCancelled
|
|
18
19
|
from ._transport import Transport as _Transport
|
|
@@ -27,7 +28,7 @@ __all__ = [
|
|
|
27
28
|
"WaitCancelled",
|
|
28
29
|
"types",
|
|
29
30
|
]
|
|
30
|
-
__version__ = "0.3.
|
|
31
|
+
__version__ = "0.3.8"
|
|
31
32
|
|
|
32
33
|
|
|
33
34
|
class Client(_Transport):
|
|
@@ -71,6 +72,10 @@ class Client(_Transport):
|
|
|
71
72
|
def runs(self) -> _Runs:
|
|
72
73
|
return _Runs(self)
|
|
73
74
|
|
|
75
|
+
@_cached_property
|
|
76
|
+
def regrades(self) -> _Regrades:
|
|
77
|
+
return _Regrades(self)
|
|
78
|
+
|
|
74
79
|
@_cached_property
|
|
75
80
|
def evals(self) -> _Evals:
|
|
76
81
|
return _Evals(self)
|