transformers icon indicating copy to clipboard operation
transformers copied to clipboard

OSError: Token is required (`token=True`), but no token found. You need to provide a token or be logged in to Hugging Face with `huggingface-cli login` or `huggingface_hub.login`. See https://huggingface.co/settings/tokens.

Open ucas010 opened this issue 3 years ago • 3 comments

System Info

copy the RP and got the ERROR could you pls help me ?

Who can help?

@ArthurZucker and @younesbelkada

Information

  • [X] The official example scripts
  • [ ] My own modified scripts

Tasks

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

Reproduction

same as official script

Expected behavior

overcome the error

ucas010 avatar Dec 27 '22 07:12 ucas010

You need to make sure to execute the cell notebook_login() at the beginning and pass it your token (it provides a direct link to your token pages on hf.co)

sgugger avatar Dec 27 '22 07:12 sgugger

pass it your token ??? I have token but how to use it ? @sgugger

ucas010 avatar Dec 28 '22 01:12 ucas010

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Jan 26 '23 15:01 github-actions[bot]