MCPcopy Index your code

hub / github.com/decoderesearch/circuit-tracer / types & classes

Types & classes40 in github.com/decoderesearch/circuit-tracer

↓ 24 callersClassAttributionTargets
Container for processed attribution target specifications. Encapsulates target identifiers, softmax probabilities, and demeaned unembedding v
circuit_tracer/attribution/targets.py:46
↓ 11 callersClassLogitTarget
Token metadata for attribution: string representation and vocabulary index.
circuit_tracer/attribution/targets.py:22
↓ 11 callersClassSingleLayerTranscoder
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 callersClassJumpReLU
circuit_tracer/transcoder/activation_functions.py:37
↓ 9 callersClassCustomTarget
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 callersClassTranscoderSet
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 callersClassGraph
circuit_tracer/graph.py:18
↓ 6 callersClassTransformerLens_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 callersClassCrossLayerTranscoder
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 callersClassTopK
circuit_tracer/transcoder/activation_functions.py:53
↓ 1 callersClassAttributionContext
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 callersClassAttributionContext
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 callersClassEnvoyWrapper
circuit_tracer/replacement_model/replacement_model_nnsight.py:37
↓ 1 callersClassHfUri
Structured representation of a HuggingFace URI.
circuit_tracer/utils/hf_utils.py:20
↓ 1 callersClassListHandler
Handler that appends log records to a list.
circuit_tracer/frontend/local_server.py:19
↓ 1 callersClassMetadata
circuit_tracer/frontend/graph_models.py:4
↓ 1 callersClassMockTokenizer
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 callersClassModel
circuit_tracer/frontend/graph_models.py:119
↓ 1 callersClassPruneResult
circuit_tracer/graph.py:228
↓ 1 callersClassQParams
circuit_tracer/frontend/graph_models.py:14
↓ 1 callersClassReplacementMLP
Wrapper for a TransformerLens MLP layer that adds in extra hooks
circuit_tracer/replacement_model/replacement_model_transformerlens.py:29
↓ 1 callersClassReplacementUnembed
Wrapper for a TransformerLens Unembed layer that adds in extra hooks
circuit_tracer/replacement_model/replacement_model_transformerlens.py:44
↓ 1 callersClassReusableTCPServer
circuit_tracer/frontend/local_server.py:31
↓ 1 callersClassServer
circuit_tracer/frontend/local_server.py:163
↓ 1 callersClassTestGetActivations
Test get_activations method for both nnsight and transformer_lens implementations.
tests/_test_get_activations.py:11
↓ 1 callersClassTestGetActivationsEdgeCases
Additional tests for edge cases and specific scenarios.
tests/_test_get_activations.py:265
ClassCircuitGraphHandler
circuit_tracer/frontend/local_server.py:37
ClassExample
circuit_tracer/frontend/feature_models.py:4
ClassExamplesQuantile
circuit_tracer/frontend/feature_models.py:11
ClassInterventionGraph
demos/graph_visualization.py:13
ClassLink
circuit_tracer/frontend/graph_models.py:113
ClassModel
circuit_tracer/frontend/feature_models.py:16
ClassNNSightReplacementModel
circuit_tracer/replacement_model/replacement_model_nnsight.py:51
ClassNode
circuit_tracer/frontend/graph_models.py:22
ClassReplacementModel
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
ClassSupernode
demos/graph_visualization.py:45
ClassTestHfUtilsDownload
Test suite for the download_hf_uris function.
tests/utils/test_hf_utils.py:26
ClassTransformerLensReplacementModel
circuit_tracer/replacement_model/replacement_model_transformerlens.py:67
ClassUnifiedConfig
A unified config class that supports both TransformerLens and NNsight field names.
circuit_tracer/utils/tl_nnsight_mapping.py:198
Classjumprelu
circuit_tracer/transcoder/activation_functions.py:11