improve memory usage of state cache

This commit is contained in:
josc146 2023-10-28 23:04:49 +08:00
parent 77df56cddc
commit ff7306349a

View File

@ -9,7 +9,7 @@ router = APIRouter()
trie = None
dtrie: Dict = {}
max_trie_len = 3000
max_trie_len = 300
loop_start_id = 1 # to prevent preloaded prompts from being deleted
loop_del_trie_id = loop_start_id