Code-generation plugin for InferenceBench Suite (HumanEval-style execution-based scoring).
Project description
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_1scoring 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 asubprocess.run(timeout=...)wall clock. - A cheap substring pre-scan refuses any solution that imports
subprocess,os.system,socket,urllib,multiprocessing, orctypes. - 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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inferencebench_code-0.0.2.tar.gz.
File metadata
- Download URL: inferencebench_code-0.0.2.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75b40fa2adc0f01c73514218716548ad285b43989b77501c0a92079381f604ff
|
|
| MD5 |
da340b4ba7eda8403db9ff8bdb4d5fd6
|
|
| BLAKE2b-256 |
670668837a4224b182f2dc02f58bcbb70882cf614265aa47318dfd332719a255
|
File details
Details for the file inferencebench_code-0.0.2-py3-none-any.whl.
File metadata
- Download URL: inferencebench_code-0.0.2-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fed2a2a6b3609cec050232bcfc2490ba315af58f150076c9ea69dfeaab9ba63
|
|
| MD5 |
9d09eec104aba18b3a27eb87d0e7e54a
|
|
| BLAKE2b-256 |
fc86117f2594202e4e6e771b4e3410568e45536225818a4e26dbe68080de8700
|