Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 76b1d2c

Browse filesBrowse files
committed
Change properties to functions to match token functions
1 parent a7ba858 commit 76b1d2c
Copy full SHA for 76b1d2c

File tree

Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
-3Lines changed: 0 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.