Update llama.cpp
This commit is contained in:
parent
c2e31eecee
commit
1d47cce222
2 changed files with 4 additions and 3 deletions
|
@ -71,7 +71,7 @@ LLAMA_FILE_VERSION = ctypes.c_int(1)
|
|||
LLAMA_FILE_MAGIC = b"ggjt"
|
||||
LLAMA_FILE_MAGIC_UNVERSIONED = b"ggml"
|
||||
LLAMA_SESSION_MAGIC = b"ggsn"
|
||||
LLAMA_SESSION_VERSION = ctypes.c_int(0)
|
||||
LLAMA_SESSION_VERSION = ctypes.c_int(1)
|
||||
|
||||
llama_context_p = c_void_p
|
||||
|
||||
|
@ -239,7 +239,8 @@ _lib.llama_set_rng_seed.argtypes = [llama_context_p, c_int]
|
|||
_lib.llama_set_rng_seed.restype = None
|
||||
|
||||
|
||||
# Returns the size in bytes of the state (rng, logits, embedding and kv_cache)
|
||||
# Returns the maximum size in bytes of the state (rng, logits, embedding
|
||||
# and kv_cache) - will often be smaller after compacting tokens
|
||||
def llama_get_state_size(ctx: llama_context_p) -> c_size_t:
|
||||
return _lib.llama_get_state_size(ctx)
|
||||
|
||||
|
|
2
vendor/llama.cpp
vendored
2
vendor/llama.cpp
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 58b367c2d757c0ea12aec672382462b42204c724
|
||||
Subproject commit e216aa04633892b972d013719e38b59fd4917341
|
Loading…
Reference in a new issue