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 download redirect for AH adapters to HF #704

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

calpt
Copy link
Member

@calpt calpt commented May 26, 2024

This PR implements an automatic redirect for load_adapter() from Hub repo adapters to the HF Hub:

  • If source is not specified, will automatically redirect attempts to load from Hub repo to HF Hub. Will also issue a warning to set new id explicitly.
  • if source="ah" explicitly, will still load from Hub repo link and issue a warning.

Also updated docs accordingly & removed sections specific to Hub repo loading.

@calpt calpt marked this pull request as ready for review May 28, 2024 20:50
Copy link
Contributor

@TimoImhof TimoImhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks for working on this!

@TimoImhof
Copy link
Contributor

I added a parameter description in the modified functions.
Feel free to keep, modify, or revert.
Apart from this, the PR is ready to be merged.

@calpt calpt merged commit df1f79f into adapter-hub:main Jun 27, 2024
3 checks passed
@calpt calpt deleted the dev/ah_redirect branch June 27, 2024 20:02
dainis-boumber added a commit to ReDASers/adapters that referenced this pull request Aug 24, 2024
This PR implements an automatic redirect for `load_adapter()` from Hub
repo adapters to the HF Hub:
- If `source` is not specified, will automatically redirect attempts to
load from Hub repo to HF Hub. Will also issue a warning to set new id
explicitly.
- if `source="ah"` explicitly, will still load from Hub repo link and
issue a warning.

Also updated docs accordingly & removed sections specific to Hub repo
loading.

---------

Co-authored-by: Timo Imhof <[email protected]>
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