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 c3fc80a

Browse filesBrowse files
committed
feat: Update llama.cpp
1 parent 9769e57 commit c3fc80a
Copy full SHA for c3fc80a

File tree

Expand file treeCollapse file tree

2 files changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-1
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
276276
# LLAMA_VOCAB_TYPE_BPE = 2, // GPT-2 tokenizer based on byte-level BPE
277277
# LLAMA_VOCAB_TYPE_WPM = 3, // BERT tokenizer based on WordPiece
278278
# LLAMA_VOCAB_TYPE_UGM = 4, // T5 tokenizer based on Unigram
279+
# LLAMA_VOCAB_TYPE_RWKV = 5, // RWKV tokenizer based on greedy tokenization
279280
# };
280281
LLAMA_VOCAB_TYPE_NONE = 0
281282
"""For models without vocab"""
@@ -287,6 +288,8 @@ def byref(obj: CtypesCData, offset: Optional[int] = None) -> CtypesRef[CtypesCDa
287288
"""BERT tokenizer based on WordPiece"""
288289
LLAMA_VOCAB_TYPE_UGM = 4
289290
"""T5 tokenizer based on Unigram"""
291+
LLAMA_VOCAB_TYPE_RWKV = 5
292+
"""RWKV tokenizer based on greedy tokenization"""
290293

291294

292295
# // pre-tokenization types

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