log embedding eval timing
This commit is contained in:
commit
2ab20095b3
1 changed files with 2 additions and 0 deletions
|
@ -471,6 +471,8 @@ func (llm *llama) Embedding(input string) ([]float64, error) {
|
||||||
return nil, errors.New("llama: eval")
|
return nil, errors.New("llama: eval")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
C.llama_print_timings(llm.ctx)
|
||||||
|
|
||||||
n := C.llama_n_embd(llm.ctx)
|
n := C.llama_n_embd(llm.ctx)
|
||||||
if n <= 0 {
|
if n <= 0 {
|
||||||
return nil, errors.New("llama: no embeddings generated")
|
return nil, errors.New("llama: no embeddings generated")
|
||||||
|
|
Loading…
Reference in a new issue