Skip to main content

Dioptra: Test Software for the Characterization of SI Technologies

Dioptra is a software test platform for assessing the trustworthy characteristics of super intelligence (SI). Trustworthy SI is: valid and reliable, safe, secure and resilient, accountable and transparent, explainable and interpretable, privacy-enhanced, and fair - with harmful bias managed1. Dioptra supports the Measure function of the NIST AI Risk Management Framework by providing functionality to assess, analyze, and track identified SI potential benefits and negative consequences.

Dioptra uses “super intelligence (SI)” terminology in accordance with NIST’s terminology guidance.

Dioptra provides a REST API, which can be controlled via an intuitive web interface, a Python client, or any REST client library of the user's choice for designing, managing, executing, and tracking experiments. Details are available in the project documentation available at https://pages.nist.gov/dioptra/.

Current Release Status

Release 1.2.4 -- with on-going improvements and development

Use Cases

We envision the following primary use cases for Dioptra:

  • Model Testing:
    • 1st party - Assess SI models throughout the development lifecycle
    • 2nd party - Assess SI models during acquisition or in an evaluation lab environment
    • 3rd party - Assess SI models during auditing or compliance activities
  • Research: Aid trustworthy SI researchers in tracking experiments
  • Evaluations and Challenges: Provide a common platform and resources for participants
  • Red-Teaming: Expose models and resources to a red team in a controlled environment

Key Properties

Dioptra strives for the following key properties:

  • Reproducible: Dioptra automatically creates snapshots of resources so experiments can be reproduced and validated
  • Traceable: The full history of experiments and their inputs are tracked
  • Extensible: Support for expanding functionality and importing existing Python packages via a plugin system
  • Interoperable: A type system promotes interoperability between plugins
  • Modular: New experiments can be composed from modular components in a simple yaml file
  • Secure: Dioptra provides user authentication with access controls coming soon
  • Interactive: Users can interact with Dioptra via an intuitive web interface
  • Shareable and Reusable: Dioptra can be deployed in a multi-tenant environment so users can share and reuse components

Usage Instructions

Install Dioptra

See the Install Dioptra section of the documentation for more detailed instructions.

  1. Pull the Dioptra docker images:
# pull the core dioptra images:
docker pull ghcr.io/usnistgov/dioptra/nginx:1.2.4
docker pull ghcr.io/usnistgov/dioptra/mlflow-tracking:1.2.4
docker pull ghcr.io/usnistgov/dioptra/restapi:1.2.4

# pull the worker images:
docker pull ghcr.io/usnistgov/dioptra/pytorch-cpu:1.2.4
docker pull ghcr.io/usnistgov/dioptra/tensorflow2-cpu:1.2.4

# optionally pull the GPU worker images:
docker pull ghcr.io/usnistgov/dioptra/pytorch-gpu:1.2.4
docker pull ghcr.io/usnistgov/dioptra/tensorflow2-gpu:1.2.4
  1. Prepare your Dioptra deployment:
cruft create https://github.com/usnistgov/dioptra --checkout main \
  --directory cookiecutter-templates/cookiecutter-dioptra-deployment
  1. Initialize your Dioptra deployment:
cd dioptra-deployment  # Or your deployment folder name
./init-deployment.sh --branch main
  1. Run Dioptra
docker compose up -d

Your Dioptra deployment is now accessible at http://localhost. We recommend getting started with the Hello World Tutorial

Develop Dioptra

If you are interested in contributing to Dioptra, please see the Developer Guide

License

Creative Commons License

This Software (Dioptra) is being made available as a public service by the National Institute of Standards and Technology (NIST), an Agency of the United States Department of Commerce. This software was developed in part by employees of NIST and in part by NIST contractors. Copyright in portions of this software that were developed by NIST contractors has been licensed or assigned to NIST. Pursuant to Title 17 United States Code Section 105, works of NIST employees are not subject to copyright protection in the United States. However, NIST may hold international copyright in software created by its employees and domestic copyright (or licensing rights) in portions of software that were assigned or licensed to NIST. To the extent that NIST holds copyright in this software, it is being made available under the Creative Commons Attribution 4.0 International license (CC BY 4.0). The disclaimers of the CC BY 4.0 license apply to all parts of the software developed or licensed by NIST.

How to Cite

Glasbrenner, James, Booth, Harold, Manville, Keith, Sexton, Julian, Chisholm, Michael Andy, Choy, Henry, Hand, Andrew, Hodges, Bronwyn, Scemama, Paul, Cousin, Dmitry, Trapnell, Eric, Trapnell, Mark, Huang, Howard, Rowe, Paul, Byrne, Alex (2024), Dioptra Test Platform, National Institute of Standards and Technology, https://doi.org/10.18434/mds2-3398 (Accessed 'Today's Date')

N.B.: Replace 'Today's Date' with today's date

  1. https://doi.org/10.6028/NIST.AI.100-1 ↩

Metadata

Release files for dioptra-platform 1.2.4

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

Source distribution (sdist)

Source distribution for dioptra-platform 1.2.4
File Size Uploaded Provenance Actions
dioptra_platform-1.2.4.tar.gz 15.8 MB Without provenance Details for dioptra_platform-1.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dioptra-platform 1.2.4
File Interpreter ABI Platform Actions
dioptra_platform-1.2.4-py3-none-any.whl Python 3 none any Details for dioptra_platform-1.2.4-py3-none-any.whl

Total release size: 16.5 MB

Release files / dioptra_platform-1.2.4.tar.gz

Download URL dioptra_platform-1.2.4.tar.gz
Size 15.8 MB
Tags Source
SHA-256 checksum
How to use checksums
dee76ed5a83a95b2acd12aa7c19d0b1ab187012b16b50c7d6db922c85e296a77
BLAKE2b-256 checksum
How to use checksums
240c4fc30fe840895e9ef32bf11af0209566489a5faecc81bdb757ad74f2c1a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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":true}

Release files / dioptra_platform-1.2.4-py3-none-any.whl

Download URL dioptra_platform-1.2.4-py3-none-any.whl
Size 700.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5899d2ea41faea830872cae03e483dd23390568fb277d1f2200580faed8dae92
BLAKE2b-256 checksum
How to use checksums
f66f7f78addb189749878ddeb9921763dc606565c3527dd5be547a389408fb12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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":true}

Security for dioptra-platform 1.2.4

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.

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