[PR #626] [MERGED] parallel chunked downloads #15534

Closed
opened 2026-04-16 05:01:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/626
Author: @mxyng
Created: 9/27/2023
Status: Merged
Merged: 10/6/2023
Merged by: @mxyng

Base: mainHead: mxyng/concurrent-downloads


📝 Commits (8)

📊 Changes

5 files changed (+258 additions, -175 deletions)

View changed files

📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 server/download.go (+247 -160)
📝 server/images.go (+2 -14)
📝 server/upload.go (+6 -1)

📄 Description

this change chunks the download into smaller parts that can be downloaded at the same time. this should result in a bump in download speeds

TODO:

  • handle concurrent requests for the same blobs
  • handle resuming interrupted downloads

🔄 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/626 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 9/27/2023 **Status:** ✅ Merged **Merged:** 10/6/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/concurrent-downloads` --- ### 📝 Commits (8) - [`8544edc`](https://github.com/ollama/ollama/commit/8544edca2196500854932e537025b0f8da390661) parallel chunked downloads - [`5b84404`](https://github.com/ollama/ollama/commit/5b84404c64f0513e003b1a62463b437b672de5cd) handle concurrent requests for the same blobs - [`090d084`](https://github.com/ollama/ollama/commit/090d08422b361bcbef82a04d0e6e160caaad8f89) handle unexpected eofs - [`711e891`](https://github.com/ollama/ollama/commit/711e891f0f6c2f36b5178c1a65177859eb0855b8) fix resumable downloads - [`0473343`](https://github.com/ollama/ollama/commit/04733438daa9ce274b3dd1d1cad66b51b43ef6e1) check head request response - [`288814d`](https://github.com/ollama/ollama/commit/288814d3e4b60a73cdfff80df9df2f572952aca3) fix ref counts - [`10199c5`](https://github.com/ollama/ollama/commit/10199c59879062d10056c285e1e1994286c929f8) replace done channel with file check - [`0560b28`](https://github.com/ollama/ollama/commit/0560b28a8d3a366f94e3996f59cc0774cb7d0e2a) names ### 📊 Changes **5 files changed** (+258 additions, -175 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `server/download.go` (+247 -160) 📝 `server/images.go` (+2 -14) 📝 `server/upload.go` (+6 -1) </details> ### 📄 Description this change chunks the download into smaller parts that can be downloaded at the same time. this should result in a bump in download speeds TODO: - [x] handle concurrent requests for the same blobs - [x] handle resuming interrupted downloads --- <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-16 05:01:39 -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#15534