Skip to content

Conversation

@younesbelkada
Copy link
Contributor

@younesbelkada younesbelkada commented Dec 9, 2022

What does this PR do?

FIxes the last test that I forgot to run on multi gpu setup ! Sorry for the multiple iterations

Fixes:
1- https://github.com/huggingface/transformers/actions/runs/3650247864
2- in test_model_parallelism the test splits the model into different sub-modules, with respect to the class attribute _no_split_modules. Sometimes a manual device assignment is needed to avoid errors such as tensors not on the same device
3- Similar to #19912 (check the last modification)

cc @sgugger @ydshieh

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 9, 2022

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

@younesbelkada younesbelkada requested a review from sgugger December 9, 2022 14:49
Copy link
Collaborator

@sgugger sgugger 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 fix!

@younesbelkada younesbelkada merged commit 7433008 into huggingface:main Dec 9, 2022
mpierrau pushed a commit to mpierrau/transformers that referenced this pull request Dec 15, 2022
* fix last slow test

* revert deletion

* Update src/transformers/models/vit_hybrid/modeling_vit_hybrid.py
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