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 ability to use models from private repositories #266

Merged
merged 3 commits into from
Oct 29, 2021

Conversation

davidcoallier
Copy link
Contributor

Introduction 🤞

Big fan of HappyTransformer, but I've noticed that we're lacking the ability to use private repositories. This pull-request implements the use_auth_token which we use in our fork.

I was considering simply adding a reference to **kwargs and pass that to the from_pretrained(...) calls but decided against it.

Documentation 📘

Every model's documentation has been updated to reflect the new API capability.

Backwards Compatibility 👀

The does not break API backwards compatibility 🙏

Further Discussions 💬

One thing I've noticed missing from HF is using an environment variable to pass the auth token instead of having it explicitly defined as part of the model calls.

This is something I'd like to explore and figure out if it's any interest to you. If so I'll take a stab. 🤷‍♂️

@EricFillion EricFillion self-requested a review October 29, 2021 21:29
Copy link
Owner

@EricFillion EricFillion left a comment

Choose a reason for hiding this comment

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

Fantastic work! Nice job with updating the documentation too. I'm looking forward to using this new feature.

@EricFillion EricFillion merged commit 5359f2f into EricFillion:master Oct 29, 2021
@EricFillion EricFillion mentioned this pull request Oct 29, 2021
@EricFillion
Copy link
Owner

Version 2.3.2 is live and contains these changes! Thanks for your help.

@davidcoallier
Copy link
Contributor Author

Great thanks!

@davidcoallier
Copy link
Contributor Author

Just noticed something isn't working right. Must have missed something when porting-back. Investigating now. Might be worth reverting unless I find a fix this morning on the train.

@davidcoallier
Copy link
Contributor Author

Ok I found the problem, will issue a new PR to address it. Somehow forgot to include the init use_auth_token when porting the code over.

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.

None yet

2 participants