Skip to content

Commit

Permalink
common : add llama_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Sep 8, 2024
1 parent 471e7e1 commit ade52b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,14 @@ std::vector<llama_arg> gpt_params_parser_init(gpt_params & params, llama_example
params.flash_attn = true;
}
).set_env("LLAMA_ARG_FLASH_ATTN"));
add_opt(llama_arg(
{"--no-perf"},
format("disable internal libllama performance timings (default: %s)", params.no_perf ? "true" : "false"),
[](gpt_params & params) {
params.no_perf = true;
params.sparams.no_perf = true;
}
).set_env("LLAMA_ARG_FLASH_ATTN"));
add_opt(llama_arg(
{"-p", "--prompt"}, "PROMPT",
ex == LLAMA_EXAMPLE_MAIN
Expand Down

0 comments on commit ade52b6

Please sign in to comment.