Skip to content

Fix no split modules underlying modules#27090

Merged
SunMarc merged 5 commits intohuggingface:mainfrom
SunMarc:fix-no-split-modules-underlying-modules
Oct 27, 2023
Merged

Fix no split modules underlying modules#27090
SunMarc merged 5 commits intohuggingface:mainfrom
SunMarc:fix-no-split-modules-underlying-modules

Conversation

@SunMarc
Copy link
Member

@SunMarc SunMarc commented Oct 26, 2023

What does this do ?

This PR fixes _get_no_split_modules introduced in #26949. Basically, we don't check the children modules if they appear in _no_split_modules. By doing that, we can decide to not split a children module (can be a PretrainedModel) without having to check if its _no_split_modules is set or not. This is particularly useful as we don't necessarily want to set it (small model, can't be split ...).

This PR along with this one should also fix the issues in the CI

@SunMarc SunMarc requested a review from ArthurZucker October 26, 2023 19:03
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 26, 2023

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

Copy link
Collaborator

@ArthurZucker ArthurZucker 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 the prompt fix on this tricky bug! 🔥

SunMarc and others added 2 commits October 27, 2023 09:23
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
@SunMarc SunMarc merged commit 5be1fb6 into huggingface:main Oct 27, 2023
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
* fix no split

* style

* remove comm

* Update src/transformers/modeling_utils.py

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

* rename modules

---------

Co-authored-by: Arthur <48595927+ArthurZucker@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.

3 participants