A library for doing research on developmental interpretability
Project description
DevInterp
A Python Library for Developmental Interpretability Research
DevInterp is a python library for conducting research on developmental interpretability, a novel AI safety research agenda rooted in Singular Learning Theory (SLT). DevInterp proposes tools for detecting, locating, and ultimately controlling the development of structure over training.
Read more about developmental interpretability.
:warning: This library is still in early development. Don't expect things to work on a first attempt. We are actively working on improving the library and adding new features. If you have any questions or suggestions, please feel free to open an issue or submit a pull request.
Installation
To install devinterp
, simply run:
pip install devinterp
Requirements: Python 3.8 or higher.
Getting Started
To see DevInterp in action, check out our example notebooks:
For mor advanced usage, see the Diagnostics notebook .
Minimal Example
from devinterp.slt import estimate_learning_coeff, estimate_learning_coeff_with_summary
from devinterp.optim import SGLD
# Assuming you have a PyTorch Module and DataLoader
learning_coeff = estimate_learning_coeff(model, trainloader, ...)
# If you want to see mean, std, and learning coeff estimate per chain
learning_coeff_summary = estimate_learning_coeff_with_summary(model, trainloader, ...)
Features
Contributing
See CONTRIBUTING.md for guidelines on how to contribute.
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
Hashes for devinterp-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d7ed201d8f97f18653a6b1f8479af19b13f3f63d93c2b462c858a66cdd87dfc |
|
MD5 | f65303085591c4e9f856cea4609f0d79 |
|
BLAKE2b-256 | b814296c3402135153c98a88fb2b0c97164d26ef898a6996ce4b5caaa2666a28 |