Skip to content

Commit

Permalink
fix mps bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom-md committed Mar 22, 2024
1 parent 4c03b3d commit e7b238f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sae_training/sae_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def load_from_pretrained(cls, path: str):
try:
if torch.backends.mps.is_available():
group = torch.load(path, map_location="mps")
group.cfg.device = "mps"
group["cfg"].device = "mps"
else:
group = torch.load(path)
except Exception as e:
Expand Down

0 comments on commit e7b238f

Please sign in to comment.