Skip to content

Eval Set Config Reference

Fields and nested config models for eval-set YAML, generated from the EvalSetConfig Pydantic schema. Task/model/agent package entries (PackageConfig[...], BuiltinConfig[...]) are omitted here — see Running Evaluations for those. For checkpoint behaviour and resume, see Checkpointing & Resume.

Top-level fields (EvalSetConfig)

Field Type Default Description
access_groups list[str] | None None Explicit output access groups in restricted mode, including code-access- groups. Must cover all inherited restrictions; omitted means infer them.
tags list[str] | None None Tags to associate with this run.
metadata object | None None Metadata to associate with this run. Can be specified multiple times.
runner RunnerConfig (model defaults) Configuration for the runner.
transcripts TranscriptSourcesConfig | None None Input eval sets readable by this restricted execution. Task code selects samples; filters are not supported here.
name str | None None Name of the eval set config. If not specified, it will default to 'eval-set'.
eval_set_id str | None None The eval set id. If not specified, it will be generated from the name with a random string appended. Max 43 chars to fit K8s namespace limits. Must contain only lowercase alphanumeric characters and hyphens, and must start and end with an alphanumeric character.
packages list[str] | None None List of other Python packages to install in the sandbox, in PEP 508 format.
code_sources list[str] | None None Repositories the run fetches at runtime, in the same forms as packages. Code-access checks and the GitHub App treat them as declared, but nothing is installed.
tasks list[PackageConfig_TaskConfig_] required List of tasks to evaluate in this eval set.
models list[PackageConfig_ModelConfig_ | BuiltinConfig_ModelConfig_] | None None List of models to use for evaluation. If not specified, the default model for each task will be used.
additional_models list[AdditionalModelPackageConfig | AdditionalModelBuiltinConfig] | None None Additional models used by scoring, scanners, or dynamically created clients. Installs provider dependencies and declares access without adding models to the evaluation or scan matrix. Model args are not supported.
model_cost_config dict[str, ModelCostConfig] | None None Costs to use (input/output/cache read/cache write) for each specified model, in dollars and per 1M tokens.
model_roles dict[str, SingleModelPackageConfig | SingleModelBuiltinConfig] | None None Named roles for use in get_model().
solvers list[PackageConfig_SolverConfig_ | BuiltinConfig_SolverConfig_] | None None List of solvers to use for evaluation. Overrides the default solver for each task if specified.
agents list[PackageConfig_AgentConfig_ | BuiltinConfig_AgentConfig_] | None None List of agents to use for evaluation. Overrides the default agent for each task if specified.
approval str | ApprovalConfig | None None Config file or object for tool call approval.
acp_server int | None None TCP loopback port for the in-eval Inspect ACP server; enables human-in-the-loop tool approvals reachable via the Hawk relay (hawk acp <run_id>). When unset, ACP is disabled and behaviour is unchanged. Port 8090 is reserved for the runner's health check.
approval_timeout_minutes float | None None Minutes a parked ACP approval waits before auto-rejecting. Requires acp_server. Defaults to null, which waits until someone answers.
score bool True Whether to score model output for each sample. If False, use the 'inspect score' command to score output later.
limit int | list[Any] | None None Evaluate the first N samples per task, or a range of samples [start, end].
sample_shuffle bool | int | None None Shuffle order of samples (pass a seed to make the order deterministic).
epochs int | EpochsConfig | None None Number of times to repeat the dataset (defaults to 1). Can also specify reducers for per-epoch sample scores.
message_limit int | None None Limit on total messages used for each sample.
token_limit int | None None Limit on total tokens used for each sample.
time_limit int | None None Limit on clock time (in seconds) for each sample.
working_limit int | None None Limit on total working time (e.g. model generation, tool calls, etc.) for each sample, in seconds.
cost_limit float | None None Limit on total cost (in dollars) for each sample.
retry_attempts int | None None Maximum number of times inspect_ai.eval_set will retry a failed task (defaults to inspect-ai's default of 10). Set to 0 to disable retries.
max_retries int | None None Maximum number of times a single model-API request is retried on recoverable errors before the sample errors (forwarded to inspect-ai's GenerateConfig). Defaults to inspect-ai's default of retrying indefinitely with exponential backoff, which can leave an eval reporting 'Running' while a provider refuses every request. Set to 0 to disable retries. Distinct from retry_attempts, which retries whole failed tasks. See https://inspect.aisi.org.uk/models-concurrency.html#limiting-retries.
max_samples int | None None Maximum number of samples to run in parallel, per task; samples in flight is bounded by max_tasks * max_samples.
max_tasks int | None None Maximum number of tasks to run in parallel.
max_sandboxes int | None None Maximum number of sandboxes to run in parallel, per sandbox provider. Unset is 120 per agent model, or twice the limit for a model that sets one: its max_connections or its adaptive_connections ceiling (100 for true, so 200), up to 500.
max_subprocesses int | None None Maximum number of subprocesses to run in parallel. Unset uses the runner pod's CPU count.
log_realtime bool True Log events in realtime (enables live viewing of samples in inspect view).
log_model_api bool True Log raw model api requests and responses. Note that error requests/responses are always logged.
log_images bool | None None Log base64-encoded images in the eval log. Defaults to inspect-ai's default (True) when unset.
adaptive_connections bool | int | str | AdaptiveConnectionsBounds | None None inspect-ai's adaptive connections controller, which scales model API concurrency up and down from rate-limit feedback instead of holding a fixed ceiling. Unset (the default) or true turns it on with a ceiling of 500 connections, above inspect-ai's default of 100, for each model the eval set lists and a task's own model (with true, every model); false opts out. Set an integer N to set the ceiling to N (inspect-ai shorthand for AdaptiveConcurrency(max=N)), or set the bounds directly as a mapping such as {min: 1, max: 100} or the shorthand "1-20-100" (min-max or min-start-max) — a min of 1 lets a throttled model be wound down to a single in-flight request. Note that an explicit per-model max_connections takes precedence (adaptive is silently disabled for that model), so remove max_connections for adaptive to apply. See https://inspect.aisi.org.uk/models-concurrency.html#adaptive-connections.
monitor bool False Enable Datadog monitoring for this eval set. When enabled, a log-based monitor will alert via Slack DM if errors appear during execution.
isolation IsolationConfig None How locked-down this eval set's sandboxes are. standard (the default) is whatever the deployment's baseline provides. strict is for code you expect to be hostile: a gVisor syscall boundary, an unprivileged read-only container, and no network egress at all. Set it on its own (isolation: strict) or as a mapping to name exceptions.
checkpoint CheckpointConfig None Sample-level checkpointing config. Off by default. Set checkpoint.enabled: true to periodically snapshot in-progress samples to durable storage so a crashed run can be resumed with hawk eval-set resume.
human_eval HumanEvalOverrides | None None Overrides for the human-eval rewrite path. Ignored for non-human eval-sets and for --no-rewrite human evals.
secrets list[EnvSecretConfig | AwsSecretsManagerSecretConfig] [] List of required secrets/environment variables that must be provided by the user

Extra keys not listed here are passed through to inspect_ai.eval_set(), except model, model_args, model_base_url, sandbox, scanner, scans, which are rejected.

RunnerConfig

Configuration for the runner that executes the evaluation.

Field Type Default Description
image str | None None Full container image URI for the runner (e.g., 'ghcr.io/org/runner:v1'). Must include an explicit tag or digest. The ':latest' tag is not allowed. If not specified, the default runner image from the platform config is used. Custom images must be multi-arch or match the deployment architecture.
image_tag str | None None Tag within the runner Docker image repository to use for the runner. If not specified, the API's configured default will be used.
memory str | None None Memory limit for the runner pod in Kubernetes quantity format (e.g., '8Gi', '16Gi'). If not specified, the API's configured default will be used. Setting this also reserves that much memory on the node. A deployment may schedule runners that leave this unset against a smaller request, but a runner that names its memory is scheduled against the value it names, so raise it only as far as the job needs: reserving more memory fits fewer runners per node. For sharded scans this sizes one worker.
cpu str | None None CPU limit for the runner pod in Kubernetes quantity format (e.g., '2', '4'). If not specified, the API's configured default will be used. For sharded scans this sizes one worker.
shards int | None None Scans of every readable eval set only: number of worker pods. runner.cpu and runner.memory size one worker.
instance_generations list[str] | None None Allowed EC2 instance generations for the runner, such as ['6', '7']. Requires one of these generations within the cluster's allowed generations. Omit to use the cluster policy. Does not change sandbox placement.
cleanup bool | None None Whether to clean up the runner and sandbox environments after the eval completes. Set to false to keep them alive for debugging. Use hawk delete to clean up manually.
secrets list[EnvSecretConfig | AwsSecretsManagerSecretConfig] [] List of required secrets/environment variables that must be provided by the user
environment dict[str, str] {} Environment variables to set for the job. Should not be used to set sensitive values, which should be set using the secrets field instead.
storage_grants list[str] None Names of deployment-defined storage grants to request, giving the runner (never the sandbox) read-only access to the named S3 buckets at runtime, e.g. for fetching large task data files. Each grant requires the submitting user to hold the permission the deployment configured for it. Not supported for scans.
oom_diagnostics_enabled bool False When true, the runner starts an always-on memray allocation tracker and uploads a diagnostics bundle (memray + py-spy stacks + cgroup state) to s3://<log_dir>/diagnostics/ on memory pressure (90% of cgroup limit, PSI full_avg10 > 10), at 50% and 75% thresholds, on a 60-second post-startup baseline, and on SIGUSR1. The runner uses prctl(PR_SET_PTRACER_ANY) so py-spy attaches without elevated capabilities. Enabling adds ~5-15% CPU overhead from memray's aggregated-allocation mode.

TranscriptSourcesConfig

Field Type Default Description
sources list[TranscriptSource] required The eval sets supplying transcript inputs.

AdditionalModelPackageConfig

Field Type Default Description
package str required E.g. a PyPI package specifier or Git repository URL. To use items from the inspect-ai package, use 'inspect-ai' (with a dash) as the package name. Do not include a version specifier or try to install inspect-ai from GitHub.
name str required Inspect provider/entry-point name.
items list[AdditionalModelConfig] required List of Inspect registry items to use from the package.

AdditionalModelBuiltinConfig

Field Type Default Description
package str required The name of the inspect-ai package.
items list[AdditionalModelConfig] required List of Inspect registry items to use from inspect-ai.

ModelCostConfig

Field Type Default Description
input float required Price per million input tokens.
output float required Price per million output tokens.
input_cache_write float required Price per million input tokens written to cache.
input_cache_read float required Price per million input tokens read from cache.

ApprovalConfig

Field Type Default Description
approvers list[ApproverConfig] required List of approvers to use.

EpochsConfig

Field Type Default Description
epochs int required Number of times to run each sample.
reducer str | list[str] | None None One or more functions that take a list of scores for all epochs of a sample and return a single score for the sample.

AdaptiveConnectionsBounds

Bounds for inspect-ai's adaptive connections controller.

Field Type Default Description
min int required Lowest concurrency the controller may wind a throttled model down to.
max int required Ceiling the controller may scale up to.
start int | None None Concurrency to start at, within [min, max]. Unset: inspect-ai's default start, clamped into the bounds.

IsolationConfig

Sandbox isolation for an eval set. Accepts the level on its own (isolation: strict) or as a mapping when exceptions are needed.

Field Type Default Description
level 'standard' | 'strict' 'standard' Isolation level to run every sandbox in this eval set at. All levels may get more restrictive with new releases.
allow_domains list[str] | None None Domains the sandbox may reach at strict, which otherwise permits no egress at all. Prefer naming targets over granting the whole internet.
allow_cidr list[str] | None None CIDR ranges (e.g. 10.20.0.0/24) the sandbox may reach at strict. On Kata's lockdown and peer networks a range opens port 443 alone, or the port written after it, as in 10.20.0.0/24:5432.
runtime_class str | None None Kubernetes RuntimeClass to run every sandbox service under. Defaults to gvisor at strict, and to whatever the deployment provides at standard. Setting it strengthens the sandbox, so it is accepted at any level, and it overrides a runtime class the task pinned for itself. kata: glovebox's hardened Kata microVM per sandbox, with its own kernel; the strongest. gvisor: a user-space kernel between the sandbox and the node's kernel. Must be a lowercase DNS subdomain of at most 253 characters; the string null is refused because the sandbox chart interprets it as an unset runtime.
network 'open' | 'peer' | 'lockdown' | None None What a kata sandbox's VM can reach; refused with any other runtime class. Unset, Hawk picks lockdown for a sandbox with one service and peer for several, and peer for a human eval, whose SSH arrives over the card. lockdown: no network card; only named hosts, through a proxy outside the VM. One service per sandbox. peer: as lockdown, plus a card that reaches the sandbox's own services. open: an ordinary network card, limited only by the sandbox's network policy. With no hosts named, lockdown and peer reach no internet. Kata networks says what enforces each.
allow_gpu bool False Let services that request a GPU run at strict without the gVisor syscall boundary, which has no GPU passthrough. Off by default so a task cannot opt itself out of the boundary just by asking for a GPU.
non_root bool False Also require the sandbox to run as a non-root user at strict. Off by default because it needs an image that declares a non-root USER; kubelet refuses to start one that doesn't, so turning this on without preparing the image fails every sample.
read_only_root bool False Also require a read-only root filesystem at strict. Off by default because it needs writable scratch volumes mounted at /tmp and the agent's working directory; without them a task cannot write where it expects to and fails.

CheckpointConfig

Configuration for sample-level checkpointing. When enabled, in-progress samples are periodically snapshotted (host Inspect state + the declared in-sandbox paths) to durable storage, so a crashed runner can resume them via hawk eval-set resume instead of restarting them from scratch. Checkpoints only fire for an agent or solver that integrates (ticks) Inspect's checkpointer. metr_agents/react is one such solver, but any agent or solver can add the same support; one that does not tick the checkpointer will not produce checkpoints even when this is enabled. Capturing in-sandbox paths requires the sandbox to permit root exec (Inspect injects a restic binary as root). Sandboxes that block root exec will fail samples; keep checkpointing off to run without it.

Field Type Default Description
enabled bool False Whether checkpointing is on for this eval-set. Off by default; can be enabled on any eval-set. Only takes effect with an agent or solver that ticks Inspect's checkpointer (otherwise nothing is snapshotted), and requires a sandbox that permits root exec or samples crash at start.
trigger CheckpointTriggerConfig None When to fire checkpoints. Defaults to every 10 minutes.
sandbox_paths dict[str, list[str]] | None None Eval-wide override of the per-sandbox-name absolute paths to capture inside the sandbox. Leave unset (the default) so tasks declare their own checkpoint sandbox_paths per sample. When set, this acts as an override: per Inspect's merge precedence (eval > sample > task) it REPLACES any task- or sample-declared sandbox_paths wholesale -- so only set it for runs where no task self-declares, or it clobbers their capture. When unset everywhere, checkpoints capture host state only.
max_consecutive_failures int | None None Abort the sample after this many consecutive failed checkpoint writes. Unset (the default) tolerates failures indefinitely, so a sample can finish with no usable checkpoint; set a small value (e.g. 3) to fail fast instead.
checkpoints_location str | None None Override the durable location for checkpoint data (any fsspec-resolvable path, e.g. 's3://...'). Defaults to a '<eval-log>.checkpoints/' directory beside each eval log in the eval-set's log directory.

HumanEvalOverrides

Overrides consumed by the human-eval rewrite path. Read by POST /human_evals/ when rewrite=True (the default). Ignored for regular eval-sets (POST /eval_sets/) and for human evals submitted with --no-rewrite -- in either case the user owns the full agent spec.

Field Type Default Description
agent_args object | None None Args to set on the operator-configured default human agent. Shallow merge; user-supplied keys win. Example: {user: root, record_session: false}.

EnvSecretConfig

Configuration for a required secret/environment variable.

Field Type Default Description
type str 'env'
name str required Name of the environment variable.
description str | None None Optional description of what this secret is used for.

AwsSecretsManagerSecretConfig

Configuration for a required secret from AWS Secrets Manager.

Field Type Default Description
type str 'aws-secrets-manager'
name str required Name of the environment variable.
arn str | None None Optional full AWS Secrets Manager ARN to source the secret from.
secret_name str | None None Optional Secrets Manager secret name to source the secret from, resolved under the deployment's default prefix exactly like name is. Use it to inject one env var (name) from a differently-named secret (e.g. name=HF_TOKEN, secret_name=team-x/HF_TOKEN). Mutually exclusive with arn.
description str | None None Optional description of what this secret is used for.

TranscriptSource

Field Type Default Description
eval_set_id str required The input eval-set ID.

AdditionalModelConfig

Field Type Default Description
name str required Model name; additional declarations do not accept args.

ApproverConfig

Configuration for an approval policy that Inspect can look up by name.

Field Type Default Description
name str required Name of the approver to use.
tools list[str] required These tools will need approval from the given approver.
args object | None None Approver arguments, passed as keyword arguments to the approver. May not contain the keys 'name', 'tools' or 'params', which Inspect reserves for the structure of an approver entry.
model_preferences list[str] | None None Ordered, provider-qualified monitor models. Hosted Hawk selects the first callable model allowed to read the primary model's transcripts and supplies it as the approver's model argument. Requires args.fallback_models: []; cannot be combined with args.model or args.chains.

CheckpointTriggerConfig

When to fire a checkpoint during a sample. Maps to one of Inspect's checkpoint trigger specs. Checkpoints are only evaluated at agent turn boundaries, so the effective cadence is max(turn duration, the configured interval).

Field Type Default Description
type 'time' | 'turn' | 'token' | 'manual' 'time' Trigger strategy: 'time' fires after a wall-clock interval, 'turn' every N agent turns, 'token' every N tokens of sample usage, 'manual' only on explicit agent checkpoint() calls.
every int | None None Interval for the trigger: seconds for type='time', number of turns for type='turn', number of tokens for type='token'. Ignored for type='manual'. Defaults to 600 (10 minutes) when type='time' and left unset.