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
33a65e3b
Commit
33a65e3b
authored
Jul 01, 2024
by
Josh Yan
Browse files
error
parent
e70610ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
llm/server.go
llm/server.go
+3
-0
llm/status.go
llm/status.go
+1
-0
No files found.
llm/server.go
View file @
33a65e3b
...
...
@@ -560,6 +560,9 @@ func (s *llmServer) WaitUntilRunning(ctx context.Context) error {
if
s
.
status
!=
nil
&&
s
.
status
.
LastErrMsg
!=
""
{
msg
=
s
.
status
.
LastErrMsg
}
if
strings
.
Contains
(
msg
,
"unknown model"
)
{
return
fmt
.
Errorf
(
"this model is not supported by your version of Ollama. You may need to upgrade"
)
}
return
fmt
.
Errorf
(
"llama runner process has terminated: %v %s"
,
err
,
msg
)
default
:
}
...
...
llm/status.go
View file @
33a65e3b
...
...
@@ -25,6 +25,7 @@ var errorPrefixes = []string{
"CUDA error"
,
"cudaMalloc failed"
,
"
\"
ERR
\"
"
,
"architecture"
,
}
func
(
w
*
StatusWriter
)
Write
(
b
[]
byte
)
(
int
,
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