Unverified Commit aa8f86a4 authored by Brian's avatar Brian Committed by GitHub
Browse files

Fix shard order (#32023)

parent b3818805
......@@ -161,7 +161,7 @@ def write_model(
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment