common: fixed not working find argument --n-gpu-layers-draft (#9175)

This commit is contained in:
Herman Semenov 2024-08-25 22:54:37 +00:00 committed by GitHub
parent f91fc5639b
commit 93bc3839f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -901,7 +901,7 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
}
return true;
}
if (arg == "-ngld" || arg == "--gpu-layers-draft" || arg == "--gpu-layers-draft") {
if (arg == "-ngld" || arg == "--gpu-layers-draft" || arg == "--n-gpu-layers-draft") {
CHECK_ARG
params.n_gpu_layers_draft = std::stoi(argv[i]);
if (!llama_supports_gpu_offload()) {