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 d7153ab

Browse filesBrowse files
committed
Update llama.cpp
1 parent 37d5192 commit d7153ab
Copy full SHA for d7153ab

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+4
-4
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+3-3Lines 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

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.