Skip to content

Conversation

@younesbelkada
Copy link
Contributor

What does this PR do?

Partially fixes: #22305

This PR adds accelerate support for MBart models.
To run the accelerate tests:

RUN_SLOW=1 pytest -m accelerate_tests tests/models/mbart/test_modeling_mbart.py

A fix similar to #19927 needs to be applied in order for the tests to pass

cc @amyeroberts

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 22, 2023

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

Copy link
Contributor

@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 these fixes and blazing fast PR creation 🏎️ 💨 !

@younesbelkada younesbelkada merged commit ff20f9c into huggingface:main Mar 23, 2023
@younesbelkada younesbelkada deleted the add-accelerate-mbart branch March 23, 2023 09:34
raghavanone pushed a commit to raghavanone/transformers that referenced this pull request Apr 5, 2023
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
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.

MarianMTModel/MBartForConditionalGeneration does not support device_map='auto' yet

3 participants