Skip to content

Commit ade52b6

Browse files
committed
common : add llama_arg
1 parent 471e7e1 commit ade52b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

common/common.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,14 @@ std::vector<llama_arg> gpt_params_parser_init(gpt_params & params, llama_example
995995
params.flash_attn = true;
996996
}
997997
).set_env("LLAMA_ARG_FLASH_ATTN"));
998+
add_opt(llama_arg(
999+
{"--no-perf"},
1000+
format("disable internal libllama performance timings (default: %s)", params.no_perf ? "true" : "false"),
1001+
[](gpt_params & params) {
1002+
params.no_perf = true;
1003+
params.sparams.no_perf = true;
1004+
}
1005+
).set_env("LLAMA_ARG_FLASH_ATTN"));
9981006
add_opt(llama_arg(
9991007
{"-p", "--prompt"}, "PROMPT",
10001008
ex == LLAMA_EXAMPLE_MAIN

0 commit comments

Comments
 (0)