File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ int main(int argc, char ** argv) {
85
85
params.prompt = gpt_random_prompt (rng);
86
86
}
87
87
88
- bool instruct_mode = params.instruct_prefix .empty () && params.instruct_suffix .empty ();
88
+ bool instruct_mode = ! params.instruct_prefix .empty () || ! params.instruct_suffix .empty ();
89
89
90
90
// params.prompt = R"(// this function checks if the number n is prime
91
91
// bool is_prime(int n) {)";
@@ -327,7 +327,7 @@ int main(int argc, char ** argv) {
327
327
}
328
328
329
329
// 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) {
331
331
id = llama_token_newline.front ();
332
332
if (params.antiprompt .size () != 0 ) {
333
333
// tokenize and inject first reverse prompt
You can’t perform that action at this time.
0 commit comments