Skip to content

Commit 8d2cea5

Browse files
Apply suggestions from code review
Co-authored-by: Johannes Gäßler <johannesg@5d6.de>
1 parent 3943a4c commit 8d2cea5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

common/arg.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,70 +2115,70 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
21152115
[](common_params & params) {
21162116
params.hellaswag = true;
21172117
}
2118-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2118+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21192119
add_opt(common_arg(
21202120
{"--hellaswag-tasks"}, "N",
21212121
string_format("number of tasks to use when computing the HellaSwag score (default: %zu)", params.hellaswag_tasks),
21222122
[](common_params & params, int value) {
21232123
params.hellaswag_tasks = value;
21242124
}
2125-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2125+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21262126
add_opt(common_arg(
21272127
{"--winogrande"},
21282128
"compute Winogrande score over random tasks from datafile supplied with -f",
21292129
[](common_params & params) {
21302130
params.winogrande = true;
21312131
}
2132-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2132+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21332133
add_opt(common_arg(
21342134
{"--winogrande-tasks"}, "N",
21352135
string_format("number of tasks to use when computing the Winogrande score (default: %zu)", params.winogrande_tasks),
21362136
[](common_params & params, int value) {
21372137
params.winogrande_tasks = value;
21382138
}
2139-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2139+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21402140
add_opt(common_arg(
21412141
{"--multiple-choice"},
21422142
"compute multiple choice score over random tasks from datafile supplied with -f",
21432143
[](common_params & params) {
21442144
params.multiple_choice = true;
21452145
}
2146-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2146+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21472147
add_opt(common_arg(
21482148
{"--multiple-choice-tasks"}, "N",
21492149
string_format("number of tasks to use when computing the multiple choice score (default: %zu)", params.multiple_choice_tasks),
21502150
[](common_params & params, int value) {
21512151
params.multiple_choice_tasks = value;
21522152
}
2153-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2153+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21542154
add_opt(common_arg(
21552155
{"--kl-divergence"},
21562156
"computes KL-divergence to logits provided via --kl-divergence-base",
21572157
[](common_params & params) {
21582158
params.kl_divergence = true;
21592159
}
2160-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2160+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21612161
add_opt(common_arg(
21622162
{"--save-all-logits", "--kl-divergence-base"}, "FNAME",
21632163
"set logits file",
21642164
[](common_params & params, const std::string & value) {
21652165
params.logits_file = value;
21662166
}
2167-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2167+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21682168
add_opt(common_arg(
21692169
{"--ppl-stride"}, "N",
21702170
string_format("stride for perplexity calculation (default: %d)", params.ppl_stride),
21712171
[](common_params & params, int value) {
21722172
params.ppl_stride = value;
21732173
}
2174-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2174+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21752175
add_opt(common_arg(
21762176
{"--ppl-output-type"}, "<0|1>",
21772177
string_format("output type for perplexity calculation (default: %d)", params.ppl_output_type),
21782178
[](common_params & params, int value) {
21792179
params.ppl_output_type = value;
21802180
}
2181-
).set_examples({LLAMA_EXAMPLE_PERPLEXITY, LLAMA_EXAMPLE_FINETUNE}));
2181+
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
21822182
add_opt(common_arg(
21832183
{"-dt", "--defrag-thold"}, "N",
21842184
string_format("KV cache defragmentation threshold (default: %.1f, < 0 - disabled)", (double)params.defrag_thold),

0 commit comments

Comments
 (0)