Update llama.go
This commit is contained in:
parent
56fd4e4ef2
commit
4b2d366c37
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue