[PR #1229] [MERGED] revert checksum calculation to calculate-as-you-go #10520

Closed
opened 2026-04-12 23:02:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1229
Author: @mxyng
Created: 11/21/2023
Status: Merged
Merged: 11/30/2023
Merged by: @mxyng

Base: mainHead: mxyng/calculate-as-you-go


📝 Commits (4)

  • 2799784 revert checksum calculation to calculate-as-you-go
  • 26c6341 new hasher
  • c4bdfff upload: separate progress tracking
  • 13efd5f upload: fix PUT retry

📊 Changes

1 file changed (+37 additions, -33 deletions)

View changed files

📝 server/upload.go (+37 -33)

📄 Description

calculating the checksum as it's being transferred is faster overall since the file doesn't need to be reread


🔄 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/1229 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 11/21/2023 **Status:** ✅ Merged **Merged:** 11/30/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/calculate-as-you-go` --- ### 📝 Commits (4) - [`2799784`](https://github.com/ollama/ollama/commit/2799784ac8d0d0e8542d2484513d1e101cb77dbe) revert checksum calculation to calculate-as-you-go - [`26c6341`](https://github.com/ollama/ollama/commit/26c63418e029bb5b6dac75ca6148582788b0b7ce) new hasher - [`c4bdfff`](https://github.com/ollama/ollama/commit/c4bdfffd96da9fc4b0f7c97d2a79f5497469539b) upload: separate progress tracking - [`13efd5f`](https://github.com/ollama/ollama/commit/13efd5f2188f9e43600b9efef14fce21995b7a51) upload: fix PUT retry ### 📊 Changes **1 file changed** (+37 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `server/upload.go` (+37 -33) </details> ### 📄 Description calculating the checksum as it's being transferred is faster overall since the file doesn't need to be reread --- <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-12 23:02:20 -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#10520