-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
PegasusX add _no_split_modules #25933
Conversation
…transformers into pegasus-x-no-split-modules
…transformers into pegasus-x-no-split-modules
@andreeahedes Thanks for adding this! Have you run the accelerate tests for this model on 1 and 2 GPUs with these changes? |
Hi @amyeroberts , I ran |
There was a problem hiding this 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.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding!
* no_split_modules * no_split_modules * inputs_embeds+pos same device * update _no_split_modules * update _no_split_modules
* no_split_modules * no_split_modules * inputs_embeds+pos same device * update _no_split_modules * update _no_split_modules
* no_split_modules * no_split_modules * inputs_embeds+pos same device * update _no_split_modules * update _no_split_modules
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
Pull Request section? -> Yes
to it if that's the case. ->ValueError: PegasusXForConditionalGeneration does not support device_map='auto'. To implement support, the modelclass needs to implement the _no_split_modules attribute. accelerate#1900
documentation guidelines, and
here are tips on formatting docstrings.-No
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.