File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments