Skip to content

Commit 96298c1

Browse files
committed
Comment out eot condition to generate all tokens
1 parent bedb048 commit 96298c1

File tree

1 file changed

+4
-4
lines changed
  • examples/qualcomm/oss_scripts/llama3_2/runner

1 file changed

+4
-4
lines changed

examples/qualcomm/oss_scripts/llama3_2/runner/runner.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,10 @@ Error Runner::generate(
364364
token_callback(piece_res.get().c_str());
365365
}
366366

367-
if (pos >= num_prompt_tokens && eos_id_.count(cur_token) > 0) {
368-
ET_LOG(Info, "\nReached to the end of generation");
369-
break;
370-
}
367+
// if (pos >= num_prompt_tokens && eos_id_.count(cur_token) > 0) {
368+
// ET_LOG(Info, "\nReached to the end of generation");
369+
// break;
370+
// }
371371
}
372372
};
373373

0 commit comments

Comments
 (0)