File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Filter options
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:
1291
1291
if llama_cpp .llama_set_state_data (self .ctx , state .llama_state ) != state_size :
1292
1292
raise RuntimeError ("Failed to set llama state data" )
1293
1293
1294
- @property
1295
1294
def n_ctx (self ) -> int :
1296
1295
"""Return the context window size."""
1297
1296
assert self .ctx is not None
1298
1297
return llama_cpp .llama_n_ctx (self .ctx )
1299
1298
1300
- @property
1301
1299
def n_embd (self ) -> int :
1302
1300
"""Return the embedding size."""
1303
1301
assert self .ctx is not None
1304
1302
return llama_cpp .llama_n_embd (self .ctx )
1305
1303
1306
- @property
1307
1304
def n_vocab (self ) -> int :
1308
1305
"""Return the vocabulary size."""
1309
1306
assert self .ctx is not None
You can’t perform that action at this time.
0 commit comments