Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support resumable downloads #4

Merged
merged 5 commits into from
Feb 18, 2025
Merged

Support resumable downloads #4

merged 5 commits into from
Feb 18, 2025

Conversation

ardaatahan
Copy link

This PR aims to bring over huggingface_hub Python library's resumable downloads logic to swift-transformers:

  • Implements chunked transfer and retry logic for more reliable downloads
  • Adds support for resumable downloads through range headers
  • Adds configurable parameters for timeout, retries, and chunk size
  • Improves error handling and size verification for downloads
  • Uses temporary files during download to prevent corruption of existing files
  • Adds new tests to verify functionality of resumable downloads

@ardaatahan ardaatahan merged commit 4f97f98 into main Feb 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant