Skip to content

Commit

Permalink
fix lists (mosaicml#3138)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 committed Mar 22, 2024
1 parent 8cc44ed commit 81547ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer/utils/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ def read_data(self, plan: LoadPlan, planner: LoadPlanner):
receiver = dist.get_global_rank() != rank_in_first_replica

# Send list of files to all ranks
file_list = [
file_list = [[
file_name for file_name in sorted(os.listdir(self.destination_path)) if file_name.endswith('.distcp')
]
]]
dist.broadcast_object_list(file_list, src=rank_in_first_replica, group=replicate_process_group)
file_list = file_list[0]
log.debug(f'List of files to broadcast: {file_list}')
Expand Down

0 comments on commit 81547ca

Please sign in to comment.