Optimize retract (#440)

This commit is contained in:
Liangsheng Yin
2024-05-26 00:07:26 +08:00
committed by GitHub
parent 2cea6146d8
commit f06e90c2cf
7 changed files with 298 additions and 113 deletions

View File

@@ -28,5 +28,11 @@ class GlobalConfig:
# Request dependency time due to network delay
self.request_dependency_time = 0.03
# New generation token ratio estimation
self.base_new_token_ratio = 0.4
self.base_min_new_token_ratio = 0.2
self.new_token_ratio_decay = 0.0001
self.new_token_ratio_recovery = 0.05
global_config = GlobalConfig()