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
7c168b08
Unverified
Commit
7c168b08
authored
Feb 20, 2025
by
frob
Committed by
GitHub
Feb 20, 2025
Browse files
server: add missing function parens to debug log (#9255)
parent
3d4cc783
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/sched.go
server/sched.go
+1
-1
No files found.
server/sched.go
View file @
7c168b08
...
@@ -179,7 +179,7 @@ func (s *Scheduler) processPending(ctx context.Context) {
...
@@ -179,7 +179,7 @@ func (s *Scheduler) processPending(ctx context.Context) {
if
allReliable
{
if
allReliable
{
// HACK
// HACK
os
.
Setenv
(
"OLLAMA_MAX_LOADED_MODELS"
,
strconv
.
Itoa
(
defaultModelsPerGPU
*
len
(
gpus
)))
os
.
Setenv
(
"OLLAMA_MAX_LOADED_MODELS"
,
strconv
.
Itoa
(
defaultModelsPerGPU
*
len
(
gpus
)))
slog
.
Debug
(
"updating default concurrency"
,
"OLLAMA_MAX_LOADED_MODELS"
,
envconfig
.
MaxRunners
,
"gpu_count"
,
len
(
gpus
))
slog
.
Debug
(
"updating default concurrency"
,
"OLLAMA_MAX_LOADED_MODELS"
,
envconfig
.
MaxRunners
()
,
"gpu_count"
,
len
(
gpus
))
}
else
{
}
else
{
// HACK
// HACK
os
.
Setenv
(
"OLLAMA_MAX_LOADED_MODELS"
,
strconv
.
Itoa
(
len
(
gpus
)))
os
.
Setenv
(
"OLLAMA_MAX_LOADED_MODELS"
,
strconv
.
Itoa
(
len
(
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