[Misc] sort torch profiler table by kernel timing (#11813)

This commit is contained in:
Divakar Verma 2025-01-07 20:57:04 -06:00 committed by GitHub
parent 91445c7bc8
commit 4d29e91be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ def main(args: argparse.Namespace):
llm.generate(dummy_prompts,
sampling_params=sampling_params,
use_tqdm=False)
print(p.key_averages())
print(p.key_averages().table(sort_by="self_cuda_time_total"))
else:
start_time = time.perf_counter()
llm.generate(dummy_prompts,