Skip to content

Commit d7153ab

Browse files
committed
Update llama.cpp
1 parent 37d5192 commit d7153ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llama_cpp/llama_cpp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def llama_token_to_str(ctx: llama_context_p, token: llama_token) -> bytes:
618618
# Special tokens
619619

620620

621-
# LLAMA_API llama_token llama_token_bos();
621+
# LLAMA_API llama_token llama_token_bos(); // beginning-of-sentence
622622
def llama_token_bos() -> int:
623623
return _lib.llama_token_bos()
624624

@@ -627,7 +627,7 @@ def llama_token_bos() -> int:
627627
_lib.llama_token_bos.restype = llama_token
628628

629629

630-
# LLAMA_API llama_token llama_token_eos();
630+
# LLAMA_API llama_token llama_token_eos(); // end-of-sentence
631631
def llama_token_eos() -> int:
632632
return _lib.llama_token_eos()
633633

@@ -636,7 +636,7 @@ def llama_token_eos() -> int:
636636
_lib.llama_token_eos.restype = llama_token
637637

638638

639-
# LLAMA_API llama_token llama_token_nl();
639+
# LLAMA_API llama_token llama_token_nl(); // next-line
640640
def llama_token_nl() -> int:
641641
return _lib.llama_token_nl()
642642

vendor/llama.cpp

0 commit comments

Comments
 (0)