Make decode log interval configurable (#1847)

This commit is contained in:
Byron Hsu
2024-10-30 19:59:20 -07:00
committed by GitHub
parent 2d4ce1b792
commit a7a0a6886b
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -919,7 +919,7 @@ class Scheduler:
self.token_to_kv_pool.free_group_end()
self.forward_ct_decode = (self.forward_ct_decode + 1) % (1 << 30)
if self.tp_rank == 0 and self.forward_ct_decode % 40 == 0:
if self.tp_rank == 0 and self.forward_ct_decode % self.server_args.decode_log_interval == 0:
self.print_decode_stats()
def add_logprob_return_values(