Search code examples
githubcoreml

Dealing with large MLModel files and Github Repository


I have a Swift written app, the app itself contains a .mlmodel file that's rather large - 230MB. On the Github's website you can read the following:

GitHub will warn you when pushing files larger than 50 MB. You will not be allowed to push files larger than 100 MB.

When I try to push my project to the remote repository, I get the:

The remote repository rejected commits.

Which is expected due to the large size. My question is how to deal with this situation? Is there a work around this?


Solution

  • If you want to keep a reference of that large file (>200MB) in your GitHub repository, you would nee to:

    As detailed here:

    • Git LFS is available for every repository on GitHub, whether or not your account or organization has a paid plan.
    • Every account using Git Large File Storage receives 1 GB of free storage and 1 GB a month of free bandwidth