push to hub issue
Author: vymn
Pull request: no

hi I'm trying to push my fine-tuned pre-trained facebook blenderbot 2 to huggingface hub, I have tried every single solution from windows, Linux, google colab, kaggle, paperspace. I'm exhausted and I don't wanna try any other solutions, is there anybody who can just push the pre-trained model to my hub please, and thanks in advance.

```
from transformers import BlenderbotTokenizer, BlenderbotForConditionalGeneration
mname = "facebook/blenderbot-3B"
model = BlenderbotForConditionalGeneration.from_pretrained(mname)
tokenizer = BlenderbotTokenizer.from_pretrained(mname)
print("loaded")
model.push_to_hub("Rose-Brain",use_auth_token='api##########')
print("pushed")
tokenizer.push_to_hub("Rose-Brain",use_auth_token='api##########')
print("done")
```

Comments:
Hello, sorry you had such a bad experience with the `push_to_hub` method. Could you share the error that you have faced?

thanks for your reply  @LysandreJik i really appreciate it, 
this is the traceback
```
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/huggingface_hub/repository.py in git_push(self)
    407                 encoding="utf-8",
--> 408                 cwd=self.local_dir,
    409             )

/opt/conda/lib/python3.7/subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
    511             raise CalledProcessError(retcode, process.args,
--> 512                                      output=stdout, stderr=stderr)
    513     return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command '['git', 'push']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-7-54a7c90789e5> in <module>
      4 tokenizer = BlenderbotTokenizer.from_pretrained(mname)
      5 print("loaded")
----> 6 model.push_to_hub("Rosa-Brain",use_auth_token='api_token')
      7 print("pushed")
      8 tokenizer.push_to_hub("Rosa-Brain",use_auth_token='api_token')

/opt/conda/lib/python3.7/site-packages/transformers/file_utils.py in push_to_hub(self, repo_name, repo_url, commit_message, organization, private, use_auth_token)
   1891                 organization=organization,
   1892                 private=private,
-> 1893                 use_auth_token=use_auth_token,
   1894             )
   1895 

/opt/conda/lib/python3.7/site-packages/transformers/file_utils.py in _push_to_hub(cls, save_directory, save_files, repo_name, repo_url, commit_message, organization, private, use_auth_token)
   1959                 copy_tree(save_directory, tmp_dir)
   1960 
-> 1961             return repo.push_to_hub(commit_message=commit_message)

/opt/conda/lib/python3.7/site-packages/huggingface_hub/repository.py in push_to_hub(self, commit_message)
    422         self.git_add()
    423         self.git_commit(commit_message)
--> 424         return self.git_push()

/opt/conda/lib/python3.7/site-packages/huggingface_hub/repository.py in git_push(self)
    410             logger.info(result.stdout)
    411         except subprocess.CalledProcessError as exc:
--> 412             raise EnvironmentError(exc.stderr)
    413 
    414         return self.git_head_commit_url()

OSError: batch response: 
You need to configure your repository to enable upload of files > 5GB.
Run "huggingface-cli lfs-enable-largefiles ./path/to/your/repo" and try again.

error: failed to push some refs to 'https://user:api_##########@huggingface.co/vymn/Rosa-Brain'
```
this is the environment set up
```
!git config --global user.email "email@example.com"
!git config --global user.name "username"
!git clone https://username:token@huggingface.co/vymn/Rosa-Brain
!huggingface-cli lfs-enable-largefiles ./Rosa-Brain/
!git config --global http.postBuffer 30474698716
!git config --global filter.lfs.smudge "git-lfs smudge --skip %f"


```
I've tried every solution in other related issues as well and nothing worked for me

Hmmm this shouldn't happen! Would it be possible for you to share your colab so that I may take a look? Thank you!

sure, I just made a [test](https://colab.research.google.com/drive/15QNHui7qhIBvIT0o8wv0sicGAMJnsDv7?usp=sharing) copy for you with edit privilege. I hope it works then tell me what I missed 


could you tell me what happened, please?
I've noticed that you have worked with the 400m parameters model and this just worked fine for me either my problem came up with 3B parameters model.

 what is really confusing is that the traceback sometimes show me error something like 42738303 vs 48224303, some other times big files error, and on my local computer tells me its windows known issue, I have no clue what I really missed 

Hy @vymn, thank you for the reproducer! There seems to be a very real issue with uploading big models to the hub. We're investigating this with the backend team. Will let you know of any updates!

thank you I'm sure you're doing your best, I'll be waiting 

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](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.

This should have been fixed - can you confirm?

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](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.