Skip to content

Commit c7fd2f5

Browse files
author
Mug
committed
Fix stripping instruction prompt
1 parent 9cde797 commit c7fd2f5

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
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(), False))
7979

8080
# primer feed
8181
if (len(primer) > 0):

0 commit comments

Comments
 (0)