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

Resumable downloads #3

Closed
wants to merge 13 commits into from
Closed

Resumable downloads #3

wants to merge 13 commits into from

Conversation

ZachNagengast
Copy link

@ZachNagengast ZachNagengast commented Jan 15, 2025

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 changed the base branch from main to metadata January 30, 2025 21:20
@ardaatahan ardaatahan changed the base branch from metadata to main February 6, 2025 19:50
@ardaatahan ardaatahan closed this Feb 7, 2025
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.

2 participants