mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
keepalive
This commit is contained in:
parent
55cd3ddcca
commit
8570c1c0ef
3 changed files with 55 additions and 47 deletions
|
@ -401,7 +401,7 @@ func (s *Scheduler) load(req *LlmRequest, ggml *llm.GGML, gpus gpu.GpuInfoList,
|
|||
if numParallel < 1 {
|
||||
numParallel = 1
|
||||
}
|
||||
sessionDuration := envconfig.KeepAlive
|
||||
sessionDuration := envconfig.KeepAlive()
|
||||
if req.sessionDuration != nil {
|
||||
sessionDuration = req.sessionDuration.Duration
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue