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 6eb2523

Browse filesBrowse files
committed
feat: Update llama.cpp
1 parent 20e6815 commit 6eb2523
Copy full SHA for 6eb2523

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
@@ -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

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.