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

Pushing to the hub with a token #1836

Open
4 tasks
IlyasMoutawwakil opened this issue Apr 26, 2024 · 0 comments · May be fixed by #1837
Open
4 tasks

Pushing to the hub with a token #1836

IlyasMoutawwakil opened this issue Apr 26, 2024 · 0 comments · May be fixed by #1837
Labels
bug Something isn't working

Comments

@IlyasMoutawwakil
Copy link
Member

IlyasMoutawwakil commented Apr 26, 2024

System Info

optimum main

Who can help?

@echarlaix @fxmarty

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction (minimal, reproducible, runnable)

The current integration with the hub doesn't allow pushing to it with some tokens because it requires the user's email and fullname (not present with fine-grained tokens).

user = api.whoami(huggingface_token)
self.git_config_username_and_email(git_email=user["email"], git_user=user["fullname"])

to reproduce, use a fine-grained token to push to a repo (that the token has write access to) or simply whoami(token="fine-grained-token-you-created"), the output won't contain the email field.

I'm deprecating use_auth_token in a PR and will fix this on my way.

Expected behavior

to push to hub

@IlyasMoutawwakil IlyasMoutawwakil added the bug Something isn't working label Apr 26, 2024
@IlyasMoutawwakil IlyasMoutawwakil linked a pull request Apr 26, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant