File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 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) {
234234 LOG (" add_bos: %d\n " , add_bos);
235235
236236 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 ;
241242 std::vector<llama_token> embd_inp;
242243 std::vector<llama_token> inp_pfx = ::llama_tokenize (ctx, params.input_prefix , false );
243244 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