Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
56fd4e4e
"src/vscode:/vscode.git/clone" did not exist on "79bd7ecc7807c31edd7eee0cb136fd065334931e"
Commit
56fd4e4e
authored
Aug 14, 2023
by
Bruce MacDonald
Browse files
log embedding eval timing
parent
74f00474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
llm/llama.go
llm/llama.go
+3
-0
No files found.
llm/llama.go
View file @
56fd4e4e
...
...
@@ -471,6 +471,9 @@ 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
)))
n
:=
C
.
llama_n_embd
(
llm
.
ctx
)
if
n
<=
0
{
return
nil
,
errors
.
New
(
"llama: no embeddings generated"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment