Update src/llama.cpp

Co-authored-by: Xuan Son Nguyen <thichthat@gmail.com>
This commit is contained in:
Georgi Gerganov 2024-09-10 13:03:54 +03:00 committed by GitHub
parent 6cce78c2ed
commit fd46535314
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20700,7 +20700,7 @@ llama_perf_data llama_perf_get(const void * ctx, enum llama_perf_type type) {
const auto * p = (const struct llama_context *) ctx;
data.t_start_ms = 1e-3 * p->t_start_us;
data.t_load_ms = 1e-3 * p->t_load_us;;
data.t_load_ms = 1e-3 * p->t_load_us;
data.t_p_eval_ms = 1e-3 * p->t_p_eval_us;
data.t_eval_ms = 1e-3 * p->t_eval_us;
data.n_p_eval = std::max(1, p->n_p_eval);