Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce memory usage by skipping the LFS files download on checkout #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Saurabh1999
Copy link

@Saurabh1999 Saurabh1999 commented Apr 8, 2024

Problem

Download Models task in the AMP was sometimes getting failed with the exit status as 137 (Out of Memory).

Changes Made

added GIT_LFS_SKIP_SMUDGE=1 env var for the git checkout process. This prevents Git from attempting to automatically download LFS files into memory during checkout, a step that is unnecessary since the LFS files are being explicitly downloaded through the download_lfs_files function.

Testing

PRE:
Screenshot 2024-04-08 at 9 07 18 PM 1

POST:
Screenshot 2024-04-08 at 9 11 52 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant