@@ -1062,8 +1062,8 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
1062
1062
params.ignore_eos = true ;
1063
1063
return true ;
1064
1064
}
1065
- if (arg == " --no- penalize-nl" ) {
1066
- sparams.penalize_nl = false ;
1065
+ if (arg == " --penalize-nl" ) {
1066
+ sparams.penalize_nl = true ;
1067
1067
return true ;
1068
1068
}
1069
1069
if (arg == " -l" || arg == " --logit-bias" ) {
@@ -1373,7 +1373,7 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) {
1373
1373
printf (" -dt N, --defrag-thold N\n " );
1374
1374
printf (" KV cache defragmentation threshold (default: %.1f, < 0 - disabled)\n " , params.defrag_thold );
1375
1375
printf (" --ignore-eos ignore end of stream token and continue generating (implies --logit-bias 2-inf)\n " );
1376
- printf (" --no- penalize-nl do not penalize newline token \n " );
1376
+ printf (" --penalize-nl penalize newline tokens \n " );
1377
1377
printf (" --temp N temperature (default: %.1f)\n " , (double )sparams.temp );
1378
1378
printf (" --all-logits return logits for all tokens in the batch (default: disabled)\n " );
1379
1379
printf (" --hellaswag compute HellaSwag score over random tasks from datafile supplied with -f\n " );
@@ -2489,7 +2489,7 @@ void dump_non_result_info_yaml(FILE * stream, const gpt_params & params, const l
2489
2489
fprintf (stream, " n_predict: %d # default: -1 (unlimited)\n " , params.n_predict );
2490
2490
fprintf (stream, " n_probs: %d # only used by server binary, default: 0\n " , sparams.n_probs );
2491
2491
fprintf (stream, " no_mmap: %s # default: false\n " , !params.use_mmap ? " true" : " false" );
2492
- fprintf (stream, " no_penalize_nl : %s # default: false\n " , ! sparams.penalize_nl ? " true" : " false" );
2492
+ fprintf (stream, " penalize_nl : %s # default: false\n " , sparams.penalize_nl ? " true" : " false" );
2493
2493
fprintf (stream, " ppl_output_type: %d # default: 0\n " , params.ppl_output_type );
2494
2494
fprintf (stream, " ppl_stride: %d # default: 0\n " , params.ppl_stride );
2495
2495
fprintf (stream, " presence_penalty: %f # default: 0.0\n " , sparams.penalty_present );
0 commit comments