Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 218d361

Browse filesBrowse files
committed
feat: Update llama.cpp
1 parent 157d913 commit 218d361
Copy full SHA for 218d361

File tree

Expand file treeCollapse file tree

2 files changed

+9
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-5
lines changed
Open diff view settings
Collapse file

‎llama_cpp/llama_cpp.py‎

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+8-4Lines 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
Collapse file

‎vendor/llama.cpp‎

Copy file name to clipboard

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.