estimate log value
This commit is contained in:
parent
512bbb8044
commit
cef3cf353a
@ -338,7 +338,7 @@ func EstimateGPULayers(gpus []discover.GpuInfo, f *ggml.GGML, projectors []strin
|
|||||||
return estimate
|
return estimate
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m MemoryEstimate) log() {
|
func (m MemoryEstimate) LogValue() slog.Value {
|
||||||
overhead := envconfig.GpuOverhead()
|
overhead := envconfig.GpuOverhead()
|
||||||
|
|
||||||
log := slog.With()
|
log := slog.With()
|
||||||
@ -352,8 +352,8 @@ func (m MemoryEstimate) log() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info(
|
return slog.GroupValue(
|
||||||
"offload to "+m.inferenceLibrary,
|
slog.String("library", m.inferenceLibrary),
|
||||||
slog.Group(
|
slog.Group(
|
||||||
"layers",
|
"layers",
|
||||||
// requested number of layers to offload
|
// requested number of layers to offload
|
||||||
|
@ -139,7 +139,7 @@ func NewLlamaServer(gpus discover.GpuInfoList, model string, f *ggml.GGML, adapt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
estimate.log()
|
slog.Info("offload", "", estimate)
|
||||||
|
|
||||||
// Loop through potential servers
|
// Loop through potential servers
|
||||||
finalErr := errors.New("no suitable llama servers found")
|
finalErr := errors.New("no suitable llama servers found")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user