Revert "only rm when params.escape, rm space if possible which is added back or rm added space token"
This reverts commit 63ba0b621f
.
This commit is contained in:
parent
63ba0b621f
commit
003c15bfc5
1 changed files with 4 additions and 5 deletions
|
@ -234,11 +234,10 @@ int main(int argc, char ** argv) {
|
||||||
LOG("add_bos: %d\n", add_bos);
|
LOG("add_bos: %d\n", add_bos);
|
||||||
|
|
||||||
bool suff_rm_leading_spc = params.escape;
|
bool suff_rm_leading_spc = params.escape;
|
||||||
// if (suff_rm_leading_spc && params.input_suffix.find_first_of(" ") == 0 && params.input_suffix.size() > 1) {
|
if (suff_rm_leading_spc && params.input_suffix.find_first_of(" ") == 0 && params.input_suffix.size() > 1) {
|
||||||
// params.input_suffix.erase(0, 1);
|
params.input_suffix.erase(0, 1);
|
||||||
// suff_rm_leading_spc = false;
|
suff_rm_leading_spc = false;
|
||||||
// }
|
}
|
||||||
suff_rm_leading_spc = true;
|
|
||||||
std::vector<llama_token> embd_inp;
|
std::vector<llama_token> embd_inp;
|
||||||
std::vector<llama_token> inp_pfx = ::llama_tokenize(ctx, params.input_prefix, false);
|
std::vector<llama_token> inp_pfx = ::llama_tokenize(ctx, params.input_prefix, false);
|
||||||
std::vector<llama_token> inp_sfx = ::llama_tokenize(ctx, params.input_suffix, false);
|
std::vector<llama_token> inp_sfx = ::llama_tokenize(ctx, params.input_suffix, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue