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
6e76348d
Unverified
Commit
6e76348d
authored
Apr 24, 2024
by
Daniel Hiltgen
Committed by
GitHub
Apr 24, 2024
Browse files
Merge pull request #3834 from dhiltgen/not_found_in_path
Report errors on server lookup instead of path lookup failure
parents
74d2a9ef
8711d03d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
llm/server.go
llm/server.go
+6
-0
No files found.
llm/server.go
View file @
6e76348d
...
@@ -208,6 +208,12 @@ func NewLlamaServer(gpus gpu.GpuInfoList, model string, ggml *GGML, adapters, pr
...
@@ -208,6 +208,12 @@ func NewLlamaServer(gpus gpu.GpuInfoList, model string, ggml *GGML, adapters, pr
for
i
:=
0
;
i
<
len
(
servers
);
i
++
{
for
i
:=
0
;
i
<
len
(
servers
);
i
++
{
dir
:=
availableServers
[
servers
[
i
]]
dir
:=
availableServers
[
servers
[
i
]]
if
dir
==
""
{
// Shouldn't happen
finalErr
=
fmt
.
Errorf
(
"[%d] server %s not listed in available servers %v"
,
i
,
servers
[
i
],
availableServers
)
slog
.
Error
(
"sever list inconsistent"
,
"error"
,
finalErr
)
continue
}
// Find an availableServers port, retry on each iterration in case the failure was a port conflict race
// Find an availableServers port, retry on each iterration in case the failure was a port conflict race
port
:=
0
port
:=
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