nlp-with-transformers / notebooks

Jupyter notebooks for the Natural Language Processing with Transformers book
https://transformersbook.com/
Apache License 2.0
3.92k stars 1.23k forks source link

Cannot push datasets to the hub #53

Closed shuuchen closed 2 years ago

shuuchen commented 2 years ago

Information

The problem arises in chapter:

Describe the bug

Cannot push datasets .

To Reproduce

Steps to reproduce the behavior:

$ git push
batch response: Authorization error. B | 0 B/s
error: failed to push some refs to 'https://huggingface.co/datasets/Shuchen/codeparrot-valid'

Authorization error happens here, but I have logged in successfully.

$ huggingface-cli login

        _|    _|  _|    _|    _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|      _|_|_|_|    _|_|      _|_|_|  _|_|_|_|
        _|    _|  _|    _|  _|        _|          _|    _|_|    _|  _|            _|        _|    _|  _|        _|
        _|_|_|_|  _|    _|  _|  _|_|  _|  _|_|    _|    _|  _|  _|  _|  _|_|      _|_|_|    _|_|_|_|  _|        _|_|_|
        _|    _|  _|    _|  _|    _|  _|    _|    _|    _|    _|_|  _|    _|      _|        _|    _|  _|        _|
        _|    _|    _|_|      _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|      _|        _|    _|    _|_|_|  _|_|_|_|

        To login, `huggingface_hub` now requires a token generated from https://huggingface.co/settings/token.
        (Deprecated, will be removed in v0.3.0) To login with username and password instead, interrupt with Ctrl+C.

Token:
Login successful
Your token has been saved to /home/shuchen/.huggingface/token

Anybody can help?

Expected behavior

shuuchen commented 2 years ago

Fixed when using write token to login. Ref:

https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983