Final reconciliation

This commit is contained in:
pudepiedj 2023-10-09 09:10:07 +01:00
parent 982c908984
commit 32bdf0ee4b
2 changed files with 8 additions and 4 deletions

View file

@ -622,7 +622,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
} }
// There were missing items from this list of helps so the wording needs checking (all inserted at the end, so reposition too): // There were missing items from this list of helps so the wording needs checking (all inserted at the end, so reposition too):
// --embedding, --beams, --ppl-stride, --ppl-output-type, memory-f32, no-mmap, mlock, use-color, nprobs // --embedding, --beams, --ppl-stride, --ppl-output-type, --memory-f32, --no-mmap, --mlock, --use-color, --nprobs, --alias, --infill
void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) { void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) {
printf("usage: %s [options]\n", argv[0]); printf("usage: %s [options]\n", argv[0]);
printf("\n"); printf("\n");
@ -740,6 +740,8 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) {
printf(" --mlock 0 (default): if true keep model in memory.\n"); printf(" --mlock 0 (default): if true keep model in memory.\n");
printf(" --use-color 0 (default): use color to distinguish generations from inputs\n"); printf(" --use-color 0 (default): use color to distinguish generations from inputs\n");
printf(" --nprobs N if > 0 output the probabilities of the top N tokens\n"); printf(" --nprobs N if > 0 output the probabilities of the top N tokens\n");
printf(" --alias model alias (default: 'unknown')\n");
printf(" --infill 0 (defaut) use infill mode\n");
printf("\n"); printf("\n");
} }

View file

@ -102,3 +102,5 @@
--mlock 0 (default): if true keep model in memory.\n" --mlock 0 (default): if true keep model in memory.\n"
--use_color 0 (default): use color to distinguish generations from inputs\n" --use_color 0 (default): use color to distinguish generations from inputs\n"
--nprobs N if > 0 output the probabilities of the top N tokens\n" --nprobs N if > 0 output the probabilities of the top N tokens\n"
--alias model alias (default: 'unknown')\n"
--infill 0 (defaut) use infill mode\n"