8000 feat: Update llama.cpp · CISC/llama-cpp-python@218d361 · GitHub
[go: up one dir, main page]

Skip to content

Commit 218d361

Browse files
committed
feat: Update llama.cpp
1 parent 157d913 commit 218d361

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

llama_cpp/llama_cpp.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,10 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
310310
# LLAMA_VOCAB_PRE_TYPE_DBRX = 13,
311311
# LLAMA_VOCAB_PRE_TYPE_SMAUG = 14,
312312
# LLAMA_VOCAB_PRE_TYPE_PORO = 15,
313-
# LLAMA_VOCAB_PRE_TYPE_VIKING = 16,
314-
# LLAMA_VOCAB_PRE_TYPE_JAIS = 17,
313+
# LLAMA_VOCAB_PRE_TYPE_CHATGLM3 = 16,
314+
# LLAMA_VOCAB_PRE_TYPE_CHATGLM4 = 17,
315+
# LLAMA_VOCAB_PRE_TYPE_VIKING = 18,
316+
# LLAMA_VOCAB_PRE_TYPE_JAIS = 19,
315317
# };
316318
LLAMA_VOCAB_PRE_TYPE_DEFAULT = 0
317319
LLAMA_VOCAB_PRE_TYPE_LLAMA3 = 1
@@ -329,8 +331,10 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
329331
LLAMA_VOCAB_PRE_TYPE_DBRX = 13
330332
LLAMA_VOCAB_PRE_TYPE_SMAUG = 14
331333
LLAMA_VOCAB_PRE_TYPE_PORO = 15
332-
LLAMA_VOCAB_PRE_TYPE_VIKING = 16
333-
LLAMA_VOCAB_PRE_TYPE_JAIS = 17
334+
LLAMA_VOCAV_PRE_TYPE_CHATGLM3 = 16
335+
LLAMA_VOCAB_PRE_TYPE_CHATGLM4 = 17
336+
LLAMA_VOCAB_PRE_TYPE_VIKING = 18
337+
LLAMA_VOCAB_PRE_TYPE_JAIS = 19
334338

335339

336340
# // note: these values should be synchronized with ggml_rope

vendor/llama.cpp

0 commit comments

Comments
 (0)
0