Correct usage of push_to_hub
Hi I’m confused about these 2 lines of code!git config --global user.email "myemail@gmail.com"

!git config --global user.name "myusername"What are they used for?? Should I put there email and username I’m using for huggingface or github??Also I trained a model using Trainer with push_to_hub=True without running these lines only logging through notebook_login() and new repsitory was created but nothing was pushed to it. Was not running these lines the reason?
2022-09-14T10:15:18Z
Those lines just set up your git identity (seeGit - First-Time Git Setup), but I don’t think that you need to run them, sincehuggingface_hubshould handle it. As long as you usenotebook_login()you should be fine.It’s strange that the model wasn’t uploaded! Did it show any errors? Or did the training seem to complete successfully with no errors at all?
2022-09-14T17:02:56Z
@NimaBoscarinoTraining completed without any errors
2022-09-14T21:41:27Z
That’s really weird! If the training doesn’t take too long, do you mind running the training again? And if you have a notebook on Google Colab, could you share a link to it? That way I can inspect it, unless you’d rather not publish it. Hopefully it was a temporary hiccup.