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 5a595f0

Browse filesBrowse files
committed
feat: Update llama.cpp
1 parent 3dbfec7 commit 5a595f0
Copy full SHA for 5a595f0

File tree

Expand file treeCollapse file tree

2 files changed

+9
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-7
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,10 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
296296
# LLAMA_VOCAB_PRE_TYPE_GPT2 = 7,
297297
# LLAMA_VOCAB_PRE_TYPE_REFACT = 8,
298298
# LLAMA_VOCAB_PRE_TYPE_COMMAND_R = 9,
299-
# LLAMA_VOCAB_PRE_TYPE_QWEN2 = 10,
300-
# LLAMA_VOCAB_PRE_TYPE_OLMO = 11,
301-
# LLAMA_VOCAB_PRE_TYPE_DBRX = 12,
299+
# LLAMA_VOCAB_PRE_TYPE_STABLELM2 = 10,
300+
# LLAMA_VOCAB_PRE_TYPE_QWEN2 = 11,
301+
# LLAMA_VOCAB_PRE_TYPE_OLMO = 12,
302+
# LLAMA_VOCAB_PRE_TYPE_DBRX = 13,
302303
# };
303304
LLAMA_VOCAB_PRE_TYPE_DEFAULT = 0
304305
LLAMA_VOCAB_PRE_TYPE_LLAMA3 = 1
@@ -310,9 +311,10 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
310311
LLAMA_VOCAB_PRE_TYPE_GPT2 = 7
311312
LLAMA_VOCAB_PRE_TYPE_REFACT = 8
312313
LLAMA_VOCAB_PRE_TYPE_COMMAND_R = 9
313-
LLAMA_VOCAB_PRE_TYPE_QWEN2 = 10
314-
LLAMA_VOCAB_PRE_TYPE_OLMO = 11
315-
LLAMA_VOCAB_PRE_TYPE_DBRX = 12
314+
LLAMA_VOCAB_PRE_TYPE_STABLELM2 = 10
315+
LLAMA_VOCAB_PRE_TYPE_QWEN2 = 11
316+
LLAMA_VOCAB_PRE_TYPE_OLMO = 12
317+
LLAMA_VOCAB_PRE_TYPE_DBRX = 13
316318

317319

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

‎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.