From 38db9f122a24032d607b3b5689a6368af48f2a00 Mon Sep 17 00:00:00 2001 From: Joe Cummings Date: Mon, 22 Sep 2025 15:49:55 -0400 Subject: [PATCH] Grammatical updates to GC logging --- torchtitan/tools/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchtitan/tools/utils.py b/torchtitan/tools/utils.py index 37273a71de..fa122bee59 100644 --- a/torchtitan/tools/utils.py +++ b/torchtitan/tools/utils.py @@ -55,13 +55,13 @@ def run(self, step_count: int): ) gc.collect() elif step_count > 1 and step_count % self.gc_freq == 0: - self.collect("Performing periodical GC collection") + self.collect("Performing periodic GC collection") @staticmethod def collect(reason: str, generation: int = 1): begin = time.monotonic() gc.collect(generation) - logger.info("[GC] %s %.2f seconds", reason, time.monotonic() - begin) + logger.info("[GC] %s took %.2f seconds", reason, time.monotonic() - begin) # hardcoded BF16 type peak flops for NVIDIA A100, H100, H200, B200 GPU and AMD MI250, MI300X, AMD MI325X and Intel PVC