8000 feat: Update llama.cpp · coderonion/llama-cpp-python@3e2597e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e2597e

Browse files
committed
feat: Update llama.cpp
1 parent e0d7674 commit 3e2597e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

llama_cpp/llama_cpp.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
294294
# LLAMA_VOCAB_PRE_TYPE_MPT = 5,
295295
# LLAMA_VOCAB_PRE_TYPE_STARCODER = 6,
296296
# LLAMA_VOCAB_PRE_TYPE_GPT2 = 7,
297+
# LLAMA_VOCAB_PRE_TYPE_REFACT = 8,
298+
# LLAMA_VOCAB_PRE_TYPE_COMMAND_R = 9,
297299
# };
298300
LLAMA_VOCAB_PRE_TYPE_DEFAULT = 0
299301
LLAMA_VOCAB_PRE_TYPE_LLAMA3 = 1
@@ -303,6 +305,8 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
303305
LLAMA_VOCAB_PRE_TYPE_MPT = 5
304306
LLAMA_VOCAB_PRE_TYPE_STARCODER = 6
305307
LLAMA_VOCAB_PRE_TYPE_GPT2 = 7
308+
LLAMA_VOCAB_PRE_TYPE_REFACT = 8
309+
LLAMA_VOCAB_PRE_TYPE_COMMAND_R = 9
306310

307311

308312
# // note: these values should be synchronized with ggml_rope
@@ -494,7 +498,7 @@ class llama_token_data_array(ctypes.Structure):
494498

495499
llama_token_data_array_p = ctypes.POINTER(llama_token_data_array)
496500

497-
# typedef bool (*llama_progress_callback)(float progress, void *ctx);
501+
# typedef bool (*llama_progress_callback)(float progress, void * user_data);
498502
llama_progress_callback = 5232 ctypes.CFUNCTYPE(
499503
ctypes.c_bool, ctypes.c_float, ctypes.c_void_p
500504
)

vendor/llama.cpp

0 commit comments

Comments
 (0)
0