[feat] Added metric into tqdm bar.

This commit is contained in:
Zijie Tian
2025-12-10 00:52:13 +08:00
parent 761929390e
commit 204fe2b38f
3 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
class Observer():
ttft_start = 0
tpot_start = 0
ttft = 0
tpot = 0
@classmethod
def reset_ttft(cls):
cls.ttft_start = 0
@classmethod
def complete_reset(cls):
cls.ttft_start = 0
cls.tpot_start = 0
cls.ttft = 0
cls.tpot = 0