Fix flush_cache AttributeError on is_stats_logging_rank (#25641)

This commit is contained in:
fzyzcjy
2026-05-18 19:23:48 +08:00
committed by GitHub
parent 79b6749669
commit be64d875ad
+1 -1
View File
@@ -3320,7 +3320,7 @@ class Scheduler(
current_platform.empty_cache()
# Per-DP-group leader logs once: ranks within a DP group are
# state-synchronous, but DP groups may diverge.
if self.is_stats_logging_rank:
if self.metrics_reporter.is_stats_logging_rank:
logger.info("Cache flushed successfully!")
success = True
else: