Skip to content

Commit

Permalink
Fix shard order (huggingface#32023)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-chu authored and zucchini-nlp committed Jul 24, 2024
1 parent 24283fe commit c60e66b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def permute(w, n_heads, dim1=dim, dim2=dim):
# Sharded
loaded = [
torch.load(os.path.join(input_base_path, file), map_location="cpu")
for file in os.listdir(input_base_path)
for file in sorted(os.listdir(input_base_path))
if file.endswith(".pth")
]
param_count = 0
Expand Down

0 comments on commit c60e66b

Please sign in to comment.