llama : uniform variable names + struct init

This commit is contained in:
Georgi Gerganov 2023-07-05 23:15:54 +03:00
parent 4fe95c6985
commit 26cc1bd7a2
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
3 changed files with 29 additions and 29 deletions

10
llama.h
View file

@ -138,10 +138,10 @@ extern "C" {
struct llama_timings {
double t_start_ms;
double t_end_ms;
double load_time_ms;
double sample_time_ms;
double prompt_eval_time_ms;
double eval_time_ms;
double t_load_ms;
double t_sample_ms;
double t_p_eval_ms;
double t_eval_ms;
int32_t n_sample;
int32_t n_p_eval;
@ -345,7 +345,7 @@ extern "C" {
LLAMA_API llama_token llama_sample_token(struct llama_context * ctx, llama_token_data_array * candidates);
// Performance information
LLAMA_API llama_timings llama_get_timings(struct llama_context * ctx);
LLAMA_API struct llama_timings llama_get_timings(struct llama_context * ctx);
LLAMA_API void llama_print_timings(struct llama_context * ctx);
LLAMA_API void llama_reset_timings(struct llama_context * ctx);