Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/decoderesearch/circuit-tracer
/ types & classes
Types & classes
40 in github.com/decoderesearch/circuit-tracer
⨍
Functions
672
◇
Types & classes
40
↳
Endpoints
12
↓ 24 callers
Class
AttributionTargets
Container for processed attribution target specifications. Encapsulates target identifiers, softmax probabilities, and demeaned unembedding v
circuit_tracer/attribution/targets.py:46
↓ 11 callers
Class
LogitTarget
Token metadata for attribution: string representation and vocabulary index.
circuit_tracer/attribution/targets.py:22
↓ 11 callers
Class
SingleLayerTranscoder
A per-layer transcoder (PLT) that replaces MLP computation with interpretable features. Per-layer transcoders decompose the output of a sing
circuit_tracer/transcoder/single_layer_transcoder.py:19
↓ 10 callers
Class
JumpReLU
circuit_tracer/transcoder/activation_functions.py:37
↓ 9 callers
Class
CustomTarget
A fully specified custom attribution target. Attributes: token_str: Label for this target (e.g., "logit(x)-logit(y)") prob: Weigh
circuit_tracer/attribution/targets.py:29
↓ 8 callers
Class
TranscoderSet
A collection of per-layer transcoders that enable construction of a replacement model. TranscoderSet manages the collection of SingleLayerTr
circuit_tracer/transcoder/single_layer_transcoder.py:231
↓ 7 callers
Class
Graph
circuit_tracer/graph.py:18
↓ 6 callers
Class
TransformerLens_NNSight_Mapping
Mapping specifying important locations in NNSight models, as well as mapping from TL Hook Points to NNSight locations
circuit_tracer/utils/tl_nnsight_mapping.py:6
↓ 5 callers
Class
CrossLayerTranscoder
A cross-layer transcoder (CLT) where features read from one layer and write to all subsequent layers. Cross-layer transcoders are the co
circuit_tracer/transcoder/cross_layer_transcoder.py:15
↓ 4 callers
Class
TopK
circuit_tracer/transcoder/activation_functions.py:53
↓ 1 callers
Class
AttributionContext
Manage hooks for computing attribution rows. This helper caches residual-stream activations **(forward pass)** and then registers backward ho
circuit_tracer/attribution/context_nnsight.py:19
↓ 1 callers
Class
AttributionContext
Manage hooks for computing attribution rows. This helper caches residual-stream activations **(forward pass)** and then registers backward ho
circuit_tracer/attribution/context_transformerlens.py:21
↓ 1 callers
Class
EnvoyWrapper
circuit_tracer/replacement_model/replacement_model_nnsight.py:37
↓ 1 callers
Class
HfUri
Structured representation of a HuggingFace URI.
circuit_tracer/utils/hf_utils.py:20
↓ 1 callers
Class
ListHandler
Handler that appends log records to a list.
circuit_tracer/frontend/local_server.py:19
↓ 1 callers
Class
Metadata
circuit_tracer/frontend/graph_models.py:4
↓ 1 callers
Class
MockTokenizer
Mock tokenizer for testing. This tokenizer supports bijective encode/decode for strings of the form ``"tok_<id>"`` so that roundtrip consiste
tests/test_attribution_targets.py:15
↓ 1 callers
Class
Model
circuit_tracer/frontend/graph_models.py:119
↓ 1 callers
Class
PruneResult
circuit_tracer/graph.py:228
↓ 1 callers
Class
QParams
circuit_tracer/frontend/graph_models.py:14
↓ 1 callers
Class
ReplacementMLP
Wrapper for a TransformerLens MLP layer that adds in extra hooks
circuit_tracer/replacement_model/replacement_model_transformerlens.py:29
↓ 1 callers
Class
ReplacementUnembed
Wrapper for a TransformerLens Unembed layer that adds in extra hooks
circuit_tracer/replacement_model/replacement_model_transformerlens.py:44
↓ 1 callers
Class
ReusableTCPServer
circuit_tracer/frontend/local_server.py:31
↓ 1 callers
Class
Server
circuit_tracer/frontend/local_server.py:163
↓ 1 callers
Class
TestGetActivations
Test get_activations method for both nnsight and transformer_lens implementations.
tests/_test_get_activations.py:11
↓ 1 callers
Class
TestGetActivationsEdgeCases
Additional tests for edge cases and specific scenarios.
tests/_test_get_activations.py:265
Class
CircuitGraphHandler
circuit_tracer/frontend/local_server.py:37
Class
Example
circuit_tracer/frontend/feature_models.py:4
Class
ExamplesQuantile
circuit_tracer/frontend/feature_models.py:11
Class
InterventionGraph
demos/graph_visualization.py:13
Class
Link
circuit_tracer/frontend/graph_models.py:113
Class
Model
circuit_tracer/frontend/feature_models.py:16
Class
NNSightReplacementModel
circuit_tracer/replacement_model/replacement_model_nnsight.py:51
Class
Node
circuit_tracer/frontend/graph_models.py:22
Class
ReplacementModel
Unified ReplacementModel interface that supports both nnsight and transformerlens backends. This class acts as a factory that creates the ap
circuit_tracer/replacement_model/replacement_model.py:16
Class
Supernode
demos/graph_visualization.py:45
Class
TestHfUtilsDownload
Test suite for the download_hf_uris function.
tests/utils/test_hf_utils.py:26
Class
TransformerLensReplacementModel
circuit_tracer/replacement_model/replacement_model_transformerlens.py:67
Class
UnifiedConfig
A unified config class that supports both TransformerLens and NNsight field names.
circuit_tracer/utils/tl_nnsight_mapping.py:198
Class
jumprelu
circuit_tracer/transcoder/activation_functions.py:11