Skip to content

Commit 82c99cf

Browse files
committed
bugfix
1 parent fbbda7e commit 82c99cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ int main(int argc, char ** argv) {
327327
}
328328

329329
// replace end of text token with newline token when in interactive mode
330-
if (id == llama_token_eos() && params.interactive && instruct_mode) {
330+
if (id == llama_token_eos() && params.interactive && !instruct_mode) {
331331
id = llama_token_newline.front();
332332
if (params.antiprompt.size() != 0) {
333333
// tokenize and inject first reverse prompt

0 commit comments

Comments
 (0)