Skip to main content

Glassbox LLMs

Python PyTorch Transformers scikit-learn NumPy 🤗 Datasets Weights & Biases MLflow

Glassbox LLMs is a Python codebase for LLM interpretability experiments (instrumentation, patching, attribution, probes, circuits, and visualization demos).

Install

pip install glassbox

For local development (editable install):

pip install -e .

Usage

Run an experiment via the runner CLI

  • Entry point: python -m glassboxllms.runner.cli --config <path>
  • Example config: src/glassboxllms/runner/example_config.json
python -m glassboxllms.runner.cli --config src/glassboxllms/runner/example_config.json --dry-run
python -m glassboxllms.runner.cli --config src/glassboxllms/runner/example_config.json

Demo notebook: notebooks/glassbox_demo.ipynb

Experiments (in src/glassboxllms/experiments/)

  • cot_faithfulness/: Chain-of-Thought faithfulness evaluation.

    • What it tests: truncation (cut reasoning early and see if the answer changes) + error-injection (inject wrong reasoning and see if the model follows it).
    • Question sets: cot_faithfulness/questions/{arc_challenge,aqua,mmlu}.json
    • Core entrypoint (python API): glassboxllms.experiments.cot_faithfulness.CoTFaithfulnessEvaluator
  • TODO add in the remaining experiments + example usage

👥 Contributors

Meet the team behind Glassbox LLMs! Each contributor has played a key role in shaping the project.

Name Role Top PRs
Rawan Mahdi Project Lead & Architecture
Jordan Rivera ML Research & Interpretability #7 – Sparse autoencoder integration · #21 – Attention map visualizer
Sam Patel Feature Attribution & Analysis #15 – SHAP wrapper implementation · #29 – Gradient-based attribution
Morgan Lee Documentation & Tutorials #9 – Getting started guide · #38 – Notebook tutorial series
Taylor Kim Testing & CI/CD #11 – Test suite setup · #26 – GitHub Actions pipeline

Metadata

Release files for glassbox-llms 0.1.8

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

Source distribution (sdist)

Source distribution for glassbox-llms 0.1.8
File Size Uploaded
glassbox_llms-0.1.8.tar.gz 153.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for glassbox-llms 0.1.8
File Interpreter ABI Platform
glassbox_llms-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 307.1 kB

Release files / glassbox_llms-0.1.8.tar.gz

Download URL glassbox_llms-0.1.8.tar.gz
Size 153.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ef37eb64cd76f673fcfdf1c78962dea574fa8298e734aced9b3ac9ac7dfb4485
BLAKE2b-256 checksum
How to use checksums
411ff576a387d547b5a02d621807803a9288eafaa6aa1ceaed287dfa728eeb95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / glassbox_llms-0.1.8-py3-none-any.whl

Download URL glassbox_llms-0.1.8-py3-none-any.whl
Size 153.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a08d27b6b30b7c840f4645f629e5cd8dd371a786e56cb8787a41c0b190a7409
BLAKE2b-256 checksum
How to use checksums
a5ab9deece3d6003a60f523cdde81ae83dad8274c44a807975f01a0f91b3e798
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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