8000 Update llama.cpp · riverzhou/llama-cpp-python@1d47cce · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d47cce

Browse files
committed
Update llama.cpp
1 parent c2e31ee commit 1d47cce

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

llama_cpp/llama_cpp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _load_shared_library(lib_base_name):
7171
LLAMA_FILE_MAGIC = b"ggjt"
7272
LLAMA_FILE_MAGIC_UNVERSIONED = b"ggml"
7373
LLAMA_SESSION_MAGIC = b"ggsn"
74-
LLAMA_SESSION_VERSION = ctypes.c_int(0)
74+
LLAMA_SESSION_VERSION = ctypes.c_int(1)
7575

7676
llama_context_p = c_void_p
7777

@@ -239,7 +239,8 @@ def llama_set_rng_seed(ctx: llama_context_p, seed: c_int):
239239
_lib.llama_set_rng_seed.restype = None
240240

241241

242-
# Returns the size in bytes of the state (rng, logits, embedding and kv_cache)
242+
# Returns the maximum size in bytes of the state (rng, logits, embedding
243+
# and kv_cache) - will often be smaller after compacting tokens
243244
def llama_get_state_size(ctx: llama_context_p) -> c_size_t:
244245
return _lib.llama_get_state_size(ctx)
245246

vendor/llama.cpp

0 commit comments

Comments
 (0)
0