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

Add metadata support with tests #155

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

ardaatahan
Copy link
Contributor

This PR aims to bring over some of huggingface_hub Python library's capabilities to swift-transformers:

  • Adds file metadata support to prevent unnecessary redownloads, ensure file integrity, and update to the latest file versions when needed.
  • Disables automatic redirection during head requests to fix getFileMetadata, which currently doesn't return expected commit hash and etag for lfs files.
  • Adds additional tests to verify metadata handling and download logic.

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