[PR #2790] [CLOSED] Use aria2c for model downloads #4267

Closed
opened 2026-11-07 15:34:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2790
Author: @hawkdriver992
Created: 10/16/2026
Status: ❌ Closed

Base: main ← Head: aria2-downloader


📝 Commits (2)

  • a27e4bd Use aria2c for model downloads
  • 7ad3df5 Handle aria2 partials during fallback

📊 Changes

1 file changed (+51 additions, -0 deletions)

View changed files

📝 setup.py (+51 -0)

📄 Description

Summary

Adds optional aria2c support for model downloads.

If aria2c is installed, setup uses it with multiple connections and resume support. If aria2c is not installed, setup falls back to the existing downloader unchanged.

What changed

  • Detect aria2c with shutil.which("aria2c")
  • Use aria2c for HTTP(S) model downloads when available
  • Preserve .part resume behavior
  • Fall back transparently to the existing downloader if aria2c is unavailable or fails

Extra Notes

Tested:

  • fresh aria2c download
  • interrupted aria2c download resumes correctly
  • aria2c absent -> built-in downloader works
  • interrupted built-in download resumes correctly
  • aria2c restored -> resumes the same .part file

On my connection, large model downloads improved from roughly 70 MB/s to 110 MB/s.


🔄 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/Niko1221/Strata/pull/2790 **Author:** [@hawkdriver992](https://github.com/hawkdriver992) **Created:** 10/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `aria2-downloader` --- ### 📝 Commits (2) - [`a27e4bd`](https://github.com/Niko1221/Strata/commit/a27e4bdf5287f3c8f55817a4fe830f13ccdd37a5) Use aria2c for model downloads - [`7ad3df5`](https://github.com/Niko1221/Strata/commit/7ad3df51bc25306acf01308fb388178cd89817fd) Handle aria2 partials during fallback ### 📊 Changes **1 file changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+51 -0) </details> ### 📄 Description ## Summary Adds optional aria2c support for model downloads. If aria2c is installed, setup uses it with multiple connections and resume support. If aria2c is not installed, setup falls back to the existing downloader unchanged. ## What changed - Detect aria2c with `shutil.which("aria2c")` - Use aria2c for HTTP(S) model downloads when available - Preserve `.part` resume behavior - Fall back transparently to the existing downloader if aria2c is unavailable or fails ## Extra Notes Tested: - fresh aria2c download - interrupted aria2c download resumes correctly - aria2c absent -> built-in downloader works - interrupted built-in download resumes correctly - aria2c restored -> resumes the same `.part` file On my connection, large model downloads improved from roughly 70 MB/s to 110 MB/s. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:27 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4267
No description provided.