Skip to content

Commit 6bb3522

Browse files
committed
bump high level API
1 parent 39704ec commit 6bb3522

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llama_cpp/llama.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ def tokenize(self, text: bytes, add_bos: bool = True) -> List[int]:
430430
n_tokens = llama_cpp.llama_tokenize_with_model(
431431
self.model,
432432
text,
433+
len(text)
433434
tokens,
434435
n_ctx,
435436
add_bos,
@@ -440,6 +441,7 @@ def tokenize(self, text: bytes, add_bos: bool = True) -> List[int]:
440441
n_tokens = llama_cpp.llama_tokenize_with_model(
441442
self.model,
442443
text,
444+
len(text),
443445
tokens,
444446
n_tokens,
445447
add_bos,

0 commit comments

Comments
 (0)