Skip to main content

metrik-bench

Sandboxed evaluation — or a refusal. Never an unsandboxed run.

$ metrik bench --check          # what isolation is available here, and what is not
$ metrik bench <model> --task humaneval

Why this package is unusual

HumanEval and MBPP ask a model to write code and then run it. A benchmark runner that exec()s model output on your machine is a remote-code-execution primitive with extra steps.

ADR 019 answers that by refusing rather than degrading, and records the clause as not revisitable. There is no in-process fallback, no --i-know-what-im-doing flag, and no configuration that produces one.

That is enforced in two places, deliberately:

  • The type. BenchResult cannot be constructed for a code-executing task without a sandbox attestation, and isolation: "none" fails validation. A runner that finds no container runtime can emit nothing at all.
  • The runner. It checks for a runtime before generating anything, so the refusal arrives in a second rather than after an hour of generation.

What a refusal looks like

error: humaneval executes model-generated code and no container runtime is available
  -> Install Docker Desktop and start it, then re-run. `metrik bench --check` shows
     what was probed. Tasks that do not execute code (mmlu) run without a container.

Note the last sentence: MMLU is multiple choice and needs no container. Requiring one for everything would push people to disable the check they actually need.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metrik_bench-0.3.0.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metrik_bench-0.3.0-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file metrik_bench-0.3.0.tar.gz.

File metadata

  • Download URL: metrik_bench-0.3.0.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for metrik_bench-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2f788f7fd82220142e797dd6d992d2a7a362e99ea9fc58cc6d883778cb68f766
MD5 4387ff9ab3dab9494c8d8f7a7362bb2f
BLAKE2b-256 c842e33393a5c5c0321eaa0be12176942bd57769a1b1d18b58fe4c541224528e

See more details on using hashes here.

Provenance

The following attestation bundles were made for metrik_bench-0.3.0.tar.gz:

Publisher: release.yml on Asmodeus14/Metrik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file metrik_bench-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: metrik_bench-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for metrik_bench-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b31a0330c02c444b2f30a9a0daa9c8c2c1a2a03b21e543532240fef86537608
MD5 0cd0392944f1afb3977c6f3e32558dea
BLAKE2b-256 8d2fbda7eed0c6193ecec5abd9ebf19a3843c09a541c9271461fbf88a8a5acff

See more details on using hashes here.

Provenance

The following attestation bundles were made for metrik_bench-0.3.0-py3-none-any.whl:

Publisher: release.yml on Asmodeus14/Metrik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page