I want to upload ctrl to model hub. I have followed the instructions from the documentation and it seems that they are applicable for smaller models (<5GB). Issues have been raised here and here but it still seems unresolved.
I followed the one shared by @julien-c (aws s3 cp …) but got the error Unable to locate credentials indicating that they are for HF staff.
I am getting the error could not push some refs as 5GB limit is crossed. Can you please suggest a workaround if that exists ?
I have loaded many models with earlier version of transformers which used to not rely on lfs. I’m not sure whats the issue on local machine, but its working on the server. May use the flag if I would need a trace.
I am facing similar issues, attempting to upload a large file (just above 5GB) using git-lfs. I have a dual boot on my machine, and unfortunately did not manage to upload neither from Windows or Ubuntu 18.04.
I have git-lfs installed with the environment variable GIT_LFS_SKIP_SMUDGE=1 and ran
(transformers) λ transformers-cli lfs-enable-largefiles .
Local repo set up for largefiles
Interestingly, both the Windows and Ubuntu version return the following warning after adding the file:
E:\path\to\gpt-neo-1.3B (main -> origin)
(transformers) λ git add rust_model.ot
Encountered 1 file(s) that may not have been copied correctly on Windows:
rust_model.ot
See: `git lfs help smudge` for more details.
Attempting to push returns a similar warning:
(transformers) λ git push
EOFoading LFS objects: 100% (1/1), 5.3 GB | 0 B/s
error: failed to push some refs to 'https://huggingface.co/EleutherAI/gpt-neo-1.3B'
I read that git-lfs has issues for files larger than 4GB on windows - but I am surprised to face issues on my Ubuntu partition. Am I missing something?
Just chiming in to say I’m getting the same errors on Arch. Git LFS is installed and enabled, adding a 5GB model gives the same warning about Windows, and then trying push results in the same failed to push some refs error.
EDIT: Trying again a few hours later and it worked, guess it was just a blip.
I just tried again from Ubuntu and got the same error message:
(transformers) guillaume@guillaume-MS-7B78:~/gpt-neo-1.3B$ transformers-cli lfs-enable-largefiles .
Local repo set up for largefiles
(transformers) guillaume@guillaume-MS-7B78:~/gpt-neo-1.3B$ git lfs track rust_model.ot
Tracking "rust_model.ot"
(transformers) guillaume@guillaume-MS-7B78:~/gpt-neo-1.3B$ git add rust_model.ot
Encountered 1 file(s) that may not have been copied correctly on Windows:
rust_model.ot
See: `git lfs help smudge` for more details.
(transformers) guillaume@guillaume-MS-7B78:~/gpt-neo-1.3B$ git commit -m "Addition of Rust model"
[main 094438a] Addition of Rust model
1 file changed, 3 insertions(+)
create mode 100755 rust_model.ot
((transformers) guillaume@guillaume-MS-7B78:~/gpt-neo-1.3B$ git push
Username for 'https://huggingface.co': guillaume-be
Password for 'https://guillaume-be@huggingface.co':
Username for 'https://huggingface.co': guillaume-be
Password for 'https://guillaume-be@huggingface.co':
EOFoading LFS objects: 0% (0/1), 5.0 GB | 0 B/s
error: failed to push some refs to 'https://huggingface.co/EleutherAI/gpt-neo-1.3B'
I tried with and without the step git lfs track rust_model.ot, getting the same error both times. Unfortunately troubleshooting is time-consuming given the upload takes ~1 hour.
edit: I just tried the upload again with GIT_TRACE=1 GIT_CURL_VERBOSE=1. Coincidentally, I am trying to upload ~5.3GB which should take just over an hour to complete. The upload crashes towards the end of the upload - but I believe this could very well be due to a timeout. Looks like the git worker below sets a "expires_in": 3600 that exactly matches 1 hour.
Is there a setting on server side (or something I should change on my side) to allow for uploads taking longer than an hour?
Hi @guillaume-be, thank you for the debugging.
The problem you face is indeed probably related to the expiration time defined for multipart uploads (1 hour), which you are exceeding.
I just changed it to 3 hours, let me know how it goes!
@pierric works like a charm thank you!
I am probably going to attempt an upload of Rust weights for GPT-Neo 2.7B tomorrow, hopefully I don’t exceed the 3 hours upload time