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

Add git LFS to AMD docker image #36016

Merged
merged 3 commits into from
Feb 12, 2025
Merged

Add git LFS to AMD docker image #36016

merged 3 commits into from
Feb 12, 2025

Conversation

ivarflakstad
Copy link
Member

What does this PR do?

Adds git LFS to the AMD docker image.
Should fix this failing test

FAILED tests/models/auto/test_modeling_auto.py::AutoModelTest::test_dynamic_saving_from_local_repo - OSError: Looks like you do not have git-lfs installed, please install. You can install from https://git-lfs.github.com/. Then run git lfs install (you only have to do this once).

@ivarflakstad ivarflakstad requested a review from ydshieh February 3, 2025 14:12
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@@ -8,6 +8,8 @@ RUN apt update && \
apt clean && \
rm -rf /var/lib/apt/lists/*

RUN git lfs install
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in other docker files, i see

RUN apt install -y git libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg git-lfs
RUN git lfs install

could you double check if apt install -y git-lfs is also needed here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Thank you ☺️

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, not sure all those are needed btw. The docker files are created initialized by another team member, and I just trust their work.

Specifically here, I only mean the git-lfs part. If you feel comfortable to have all other stuffs including in this PR, I am ok.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be correct 👌

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh my bad. all libsndfile1-dev tesseract-ocr espeak-ng python3 python3-dev things are already there before this PR ...sorry

@ivarflakstad ivarflakstad force-pushed the add-git-lfs-to-amd-image branch from 396c6b3 to f0e9a8f Compare February 3, 2025 14:54
@ivarflakstad ivarflakstad requested a review from ydshieh February 3, 2025 15:06
Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thx!

@ivarflakstad ivarflakstad merged commit 847854b into main Feb 12, 2025
11 checks passed
@ivarflakstad ivarflakstad deleted the add-git-lfs-to-amd-image branch February 12, 2025 21:27
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.

3 participants