Skip to content

Commit 76b1d2c

Browse files
committed
Change properties to functions to match token functions
1 parent a7ba858 commit 76b1d2c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: llama_cpp/llama.py

-3
Original file line numberDiff line numberDiff line change
@@ -1291,19 +1291,16 @@ def load_state(self, state: LlamaState) -> None:
12911291
if llama_cpp.llama_set_state_data(self.ctx, state.llama_state) != state_size:
12921292
raise RuntimeError("Failed to set llama state data")
12931293

1294-
@property
12951294
def n_ctx(self) -> int:
12961295
"""Return the context window size."""
12971296
assert self.ctx is not None
12981297
return llama_cpp.llama_n_ctx(self.ctx)
12991298

1300-
@property
13011299
def n_embd(self) -> int:
13021300
"""Return the embedding size."""
13031301
assert self.ctx is not None
13041302
return llama_cpp.llama_n_embd(self.ctx)
13051303

1306-
@property
13071304
def n_vocab(self) -> int:
13081305
"""Return the vocabulary size."""
13091306
assert self.ctx is not None

0 commit comments

Comments
 (0)