From b328599fcc3b51a102eb78bb09c3e12a387be445 Mon Sep 17 00:00:00 2001 From: Mihir Patel Date: Tue, 20 Feb 2024 16:15:35 -0500 Subject: [PATCH] add sorted (#3036) --- composer/utils/checkpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer/utils/checkpoint.py b/composer/utils/checkpoint.py index c1fe956192..e74047cf22 100644 --- a/composer/utils/checkpoint.py +++ b/composer/utils/checkpoint.py @@ -301,7 +301,7 @@ def read_data(self, plan: LoadPlan, planner: LoadPlanner): log.debug(f'Rank {dist.get_global_rank()} finished transferring files to all ranks.') dist.barrier() log.debug( - f'Done waiting for all ranks to finish transferring files. Local checkpoint files: {os.listdir(self.destination_path)}' + f'Done waiting for all ranks to finish transferring files. Local checkpoint files: {sorted(os.listdir(self.destination_path))}' ) # 5. Piggyback off of the FileSystemReader to read all the files now that they are downloaded.