mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
log embedding eval timing
This commit is contained in:
@@ -471,6 +471,8 @@ func (llm *llama) Embedding(input string) ([]float64, error) {
|
||||
return nil, errors.New("llama: eval")
|
||||
}
|
||||
|
||||
C.llama_print_timings(llm.ctx)
|
||||
|
||||
n := C.llama_n_embd(llm.ctx)
|
||||
if n <= 0 {
|
||||
return nil, errors.New("llama: no embeddings generated")
|
||||
|
||||
Reference in New Issue
Block a user