Skip to content

Commit

Permalink
Make load_state_dict use strict=False
Browse files Browse the repository at this point in the history
  • Loading branch information
neelnanda-io committed Apr 20, 2024
1 parent 6a056b7 commit fdf7fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sae_lens/training/sparse_autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def load_from_pretrained_legacy(cls, path: str):

# Create an instance of the class using the loaded configuration
instance = cls(cfg=state_dict["cfg"])
instance.load_state_dict(state_dict["state_dict"])
instance.load_state_dict(state_dict["state_dict"], strict=False)

return instance

Expand Down

0 comments on commit fdf7fe9

Please sign in to comment.