Arrakis’s documentation!#
Contents:
AttentionHeadComposition#
AttentionTools#
CausalTracingIntervention#
KnowledgeGraphExtractor#
KnowledgeProber#
LogitAttribution#
LogitLens#
ModelSurgery#
- class core_arrakis.model_surgery.ModelSurgery(model)#
Bases:
BaseInterpretabilityToolPerforms surgery on the model. Replaces, deletes, or permutes layers(in context).
- delete_layers(indices)#
Deletes the specified layers(in context).
- get_model()#
- permute_layers(indices)#
Permutes the layers based on the given indices(in context).
- replace_layers(indices, replacements)#
Replaces the specified layers with the given replacements(in context).