8000 feat: Update llama.cpp · coderonion/llama-cpp-python@c3fc80a · GitHub
[go: up one dir, main page]

Skip to content

Commit c3fc80a

Browse files
committed
feat: Update llama.cpp
1 parent 9769e57 commit c3fc80a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

llama_cpp/llama_cpp.py

Lines 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

0 commit comments

Comments
 (0)
0