auto-circuit
A library for efficient patching and automatic circuit discovery.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.4%) to scientific vocabulary
Repository
A library for efficient patching and automatic circuit discovery.
Basic Info
- Host: GitHub
- Owner: UFO-101
- Language: Python
- Default Branch: main
- Homepage: https://UFO-101.github.io/auto-circuit
- Size: 34.7 MB
Statistics
- Stars: 76
- Watchers: 2
- Forks: 19
- Open Issues: 10
- Releases: 10
Metadata Files
README.md
AutoCircuit

A library for efficient patching and automatic circuit discovery.
Read the paper
Transformer Circuit Metrics are not Robust (Oral spotlight, COLM 2024)
Getting Started
bash
pip install auto-circuit
Easy and Efficient Edge Patching
https://github.com/UFO-101/auto-circuit/blob/03ce552ccdea98fc6fed3b05cfb2df9b0eb4e323/experiments/demos/zeroablatean_edge.py#L20-L26
Different Ablation Methods
https://github.com/UFO-101/auto-circuit/blob/03ce552ccdea98fc6fed3b05cfb2df9b0eb4e323/experiments/demos/patchanedge.py#L37
Automatic Circuit Discovery
https://github.com/UFO-101/auto-circuit/blob/03ce552ccdea98fc6fed3b05cfb2df9b0eb4e323/experiments/demos/patchanedge.py#L49-L55
Visualization
https://github.com/UFO-101/auto-circuit/blob/5777057b445d55b7d4695eed8aface9d6bcefbe3/experiments/demos/patchsomeedges.py#L49

Cite this library
@inproceedings{
miller2024transformer,
title={Transformer Circuit Evaluation Metrics Are Not Robust},
author={Joseph Miller and Bilal Chughtai and William Saunders},
booktitle={First Conference on Language Modeling},
year={2024},
url={https://openreview.net/forum?id=zSf8PJyQb2}
}
Owner
- Login: UFO-101
- Kind: user
- Repositories: 2
- Profile: https://github.com/UFO-101
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Miller"
given-names: "Joseph"
- family-names: "Chughtai"
given-names: "Bilal"
- family-names: "Saunders"
given-names: "William"
title: "Transformer Circuit Evaluation Metrics Are Not Robust"
date-released: 2024
url: "https://openreview.net/forum?id=zSf8PJyQb2"
preferred-citation:
type: conference-paper
authors:
- family-names: "Miller"
given-names: "Joseph"
- family-names: "Chughtai"
given-names: "Bilal"
- family-names: "Saunders"
given-names: "William"
title: "Transformer Circuit Evaluation Metrics Are Not Robust"
collection-title: "First Conference on Language Modeling"
year: 2024
url: "https://openreview.net/forum?id=zSf8PJyQb2"
GitHub Events
Total
- Issues event: 4
- Watch event: 41
- Issue comment event: 11
- Push event: 5
- Pull request event: 2
- Fork event: 8
Last Year
- Issues event: 4
- Watch event: 41
- Issue comment event: 11
- Push event: 5
- Pull request event: 2
- Fork event: 8
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 1
- Total pull requests: 1
- Average time to close issues: 9 minutes
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: 9 minutes
- Average time to close pull requests: less than a minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- JoakimEdin (1)
- dtch1997 (1)
- TianBian95 (1)
- gerald4 (1)
- oliveradk (1)
Pull Request Authors
- oliveradk (6)
- UFO-101 (2)
- leobertolazzi (1)
- PMMon (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 55 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 10
- Total maintainers: 1
pypi.org: auto-circuit
- Documentation: https://auto-circuit.readthedocs.io/
-
Latest release: 1.0.1
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- 163 dependencies
- einops ^0.6.1
- ordered-set ^4.1.0
- plotly ^5.15.0
- pygraphviz ^1.11
- python ~3.10
- torch ^2.0.1
- transformer-lens ^1.4.0