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

Added use_auth_token to access gated HF models #107

Closed
wants to merge 3 commits into from

Conversation

hunarbatra
Copy link

This PR adds use_auth_token to be able to access gated HuggingFace models such as LLaMa2 models.

HuggingFace PR for LLaMa2-7B Tuned Lens trained over RedPajama-Data-1T-Sample: https://huggingface.co/spaces/AlignmentResearch/tuned-lens/discussions/41

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #107 (57104a9) into main (9bf1f35) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #107      +/-   ##
==========================================
+ Coverage   80.95%   81.00%   +0.05%     
==========================================
  Files          32       32              
  Lines        2116     2122       +6     
==========================================
+ Hits         1713     1719       +6     
  Misses        403      403              
Files Changed Coverage Δ
tuned_lens/scripts/ingredients.py 86.11% <100.00%> (+0.47%) ⬆️

@@ -20,6 +20,7 @@ dependencies = [
"simple-parsing>=0.1.1",
"flatten-dict>=0.4.1",
"wandb>=0.15.0",
"python-dotenv",
Copy link
Collaborator

Choose a reason for hiding this comment

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

@levmckinney Do we want to add this as a dependency? I don't have a strong opinion on the matter but I've never used this package.

Other than that LGTM

Copy link
Collaborator

@levmckinney levmckinney left a comment

Choose a reason for hiding this comment

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

use_auth_token is deprecated. I believe just passing HUGGING_FACE_HUB_TOKEN may remove the need for this PR.

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.

3 participants