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
0ad0e738
Commit
0ad0e738
authored
Aug 18, 2024
by
Richard Lyons
Browse files
Override numParallel only if unset.
parent
d29cd4c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
server/sched.go
server/sched.go
+3
-1
No files found.
server/sched.go
View file @
0ad0e738
...
@@ -734,7 +734,9 @@ func pickBestFullFitByLibrary(req *LlmRequest, ggml *llm.GGML, gpus gpu.GpuInfoL
...
@@ -734,7 +734,9 @@ func pickBestFullFitByLibrary(req *LlmRequest, ggml *llm.GGML, gpus gpu.GpuInfoL
// If multiple Libraries are detected, pick the Library which loads the most layers for the model
// If multiple Libraries are detected, pick the Library which loads the most layers for the model
func
pickBestPartialFitByLibrary
(
req
*
LlmRequest
,
ggml
*
llm
.
GGML
,
gpus
gpu
.
GpuInfoList
,
numParallel
*
int
)
gpu
.
GpuInfoList
{
func
pickBestPartialFitByLibrary
(
req
*
LlmRequest
,
ggml
*
llm
.
GGML
,
gpus
gpu
.
GpuInfoList
,
numParallel
*
int
)
gpu
.
GpuInfoList
{
*
numParallel
=
1
if
*
numParallel
<=
0
{
*
numParallel
=
1
}
byLibrary
:=
gpus
.
ByLibrary
()
byLibrary
:=
gpus
.
ByLibrary
()
if
len
(
byLibrary
)
<=
1
{
if
len
(
byLibrary
)
<=
1
{
return
gpus
return
gpus
...
...
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