Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Merge pull request #1916 from ollama/mxyng/inactivity-monitor
Michael Yang6e0ea5ecc8fa
diff --cc server/download.goindex b58584878,12e19cab5..8570b590c--- a/server/download.go+++ b/server/download.go@@@ -157,9 -170,12 +170,12 @@@ func (b *blobDownload) run(ctx context.case errors.Is(err, context.Canceled), errors.Is(err, syscall.ENOSPC):// return immediately if the context is canceled or the device is out of spacereturn err+ case errors.Is(err, errPartStalled):+ try--+ continuecase err != nil:sleep := time.Second * time.Duration(math.Pow(2, float64(try)))- log.Printf("%s part %d attempt %d failed: %v, retrying in %s", b.Digest[7:19], part.N, try, err, sleep)+ slog.Info(fmt.Sprintf("%s part %d attempt %d failed: %v, retrying in %s", b.Digest[7:19], part.N, try, err, sleep))time.Sleep(sleep)continuedefault: