[Misc] Accurately capture the time of loading weights (#14063)
Signed-off-by: Jun Duan <jun.duan.phd@outlook.com>
This commit is contained in:
@@ -1114,7 +1114,7 @@ class GPUModelRunnerBase(ModelRunnerBase[TModelInputForGPU]):
|
||||
time_after_load = time.perf_counter()
|
||||
|
||||
self.model_memory_usage = m.consumed_memory
|
||||
logger.info("Loading model weights took %.4f GB and %.6f seconds",
|
||||
logger.info("Model loading took %.4f GB and %.6f seconds",
|
||||
self.model_memory_usage / float(2**30),
|
||||
time_after_load - time_before_load)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user