Skip to content

Commit

Permalink
Need to clean up the key some more
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr committed Dec 17, 2023
1 parent a0d480b commit 52bcd3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions olmo/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ def restore_checkpoint(
continue
key = f"{module_name}.{fqn}"
key = key.replace("_fsdp_wrapped_module.", "")
key = key.lstrip(".")
t = state_dict_to_load[key]
t = t.flatten()
param[spi.offset_in_shard : spi.offset_in_shard + spi.numel_in_shard].copy_(
Expand Down

0 comments on commit 52bcd3f

Please sign in to comment.