File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,11 @@ int main(int argc, char ** argv) {
234
234
LOG (" add_bos: %d\n " , add_bos);
235
235
236
236
bool suff_rm_leading_spc = params.escape ;
237
- if (suff_rm_leading_spc && params.input_suffix .find_first_of (" " ) == 0 && params.input_suffix .size () > 1 ) {
238
- params.input_suffix .erase (0 , 1 );
239
- suff_rm_leading_spc = false ;
240
- }
237
+ // if (suff_rm_leading_spc && params.input_suffix.find_first_of(" ") == 0 && params.input_suffix.size() > 1) {
238
+ // params.input_suffix.erase(0, 1);
239
+ // suff_rm_leading_spc = false;
240
+ // }
241
+ suff_rm_leading_spc = true ;
241
242
std::vector<llama_token> embd_inp;
242
243
std::vector<llama_token> inp_pfx = ::llama_tokenize (ctx, params.input_prefix , false );
243
244
std::vector<llama_token> inp_sfx = ::llama_tokenize (ctx, params.input_suffix , false );
You can’t perform that action at this time.
0 commit comments