feat: Update llama.cpp
This commit is contained in:
parent
e0d7674e62
commit
3e2597eac8
2 changed files with 6 additions and 2 deletions
|
@ -294,6 +294,8 @@ LLAMA_VOCAB_TYPE_WPM = 3
|
|||
# LLAMA_VOCAB_PRE_TYPE_MPT = 5,
|
||||
# LLAMA_VOCAB_PRE_TYPE_STARCODER = 6,
|
||||
# LLAMA_VOCAB_PRE_TYPE_GPT2 = 7,
|
||||
# LLAMA_VOCAB_PRE_TYPE_REFACT = 8,
|
||||
# LLAMA_VOCAB_PRE_TYPE_COMMAND_R = 9,
|
||||
# };
|
||||
LLAMA_VOCAB_PRE_TYPE_DEFAULT = 0
|
||||
LLAMA_VOCAB_PRE_TYPE_LLAMA3 = 1
|
||||
|
@ -303,6 +305,8 @@ LLAMA_VOCAB_PRE_TYPE_FALCON = 4
|
|||
LLAMA_VOCAB_PRE_TYPE_MPT = 5
|
||||
LLAMA_VOCAB_PRE_TYPE_STARCODER = 6
|
||||
LLAMA_VOCAB_PRE_TYPE_GPT2 = 7
|
||||
LLAMA_VOCAB_PRE_TYPE_REFACT = 8
|
||||
LLAMA_VOCAB_PRE_TYPE_COMMAND_R = 9
|
||||
|
||||
|
||||
# // note: these values should be synchronized with ggml_rope
|
||||
|
@ -494,7 +498,7 @@ class llama_token_data_array(ctypes.Structure):
|
|||
|
||||
llama_token_data_array_p = ctypes.POINTER(llama_token_data_array)
|
||||
|
||||
# typedef bool (*llama_progress_callback)(float progress, void *ctx);
|
||||
# typedef bool (*llama_progress_callback)(float progress, void * user_data);
|
||||
llama_progress_callback = ctypes.CFUNCTYPE(
|
||||
ctypes.c_bool, ctypes.c_float, ctypes.c_void_p
|
||||
)
|
||||
|
|
2
vendor/llama.cpp
vendored
2
vendor/llama.cpp
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 6ecf3189e00a1e8e737a78b6d10e1d7006e050a2
|
||||
Subproject commit 628b299106d1e9476fdecb3cbe546bf5c60f1b89
|
Loading…
Reference in a new issue