[Core] Fix tracking of model forward time in case of PP>1 (#7440)

[Core] Fix tracking of model forward time to the span traces in case of PP>1 (#7440)
This commit is contained in:
Mahesh Keralapura
2024-08-16 13:46:01 -07:00
committed by GitHub
parent f366f6339b
commit 93478b63d2
5 changed files with 94 additions and 11 deletions
+1 -1
View File
@@ -1033,9 +1033,9 @@ class Scheduler:
# Schedule sequence groups.
# This function call changes the internal states of the scheduler
# such as self.running, self.swapped, and self.waiting.
scheduler_start_time = time.perf_counter()
scheduler_outputs = self._schedule()
now = time.time()
scheduler_start_time = time.perf_counter()
if not self.cache_config.enable_prefix_caching:
common_computed_block_nums = []