From a98df46134bb567d7694f4dc0b37f65aaf95b388 Mon Sep 17 00:00:00 2001 From: Mihir Patel Date: Mon, 19 Feb 2024 01:11:56 -0500 Subject: [PATCH] add sorted --- 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.