"tests/nn/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "d8fc94d95d51e496c5f56543165b5a1fe4f81c2c"
Commit 4b2d366c authored by Bruce MacDonald's avatar Bruce MacDonald
Browse files

Update llama.go

parent 56fd4e4e
...@@ -471,8 +471,7 @@ func (llm *llama) Embedding(input string) ([]float64, error) { ...@@ -471,8 +471,7 @@ func (llm *llama) Embedding(input string) ([]float64, error) {
return nil, errors.New("llama: eval") return nil, errors.New("llama: eval")
} }
timings := C.llama_get_timings(llm.ctx) C.llama_print_timings(llm.ctx)
log.Printf("embed: eval_ms=%v", parseDurationMs(float64(timings.t_p_eval_ms)))
n := C.llama_n_embd(llm.ctx) n := C.llama_n_embd(llm.ctx)
if n <= 0 { if n <= 0 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment