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
43a72614
Commit
43a72614
authored
Nov 17, 2023
by
Bruce MacDonald
Committed by
Jeffrey Morgan
Nov 18, 2023
Browse files
fix potentially inaccurate error message
parent
984714f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
llm/llama.go
llm/llama.go
+1
-1
server/routes.go
server/routes.go
+1
-1
No files found.
llm/llama.go
View file @
43a72614
...
@@ -226,7 +226,7 @@ type llama struct {
...
@@ -226,7 +226,7 @@ type llama struct {
}
}
var
(
var
(
errNvidiaSMI
=
errors
.
New
(
"nvidia-smi command failed"
)
errNvidiaSMI
=
errors
.
New
(
"
warning: gpu support may not be enabled, check you have installed GPU drivers:
nvidia-smi command failed"
)
errAvailableVRAM
=
errors
.
New
(
"not enough VRAM available, falling back to CPU only"
)
errAvailableVRAM
=
errors
.
New
(
"not enough VRAM available, falling back to CPU only"
)
)
)
...
...
server/routes.go
View file @
43a72614
...
@@ -794,7 +794,7 @@ func Serve(ln net.Listener, allowOrigins []string) error {
...
@@ -794,7 +794,7 @@ func Serve(ln net.Listener, allowOrigins []string) error {
if
runtime
.
GOOS
==
"linux"
{
if
runtime
.
GOOS
==
"linux"
{
// check compatibility to log warnings
// check compatibility to log warnings
if
_
,
err
:=
llm
.
CheckVRAM
();
err
!=
nil
{
if
_
,
err
:=
llm
.
CheckVRAM
();
err
!=
nil
{
log
.
Printf
(
"Warning: GPU support may not be enabled, check you have installed GPU drivers: %v"
,
err
)
log
.
Printf
(
err
.
Error
()
)
}
}
}
}
...
...
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