Skip to content

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