From e90e122f2a6970edb7d10d1b95e5e97932ef8e18 Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Fri, 14 Apr 2023 23:33:18 -0400 Subject: [PATCH] Use clear --- llama_cpp/llama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.