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

PegasusX add _no_split_modules #25933

Merged

Conversation

andreeahedes
Copy link
Contributor

What does this PR do?

Fixes # (issue)
Add in no_split_modules method for PegasusX model to allow disk/cpu offloading and multi-GPU parallelism.

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@amyeroberts
Copy link
Collaborator

amyeroberts commented Sep 4, 2023

@andreeahedes Thanks for adding this! Have you run the accelerate tests for this model on 1 and 2 GPUs with these changes?

@andreeahedes
Copy link
Contributor Author

andreeahedes commented Sep 4, 2023

Hi @amyeroberts , I ran test_disk_offload, test_cpu_offload and test_model_parallelism on a machine with 2 GPUs.

@SunMarc SunMarc self-requested a review September 5, 2023 13:26
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.

LGTM! Just one little nit.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

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 adding!

@amyeroberts amyeroberts merged commit da1af21 into huggingface:main Sep 5, 2023
@andreeahedes andreeahedes deleted the pegasus-x-no-split-modules branch September 6, 2023 16:06
parambharat pushed a commit to parambharat/transformers that referenced this pull request Sep 26, 2023
* no_split_modules

* no_split_modules

* inputs_embeds+pos same device

* update _no_split_modules

* update _no_split_modules
blbadger pushed a commit to blbadger/transformers that referenced this pull request Nov 8, 2023
* no_split_modules

* no_split_modules

* inputs_embeds+pos same device

* update _no_split_modules

* update _no_split_modules
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 18, 2023
* no_split_modules

* no_split_modules

* inputs_embeds+pos same device

* update _no_split_modules

* update _no_split_modules
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