Closed dtch1997 closed 1 month ago
Thank you for opening this. We need to spend some time investigating this before we fix it. This file specifically has recently had quite a few changes in the pending 2.0 release. There is a possibility that the bug is fixed there, so a little bit of work needs to be done to see the full scope.
This actually is fixed in v2.0 https://github.com/TransformerLensOrg/TransformerLens/blame/295aca59ef73971e97bc7df5723f7f701de8497b/transformer_lens/hook_points.py#L374
On Mon, 27 May 2024 at 19:46, Bryce Meyer @.***> wrote:
Thank you for opening this. We need to spend some time investigating this before we fix it. This file specifically has recently had quite a few changes in the pending 2.0 release. There is a possibility that the bug is fixed there, so a little bit of work needs to be done to see the full scope.
— Reply to this email directly, view it on GitHub https://github.com/TransformerLensOrg/TransformerLens/issues/611#issuecomment-2133931266, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRPNKLYE7D5JBY4U4WUDA3ZEN5QHAVCNFSM6AAAAABILBYWTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTHEZTCMRWGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I'll get it back ported into 1.x later today.
This has been resolved in 1.19, and a nice little test has been added to this to make sure this block is now covered for the future.
Describe the bug Incorrect use of
self.hook_dict
inHookedRootModule.hooks
when iterating over backward hooks.Code example
Additional context https://github.com/TransformerLensOrg/TransformerLens/blame/5a374ec4b33cec6281b37494175d14f06c75dcfd/transformer_lens/hook_points.py#L306-L313
Checklist