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
6a1b4713
Unverified
Commit
6a1b4713
authored
May 14, 2024
by
Daniel Hiltgen
Committed by
GitHub
May 14, 2024
Browse files
Merge pull request #4430 from dhiltgen/gpu_info
Remove VRAM convergence check for windows
parents
7ca71a6b
ec231a79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
server/sched.go
server/sched.go
+3
-2
No files found.
server/sched.go
View file @
6a1b4713
...
@@ -6,6 +6,7 @@ import (
...
@@ -6,6 +6,7 @@ import (
"fmt"
"fmt"
"log/slog"
"log/slog"
"reflect"
"reflect"
"runtime"
"sort"
"sort"
"strings"
"strings"
"sync"
"sync"
...
@@ -487,8 +488,8 @@ func (runner *runnerRef) needsReload(ctx context.Context, req *LlmRequest) bool
...
@@ -487,8 +488,8 @@ func (runner *runnerRef) needsReload(ctx context.Context, req *LlmRequest) bool
func
(
runner
*
runnerRef
)
waitForVRAMRecovery
()
chan
interface
{}
{
func
(
runner
*
runnerRef
)
waitForVRAMRecovery
()
chan
interface
{}
{
finished
:=
make
(
chan
interface
{},
1
)
finished
:=
make
(
chan
interface
{},
1
)
// CPU or Metal don't need checking, so no waiting required
// CPU or Metal don't need checking, so no waiting required
, windows can page VRAM, and the APIs we query tend to be optimistic on free space
if
len
(
runner
.
gpus
)
==
1
&&
(
runner
.
gpus
[
0
]
.
Library
==
"cpu"
||
runner
.
gpus
[
0
]
.
Library
==
"metal"
)
{
if
(
len
(
runner
.
gpus
)
==
1
&&
(
runner
.
gpus
[
0
]
.
Library
==
"cpu"
||
runner
.
gpus
[
0
]
.
Library
==
"metal"
)
)
||
runtime
.
GOOS
==
"windows"
{
finished
<-
struct
{}{}
finished
<-
struct
{}{}
return
finished
return
finished
}
}
...
...
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