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

Show DeepSpeed option when multi-XPU is selected in accelerate config #2346

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

faaany
Copy link
Contributor

@faaany faaany commented Jan 17, 2024

What does this PR do?

Currently, no DeepSpeed option is shown to users when multi-XPU is selected. This PR adds support for XPU.

Before Fix:

image

After Fix:

image

On NV GPU, the question "Do you want to use DeepSpeed? [yes/NO]:" comes before "Do you want to use FullyShardedDataParallel? [yes/NO]:". The same user experience should apply for XPU.

@muellerzr @pacman100

@faaany
Copy link
Contributor Author

faaany commented Jan 17, 2024

@yao-matrix

@faaany faaany changed the title ask for DeepSpeed when multi-XPU is selected in accelerate config Show DeepSpeed option when multi-XPU is selected in accelerate config Jan 17, 2024
Copy link
Collaborator

@muellerzr muellerzr 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 enabling this in the questionnaire!

@muellerzr
Copy link
Collaborator

@faaany can you do pip install -e .[quality] and do make style; make quality please?

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

@faaany
Copy link
Contributor Author

faaany commented Jan 18, 2024

@faaany can you do pip install -e .[quality] and do make style; make quality please?

oh, sorry for my carelessness! Style adapted and could you pls merge? Thanks a lot!

Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

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

Thank you @faaany for adding this, LGTM!

@muellerzr muellerzr merged commit 20ff458 into huggingface:main Jan 18, 2024
23 checks passed
statelesshz pushed a commit to statelesshz/accelerate that referenced this pull request Jan 22, 2024
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

4 participants