8000 Fixed instruction stripping · abetlen/llama-cpp-python@e12b3ad · GitHub
[go: up one dir, main page]

Skip to content

Commit e12b3ad

Browse files
author
Mug
committed
Fixed instruction stripping
1 parent 9cde797 commit e12b3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/low_level_api_chatllama_cpp.py

Lines changed: 1 addition & 1 deletion
< 439E td data-grid-cell-id="diff-21b6187ce21f5460da78789dbf387b9a7d00188c55a2003428ec0fbcb0f96375-79-79-2" data-line-anchor="diff-21b6187ce21f5460da78789dbf387b9a7d00188c55a2003428ec0fbcb0f96375R79" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">

Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self,
7575

7676
# add instruction as antiprompt
7777
if (self.instruct):
78-
self.first_antiprompt.append(self._tokenize(self.inp_prefix.strip()))
78+
self.first_antiprompt.append(self._tokenize(instruct_inp_prefix.strip()))
7979
8080
# primer feed
8181
if (len(primer) > 0):

0 commit comments

Comments
 (0)
0