mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-09 18:44:35 +00:00
use arg prefetch and remove arg unload
This commit is contained in:
parent
708b1d8c89
commit
c84f9d29fe
5 changed files with 15 additions and 19 deletions
|
@ -724,10 +724,10 @@ gpt_params_context gpt_params_parser_init(gpt_params & params, llama_example ex,
|
|||
}
|
||||
).set_env("LLAMA_ARG_NEXT_NODE_IP"));
|
||||
add_opt(llama_arg(
|
||||
{"--unload", "--unload-weight"},
|
||||
format("whether to unload layer weights after use (default: %s)", params.unload ? "true" : "false"),
|
||||
{"--prefetch"},
|
||||
format("whether to prefetch layer weights (default: %s)", params.prefetch ? "true" : "false"),
|
||||
[](gpt_params & params) {
|
||||
params.unload = true;
|
||||
params.prefetch = true;
|
||||
}
|
||||
).set_env("LLAMA_ARG_UNLOAD"));
|
||||
add_opt(llama_arg(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue