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 transformers' DeepSpeed CI job #23463

Merged
merged 2 commits into from
May 19, 2023
Merged

Fix transformers' DeepSpeed CI job #23463

merged 2 commits into from
May 19, 2023

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented May 19, 2023

What does this PR do?

The new (cu118) base docker image has pre-installed transformer-engine (which wasn't the case in the previous base image). This causes DeepSpeed CI job fails from the beginning with

E   ImportError: /usr/local/lib/python3.8/dist-packages/transformer_engine_extensions.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

This PR uninstall transformer-engine so @ydshieh won't be the breaking bad.

@@ -26,6 +26,9 @@ RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed-testing]

RUN python3 -m pip install --no-cache-dir git+https://github.com/huggingface/accelerate@main#egg=accelerate

# Uninstall `transformer-engine` shipped with the base image
RUN python3 -m pip uninstall -y transformer-engine
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wasn't in the previous base docker image (cu117)

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 19, 2023

The documentation is not available anymore as the PR was closed or merged.

@ydshieh
Copy link
Collaborator Author

ydshieh commented May 19, 2023

Going to merge. cc @stas00 so you know now we are using CUDA 118 on CI (as you mentioned/requested once before)

@ydshieh ydshieh merged commit db4d765 into main May 19, 2023
@ydshieh ydshieh deleted the fix_docker branch May 19, 2023 15:50
@stas00
Copy link
Contributor

stas00 commented May 19, 2023

super! thank you for the heads up, @ydshieh!

sheonhan pushed a commit to sheonhan/transformers that referenced this pull request Jun 1, 2023
* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
gojiteji pushed a commit to gojiteji/transformers that referenced this pull request Jun 5, 2023
* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
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.

4 participants