Skip to main content

Collection of sandboxes for Inspect AI

Project description

Inspect Sandboxes

The inspect-sandboxes Python package provides cloud sandbox environments for Inspect AI evaluations. Each sample runs in a managed sandbox on your provider of choice while the Inspect process runs locally on your machine.

This lets you run evaluations without a local Docker daemon or your own Kubernetes cluster, and scale to many concurrent samples beyond what fits on a single machine.

For sandbox concepts and the SandboxEnvironment API, see the Inspect AI sandboxing guide.

Providers

Provider Registry Name Multi-service compose Requirements
Daytona daytona Yes (DinD) Daytona account + API key
Modal modal No (why?) Modal account

Installation

# Using pip
pip install inspect-sandboxes

# Using uv
uv pip install inspect-sandboxes

Quick start (Modal)

Authenticate with Modal (one-time):

python3 -m modal setup

Run a minimal evaluation:

from inspect_ai import Task, eval
from inspect_ai.solver import generate

task = Task(
    dataset=[{"input": "What is 2+2?", "target": "4"}],
    solver=[generate()],
    sandbox="modal",
)

eval(task)

For each sample in the dataset, a fresh Modal sandbox is provisioned, used to run the solver, and terminated when the sample completes. Since no image is specified here, Modal's default sandbox image is used (Debian Linux with Python matching your local interpreter's minor version) — place a Dockerfile or compose.yaml alongside the task (auto-detected) or pass one explicitly via sandbox=("modal", "path/to/Dockerfile") to provide your own.

See the Modal provider page for full configuration options.

Development

# Install dependencies
make install

# Run tests (skips integration tests)
make test

# Run all tests including integration tests
make test-all

# Run type checking and linting
make check

Project details


Download files

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

Source Distribution

inspect_sandboxes-0.3.0.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

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

inspect_sandboxes-0.3.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspect_sandboxes-0.3.0.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inspect_sandboxes-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e2b5f006dec2e2a1e865b7592d2217ce62f67a176b9bb000db78cb338fb45ff6
MD5 e1c9d0f093afcc57bbcb6246e277a6bb
BLAKE2b-256 3a2fac0605fb78342011103311c73d83057a600dca95bc87cba2063f3f63c9ee

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on meridianlabs-ai/inspect_sandboxes

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

File details

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

File metadata

File hashes

Hashes for inspect_sandboxes-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74ac5c8d09f5769bd96675f8ea3ee024186030525b09f9d93f40a7373d0c0b89
MD5 1e268bf0790f91ad4c54d1025510072a
BLAKE2b-256 797ca71b38587b7a38d8bcf42cd82c640f06f67f06bcc8c69fbf9f317c8c1921

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on meridianlabs-ai/inspect_sandboxes

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