FINAL UPDATE…
I tested something more in depth. The problem is, I can’t upload files LARGER than 10 Megabytes!
I used THIS python script to create dummy files:
Create a file of 0.5 MB filled with the character ‘0’
import os
os.chdir(os.path.dirname(os.path.abspath(file)))
#zeros = 524259 # 900 MB
#zeros = 524317 # also 900 MB
comment=“”"
x = 1800
file_size = zeros * x
file_name = 0.5 * x
with open(f"{str(file_name)} mb.txt", “w”) as f:
f.write(“0” * file_size)
x = x + 1
“”"
#print(f"zeros = {round((524259+524317)/2)}")
zeros = 524288
x = 1
while(x < 201):
file_size = zeros * x
file_name = 0.5 * x
with open(f"{str(file_name)} mb.txt", “w”) as f:
f.write(“0” * file_size)
x = x + 1
print(“Files created: (size) mb.txt (0.5 MB of zeros incrementals)”)
the 10.5 MB file BROKE it, but the 10 MB file WORKED!
THAT MEANS THE PROBLEM IS DIRECTLY ON THEIR END, SOME PIECE OF CODE SAYS:
if(filesize > 10 MB):
do something
else:
do something different
It’s NOT my computer, it’s some glitch in THEIR system. something above 10 MB breaks it for some reason!
Oh well, I use git on Google Colab anyway. No big deal I guess…
My proof:
I also found documentation here:
Git LFS automatically handles files larger than 10MB. But for very large files (>5GB), you need to install a custom transfer agent for Git LFS:
Copied
huggingface-cli lfs-enable-largefiles
You should install this for each repository that has a very large file. Once installed, you’ll be able to push files larger than 5GB.
commit context manager
The commit
context manager handles four of the most common Git commands: pull, add, commit, and push. git-lfs
automatically tracks any file larger than 10MB. In the following example, the commit
context manager:
That SPECIFIC number is mentioned here.