Skip to main content

inferencebench-code

Code-generation plugin for the InferenceBench Suite.

HumanEval-style execution-based benchmarks: the plugin sends a function-signature prompt to the model, extracts the Python code from its response, executes it against bundled unit tests in a subprocess, and reports pass_at_1.

Suite ID: code.generation

Bundled benchmarks:

  • code.generation.humaneval-mini — 5 stdlib-only Python tasks, pass_at_1 scoring with a 5-second per-task wall-clock timeout.

SAFETY WARNING — read before running

This plugin executes model-generated code. Every run prints a yellow banner reminding you of that. The execution layer is best-effort defence-in-depth, not a real sandbox:

  • Each task's solution + tests are written to a temp file and invoked with python -I (isolated mode) under a subprocess.run(timeout=...) wall clock.
  • A cheap substring pre-scan refuses any solution that imports subprocess, os.system, socket, urllib, multiprocessing, or ctypes.
  • The bundled fixtures are stdlib-only, no I/O, no network.

This is deliberately not airtight. Phase 2 adds real isolation (firejail / nsjail / container-per-task). Until then: only run code-generation benchmarks against models you trust, on machines you can afford to throw away, and never against the bundled fixtures replaced with untrusted input.

Metrics

The envelope's metrics block includes:

Metric Direction Meaning
pass_at_1 higher is better mean of per-task passed booleans
pass_at_1_p05/50/95 higher is better bootstrap quantiles of per-sample scores
timeout_rate lower is better fraction of tasks that hit the wall clock
ttft_p50_ms - model time-to-first-token, median
total_p50_ms - model total request time, median
tokens_out_total - total generated tokens across the run
ok_rate - fraction of model calls that succeeded
n_samples - fixture row count

Metadata

Release files for inferencebench-code 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inferencebench-code 0.1.0
File Size Uploaded Provenance Actions
inferencebench_code-0.1.0.tar.gz 18.5 kB Without provenance Details for inferencebench_code-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inferencebench-code 0.1.0
File Interpreter ABI Platform Actions
inferencebench_code-0.1.0-py3-none-any.whl Python 3 none any Details for inferencebench_code-0.1.0-py3-none-any.whl

Total release size: 35.8 kB

Release files / inferencebench_code-0.1.0.tar.gz

Download URL inferencebench_code-0.1.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
68f5703def5b02cfe5695f18069f5173121d06d6afbf4e92ed0a12e5181dcf29
BLAKE2b-256 checksum
How to use checksums
68a02edcfb5a327529985832e7fc7c8352bba8055478c443f77ad512e10d979b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / inferencebench_code-0.1.0-py3-none-any.whl

Download URL inferencebench_code-0.1.0-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08d5b840d2e59b57b1d473116c153ae94820b2d8d8f5ddc3f88cd75fb707f7ca
BLAKE2b-256 checksum
How to use checksums
c8c3406e5fac833fcb246dec4942a1c310b328767f65d9b7f37bbfd8893203ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for inferencebench-code 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page