[PR #9893] [MERGED] server/internal/client/ollama: confirm all chunksums were received #13085

Closed
opened 2026-04-13 00:17:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9893
Author: @bmizerany
Created: 3/19/2025
Status: Merged
Merged: 3/19/2025
Merged by: @bmizerany

Base: mainHead: bmizerany/checksizeisright


📝 Commits (1)

  • 4763266 server/internal/client/ollama: confirm all chunksums were received

📊 Changes

2 files changed (+135 additions, -79 deletions)

View changed files

📝 server/internal/client/ollama/registry.go (+53 -69)
📝 server/internal/client/ollama/registry_test.go (+82 -10)

📄 Description

If the chunksums response is missing a chunk, the client should fail
the download. This changes the client to check that all bytes are
accounted for in the chunksums response.

It is possible there are overlaps or gaps in the chunksums response and
so the size is not the only thing left to check, but this provides
enough coverage for now. We may want to check that chunks are contiguous
later.


🔄 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/9893 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 3/19/2025 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/checksizeisright` --- ### 📝 Commits (1) - [`4763266`](https://github.com/ollama/ollama/commit/476326676931a806053302fa35fef8a9bf1c704b) server/internal/client/ollama: confirm all chunksums were received ### 📊 Changes **2 files changed** (+135 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `server/internal/client/ollama/registry.go` (+53 -69) 📝 `server/internal/client/ollama/registry_test.go` (+82 -10) </details> ### 📄 Description If the chunksums response is missing a chunk, the client should fail the download. This changes the client to check that all bytes are accounted for in the chunksums response. It is possible there are overlaps or gaps in the chunksums response and so the size is not the only thing left to check, but this provides enough coverage for now. We may want to check that chunks are contiguous later. --- <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:17:33 -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#13085