mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 22:59:24 +01:00
llama-bench: correct argument parsing error message (#9524)
This commit is contained in:
parent
8b836ae731
commit
7be099fa81
@ -439,6 +439,9 @@ static cmd_params parse_cmd_params(int argc, char ** argv) {
|
|||||||
}
|
}
|
||||||
types.push_back(gt);
|
types.push_back(gt);
|
||||||
}
|
}
|
||||||
|
if (invalid_param) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
params.type_k.insert(params.type_k.end(), types.begin(), types.end());
|
params.type_k.insert(params.type_k.end(), types.begin(), types.end());
|
||||||
} else if (arg == "-ctv" || arg == "--cache-type-v") {
|
} else if (arg == "-ctv" || arg == "--cache-type-v") {
|
||||||
if (++i >= argc) {
|
if (++i >= argc) {
|
||||||
@ -455,6 +458,9 @@ static cmd_params parse_cmd_params(int argc, char ** argv) {
|
|||||||
}
|
}
|
||||||
types.push_back(gt);
|
types.push_back(gt);
|
||||||
}
|
}
|
||||||
|
if (invalid_param) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
params.type_v.insert(params.type_v.end(), types.begin(), types.end());
|
params.type_v.insert(params.type_v.end(), types.begin(), types.end());
|
||||||
} else if (arg == "-t" || arg == "--threads") {
|
} else if (arg == "-t" || arg == "--threads") {
|
||||||
if (++i >= argc) {
|
if (++i >= argc) {
|
||||||
@ -520,6 +526,9 @@ static cmd_params parse_cmd_params(int argc, char ** argv) {
|
|||||||
}
|
}
|
||||||
modes.push_back(mode);
|
modes.push_back(mode);
|
||||||
}
|
}
|
||||||
|
if (invalid_param) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
params.split_mode.insert(params.split_mode.end(), modes.begin(), modes.end());
|
params.split_mode.insert(params.split_mode.end(), modes.begin(), modes.end());
|
||||||
} else if (arg == "-mg" || arg == "--main-gpu") {
|
} else if (arg == "-mg" || arg == "--main-gpu") {
|
||||||
if (++i >= argc) {
|
if (++i >= argc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user