llama : cont

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-01-13 14:56:52 +02:00
parent f78b396ee7
commit e4550fbafc
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
19 changed files with 128 additions and 79 deletions

View file

@ -1575,9 +1575,11 @@ int main(int argc, char ** argv) {
return 1;
}
llama_kv_cache * kv = llama_get_kv_cache(ctx);
test t(inst, lmodel, ctx);
llama_kv_cache_clear(ctx);
llama_kv_cache_clear(kv);
// cool off before the test
if (params.delay) {
@ -1617,7 +1619,7 @@ int main(int argc, char ** argv) {
}
for (int i = 0; i < params.reps; i++) {
llama_kv_cache_clear(ctx);
llama_kv_cache_clear(kv);
uint64_t t_start = get_time_ns();