From 4b2d366c37b0170077b07bb960ec61170e15bd46 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Mon, 14 Aug 2023 12:55:50 -0300 Subject: [PATCH] Update llama.go --- llm/llama.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llm/llama.go b/llm/llama.go index 1ed38edc..2a310cac 100644 --- a/llm/llama.go +++ b/llm/llama.go @@ -471,8 +471,7 @@ func (llm *llama) Embedding(input string) ([]float64, error) { return nil, errors.New("llama: eval") } - timings := C.llama_get_timings(llm.ctx) - log.Printf("embed: eval_ms=%v", parseDurationMs(float64(timings.t_p_eval_ms))) + C.llama_print_timings(llm.ctx) n := C.llama_n_embd(llm.ctx) if n <= 0 {