Skip to content

Commit

Permalink
common: fixed not working find argument --n-gpu-layers-draft (#9175)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek authored Aug 25, 2024
1 parent f91fc56 commit 93bc383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 93bc383

Please sign in to comment.