Skip to content

Commit 6eb2523

Browse files
committed
feat: Update llama.cpp
1 parent 20e6815 commit 6eb2523

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
@@ -198,13 +198,15 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
198198

199199

200200
# enum llama_vocab_type {
201-
# LLAMA_VOCAB_TYPE_SPM = 0, // SentencePiece
202-
# LLAMA_VOCAB_TYPE_BPE = 1, // Byte Pair Encoding
203-
# LLAMA_VOCAB_TYPE_WPM = 2, // WordPiece
201+
# LLAMA_VOCAB_TYPE_NONE = 0, // For models without vocab
202+
# LLAMA_VOCAB_TYPE_SPM = 1, // SentencePiece
203+
# LLAMA_VOCAB_TYPE_BPE = 2, // Byte Pair Encoding
204+
# LLAMA_VOCAB_TYPE_WPM = 3, // WordPiece
204205
# };
205-
LLAMA_VOCAB_TYPE_SPM = 0
206-
LLAMA_VOCAB_TYPE_BPE = 1
207-
LLAMA_VOCAB_TYPE_WPM = 2
206+
LLAMA_VOCAB_TYPE_NONE = 0
207+
LLAMA_VOCAB_TYPE_SPM = 1
208+
LLAMA_VOCAB_TYPE_BPE = 2
209+
LLAMA_VOCAB_TYPE_WPM = 3
208210

209211

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

vendor/llama.cpp

0 commit comments

Comments
 (0)