Xiao-Yong Jin 0c06204fb3
main : add --in-prefix-bos to prefix BOS to user inputs; keep EOS (#2304)
* add `--in-prefix-bos` to prefix BOS to user inputs; keep EOS

The BOS precedes the string specified by `--in-prefix`.
Model generated EOS is now kept in the context.

It provides a way to strictly following the prompt format used in
Llama-2-chat.

The EOS handling also benefits some existing finetunes that uses
EOS to mark the end of turn.

* examples/common: move input_prefix_bos to other bools
2023-07-25 15:19:11 +03:00
..
2023-07-19 10:01:11 +03:00
2023-07-19 10:01:11 +03:00
2023-07-19 10:01:11 +03:00
2023-07-19 10:01:11 +03:00
2023-07-19 10:01:11 +03:00
2023-03-29 20:21:09 +03:00
2023-03-25 21:51:41 +02:00
2023-07-23 14:16:48 +03:00