[PR #9933] [MERGED] server/internal/client/ollama: cache completed chunks #13102

Closed
opened 2026-04-13 00:18:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9933
Author: @bmizerany
Created: 3/21/2025
Status: Merged
Merged: 3/31/2025
Merged by: @bmizerany

Base: mainHead: bmizerany/client2resume


📝 Commits (1)

  • c37e837 server/internal/client/ollama: cache completed chunks

📊 Changes

2 files changed (+437 additions, -297 deletions)

View changed files

📝 server/internal/client/ollama/registry.go (+75 -20)
📝 server/internal/client/ollama/registry_test.go (+362 -277)

📄 Description

This change adds tracking of download chunks during the pull process so
that subsequent pulls can skip downloading already completed chunks.
This works across restarts of ollama.

Currently, download state will be lost if a prune is triggered during a
pull (e.g. restart or remove). This issue should be addressed in a
follow-up PR.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/9933 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 3/21/2025 **Status:** ✅ Merged **Merged:** 3/31/2025 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/client2resume` --- ### 📝 Commits (1) - [`c37e837`](https://github.com/ollama/ollama/commit/c37e837b99f944b2c7de83cb31fc224438c6b8ff) server/internal/client/ollama: cache completed chunks ### 📊 Changes **2 files changed** (+437 additions, -297 deletions) <details> <summary>View changed files</summary> 📝 `server/internal/client/ollama/registry.go` (+75 -20) 📝 `server/internal/client/ollama/registry_test.go` (+362 -277) </details> ### 📄 Description This change adds tracking of download chunks during the pull process so that subsequent pulls can skip downloading already completed chunks. This works across restarts of ollama. Currently, download state will be lost if a prune is triggered during a pull (e.g. restart or remove). This issue should be addressed in a follow-up PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:18:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13102