transformer_lens.patching - TransformerLens Documentation
A module for patching activations in a transformer model, and measuring the effect of the patch on
the output. This implements the activation patching technique for a range of types of activation.
The structure is to have a single generic_activation_patch() function that does everything,
and to have a range of specialised functions for specific types of activation.
https://transformerlensorg.github.io/TransformerLens/generated/code/transformer_lens.patching.html#transformer_lens.patching.get_act_patch_resid_mid