mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 06:39:25 +01:00
imatrix : fix arg parser for imatrix (#9366)
* imatrix : fix arg parser * beautify printing first arg
This commit is contained in:
parent
a876861455
commit
00b02bb249
@ -600,7 +600,9 @@ std::string llama_arg::to_string() {
|
|||||||
if (args.size() == 1) {
|
if (args.size() == 1) {
|
||||||
ss << arg;
|
ss << arg;
|
||||||
} else {
|
} else {
|
||||||
ss << format("%-7s", arg) << ", ";
|
// first arg is usually abbreviation, we need padding to make it more beautiful
|
||||||
|
auto tmp = std::string(arg) + ", ";
|
||||||
|
ss << format("%-7s", tmp.c_str());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ss << arg << (arg != args.back() ? ", " : "");
|
ss << arg << (arg != args.back() ? ", " : "");
|
||||||
|
@ -577,7 +577,7 @@ int main(int argc, char ** argv) {
|
|||||||
params.logits_all = true;
|
params.logits_all = true;
|
||||||
params.verbosity = 1;
|
params.verbosity = 1;
|
||||||
|
|
||||||
auto options = gpt_params_parser_init(params, LLAMA_EXAMPLE_COMMON, print_usage);
|
auto options = gpt_params_parser_init(params, LLAMA_EXAMPLE_IMATRIX, print_usage);
|
||||||
if (!gpt_params_parse(argc, argv, params, options)) {
|
if (!gpt_params_parse(argc, argv, params, options)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user