parallel : process system prompt once + configurable paramters + llama API
This commit is contained in:
parent
82e20e9ba0
commit
4b5f3cd6bf
9 changed files with 187 additions and 93 deletions
|
@ -977,7 +977,7 @@ int main(int argc, char ** argv) {
|
|||
|
||||
test t(inst, lmodel, ctx);
|
||||
|
||||
llama_kv_cache_rm_tokens(ctx, -1, -1);
|
||||
llama_kv_cache_tokens_rm(ctx, -1, -1);
|
||||
|
||||
// warmup run
|
||||
if (t.n_prompt > 0) {
|
||||
|
@ -988,7 +988,7 @@ int main(int argc, char ** argv) {
|
|||
}
|
||||
|
||||
for (int i = 0; i < params.reps; i++) {
|
||||
llama_kv_cache_rm_tokens(ctx, -1, -1);
|
||||
llama_kv_cache_tokens_rm(ctx, -1, -1);
|
||||
|
||||
uint64_t t_start = get_time_ns();
|
||||
if (t.n_prompt > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue