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
2ab20095
Unverified
Commit
2ab20095
authored
Aug 14, 2023
by
Bruce MacDonald
Committed by
GitHub
Aug 14, 2023
Browse files
log embedding eval timing
parents
74f00474
4b2d366c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
llm/llama.go
llm/llama.go
+2
-0
No files found.
llm/llama.go
View file @
2ab20095
...
...
@@ -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"
)
...
...
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