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

fix deepspeed job #37284

Merged
merged 1 commit into from
Apr 8, 2025
Merged

fix deepspeed job #37284

merged 1 commit into from
Apr 8, 2025

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Apr 4, 2025

What does this PR do?

Wrong working_directory and got

OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd ("/transformers") set in config.json failed: no such file or directory: unknown

Also install some packages at specific versions.

The pytest command is running with these changes

https://github.com/huggingface/transformers/actions/runs/14269422275/job/39998982497

I will leave you people to update the deepspeed docker image however: it's quite old.

@github-actions github-actions bot marked this pull request as draft April 4, 2025 15:14
Copy link

github-actions bot commented Apr 4, 2025

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@@ -382,7 +382,7 @@ jobs:
run: pip freeze

- name: Set `machine_type` for report and artifact names
working-directory: /transformers
working-directory: ${{ inputs.working-directory-prefix }}/transformers
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

only this is relevant

other changes to be reverted before merge

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am moving on here, and hope someone will take care of updating the deepspeed docker file

docker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile

soon. But we can discuss offline.

@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.

@ydshieh ydshieh force-pushed the fix_deepspeed_job branch from bc05d2f to 2e2e66d Compare April 4, 2025 16:10
@ydshieh ydshieh marked this pull request as ready for review April 4, 2025 16:10
@ydshieh ydshieh requested a review from SunMarc April 4, 2025 16:11
@ydshieh
Copy link
Collaborator Author

ydshieh commented Apr 4, 2025

cc @S1ro1 (not sure if relevant however)

@ydshieh ydshieh requested a review from zach-huggingface April 7, 2025 19:04
Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks ! Left a question

Comment on lines +341 to +342
run: python3 -m pip install numpy==1.24.3 numba==0.61.0 scipy==1.12.0 scikit-learn==1.6.1

Copy link
Member

Choose a reason for hiding this comment

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

why do we need to install it with specfic versions ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We got numpy 2 in the docker image build and the pytest is failing with Error from the beginning. Don't really know the reason, the docker file is somehow too old and need an update. It's currently even use

ARG PYTORCH='2.2.0'

Copy link
Member

Choose a reason for hiding this comment

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

I will update the docker and run the tests

@ydshieh ydshieh merged commit 8064cd9 into main Apr 8, 2025
14 checks passed
@ydshieh ydshieh deleted the fix_deepspeed_job branch April 8, 2025 13:19
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