Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a595f0

Browse files
committed
feat: Update llama.cpp
1 parent 3dbfec7 commit 5a595f0

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

llama_cpp/llama_cpp.py

Lines 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

0 commit comments

Comments
 (0)