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
1703d147
Unverified
Commit
1703d147
authored
May 05, 2025
by
Jeffrey Morgan
Committed by
GitHub
May 05, 2025
Browse files
server: fix panic when runner.Options is nil (#10566)
parent
91390502
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 @
1703d147
...
@@ -691,11 +691,13 @@ func (runner *runnerRef) LogValue() slog.Value {
...
@@ -691,11 +691,13 @@ func (runner *runnerRef) LogValue() slog.Value {
attrs
=
append
(
attrs
,
attrs
=
append
(
attrs
,
slog
.
String
(
"size"
,
format
.
HumanBytes2
(
runner
.
estimatedTotal
)),
slog
.
String
(
"size"
,
format
.
HumanBytes2
(
runner
.
estimatedTotal
)),
slog
.
String
(
"vram"
,
format
.
HumanBytes2
(
runner
.
estimatedVRAM
)),
slog
.
String
(
"vram"
,
format
.
HumanBytes2
(
runner
.
estimatedVRAM
)),
slog
.
Int
(
"num_ctx"
,
runner
.
NumCtx
),
slog
.
Int
(
"parallel"
,
runner
.
numParallel
),
slog
.
Int
(
"parallel"
,
runner
.
numParallel
),
slog
.
Int
(
"pid"
,
runner
.
pid
),
slog
.
Int
(
"pid"
,
runner
.
pid
),
slog
.
String
(
"model"
,
runner
.
modelPath
),
slog
.
String
(
"model"
,
runner
.
modelPath
),
)
)
if
runner
.
Options
!=
nil
{
attrs
=
append
(
attrs
,
slog
.
Int
(
"num_ctx"
,
runner
.
Options
.
NumCtx
))
}
return
slog
.
GroupValue
(
attrs
...
)
return
slog
.
GroupValue
(
attrs
...
)
}
}
...
...
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