Use clear

This commit is contained in:
Andrei Betlen 2023-04-14 23:33:18 -04:00
parent ac7068a469
commit e90e122f2a

View file

@ -144,7 +144,7 @@ class Llama:
self.tokens.clear()
self.n_tokens = 0
self.n_past = 0
self.all_logits = []
self.all_logits.clear()
def eval(self, tokens: Sequence[llama_cpp.llama_token]):
"""Evaluate a list of tokens.