A benchmark suite for Bayesian optimization of expensive LLM tasks. Each problem is backed by a pretrained neural-network surrogate or tabular data from real LLM experiments, so evaluations are fast and reproducible without running real LLM training.
Documentation
Full documentation is available at bolt-bench.readthedocs.io.
Installation
pip install bolt-bench
# or with uv
uv pip install bolt-bench
Use 0.1.1 or later. From 0.1.1, each release pins a specific emulator revision. Earlier versions load emulator weights from the HuggingFace main branch, so their results shift whenever new weights are published.
| bolt | emulator revision |
|---|---|
| ≤ 0.1.0 | tracks main (unpinned) |
| 0.1.1 | v0.1.0 |
| 0.2.0 | v0.2.0 (HPO and data mixture), v0.1.0 (prompt optimization and parallelism configuration) |
Quick Start
import torch
from bolt import HPO
# 7-dim HPO problem: returns a scalar surrogate of eval score
prob = HPO()
X = torch.Tensor([[0, 2, 2, 2, 0.5, 30, 2]]) # one candidate configuration
y = prob(X) # shape: (1, 1)
Problems
| Problem | Class | Dims | Notes |
|---|---|---|---|
| HPO | HPO |
7 | mixed params (continuous, discrete, categorical) |
| HPO multi-fidelity (token) | HPOMultiFidelityToken |
8 | mixed params (continuous, discrete, categorical), fidelity: continuous ∈ [0, 1] (training tokens) |
| HPO multi-fidelity (model) | HPOMultiFidelityModel |
8 | mixed params (continuous, discrete, categorical), fidelity: discrete ∈ {0, 1} (model size) |
| Data mixture | DMCurriculum |
6 | two simplex constraints |
| Data mixture MO | DMCurriculumMO |
6 | two simplex constraints, multi-objective (3) |
| Data mixture with heteroscedastic noise | DMCurriculumHet |
6 | two simplex constraints, input-dependent noise |
| Prompt optimization (128-dim) | PO128 |
128 | discrete candidate set |
| Prompt optimization (256-dim) | PO256 |
256 | discrete candidate set |
| Prompt optimization (512-dim) | PO512 |
512 | discrete candidate set |
| Prompt optimization (768-dim) | PO768 |
768 | discrete candidate set |
| Parallelism configuration (16 GPUs) | PCO16 |
8 | discrete candidate set, black-box constraint |
| Parallelism configuration (32 GPUs) | PCO32 |
8 | discrete candidate set, black-box constraint |
| Parallelism configuration (64 GPUs) | PCO64 |
8 | discrete candidate set, black-box constraint |
Observation noise
The HPO and data mixture problems are noisy by default, using an empirically measured noise level: noise_std defaults to _measured_std, the standard deviation observed across repeat training runs of the real task. This matches the setting the benchmark results were produced under, so HPO() reproduces it without extra arguments.
Set noise_std to override it with a value of your own for a different noise level or None for a noiseless problem.
prob = HPO() # noise_std = 0.0290, the measured value
prob = HPO(noise_std=None) # noiseless
prob = HPO(noise_std=0.01) # your own level
prob(X) # noisy
prob(X, noise=False) # noiseless, whatever the default
DMCurriculumHet is the exception: its MATH-500 noise is input-dependent and comes from a noise emulator, so noise_std is ignored and prob.evaluate_noise(X) returns the std at X. The IFEval and MBPP+ stds are held at measured constants; see Observation noise.
Metadata
Release files for bolt-bench 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bolt_bench-0.2.0.tar.gz | 108.6 kB | With provenance | Details for bolt_bench-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bolt_bench-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for bolt_bench-0.2.0-py3-none-any.whl |
Total release size: 137.5 kB
Release files / bolt_bench-0.2.0.tar.gz
| Download URL | bolt_bench-0.2.0.tar.gz |
|---|---|
| Size | 108.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d5ebe22aee468fadd6dd6da73f3bb15b97bee5ab58eda046d7a16d7c6a4e74a
|
|
BLAKE2b-256 checksum How to use checksums |
583d4123684acec0efeabbd16e9d7a16042757ff0e2b3205083294112b2fc6ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / bolt_bench-0.2.0-py3-none-any.whl
| Download URL | bolt_bench-0.2.0-py3-none-any.whl |
|---|---|
| Size | 28.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51274c45353be64acf801becf2d1dc16254b31ada0509723b3ad59315abb96af
|
|
BLAKE2b-256 checksum How to use checksums |
bbe015c5792b034719b6c1a45a7933dc721cd0f08ba43b9e6c50b0b97306a04c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logSecurity for bolt-bench 0.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bolt_bench-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logA 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.