From 76b1d2cd20d68795a3bd9768591ad8c1f249ccff Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Sat, 20 May 2023 08:24:06 -0400 Subject: [PATCH] Change properties to functions to match token functions --- llama_cpp/llama.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/llama_cpp/llama.py b/llama_cpp/llama.py index e399028..6ccb823 100644 --- a/llama_cpp/llama.py +++ b/llama_cpp/llama.py @@ -1291,19 +1291,16 @@ class Llama: if llama_cpp.llama_set_state_data(self.ctx, state.llama_state) != state_size: raise RuntimeError("Failed to set llama state data") - @property def n_ctx(self) -> int: """Return the context window size.""" assert self.ctx is not None return llama_cpp.llama_n_ctx(self.ctx) - @property def n_embd(self) -> int: """Return the embedding size.""" assert self.ctx is not None return llama_cpp.llama_n_embd(self.ctx) - @property def n_vocab(self) -> int: """Return the vocabulary size.""" assert self.ctx is not None