diff --git a/llama_cpp/llama.py b/llama_cpp/llama.py index 3ff94a6..93c6288 100644 --- a/llama_cpp/llama.py +++ b/llama_cpp/llama.py @@ -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.