We limit the individual file size to 50M in Gitlab repositories. In case, you are trying to upload a larger file like trained models, etc the git push will fail with following error:
remote: fatal: pack exceeds maximum allowed size error: remote unpack failed: index-pack abnormal exit
If this is the case, you will have to use git-lfs for larger files. We recommend using git-lfs-migrate to migrate existing larger files into git-lfs.
- Tutorial on why and how to use git-lfs
- How to migrate existing large files to git-lfs using git-lfs-migrate
❯ git lfs install Updated git hooks. Git LFS initialized.
❯ git lfs track "*.mymodel" Tracking "*.mymodel"
❯ git add .gitattributes ❯ git add some.mymodel ❯ git commit [...] ❯ git push origin master