[Fix] observability: Log scheduler stats once per attention CP group (#45319)
Co-authored-by: Hun-ho Kim <hunho.kim@samsung.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Hun-ho Kim
Claude Opus 5.5
parent
c7687a0e7c
commit
35c873cff4
@@ -1326,7 +1326,9 @@ class SchedulerMetricsCollector(_StatLoggerDIMixin):
|
||||
) -> SchedulerMetricsCollectorContext:
|
||||
enable_metrics = get_observability().enable_metrics
|
||||
parallel = get_parallel()
|
||||
is_stats_logging_rank = parallel.attn_tp_rank == 0
|
||||
is_stats_logging_rank = (
|
||||
parallel.attn_tp_rank == 0 and parallel.attn_cp_rank == 0
|
||||
)
|
||||
current_scheduler_metrics_enabled = enable_metrics and (
|
||||
is_stats_logging_rank
|
||||
or get_observability().enable_metrics_for_all_schedulers
|
||||
|
||||
Reference in New Issue
Block a user