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
4b2d366c
Commit
4b2d366c
authored
Aug 14, 2023
by
Bruce MacDonald
Browse files
Update llama.go
parent
56fd4e4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
llm/llama.go
llm/llama.go
+1
-2
No files found.
llm/llama.go
View file @
4b2d366c
...
...
@@ -471,8 +471,7 @@ 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
)))
C
.
llama_print_timings
(
llm
.
ctx
)
n
:=
C
.
llama_n_embd
(
llm
.
ctx
)
if
n
<=
0
{
...
...
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