Skip to content

Add accelerate support for BART-like models#19927

Merged
younesbelkada merged 2 commits intohuggingface:mainfrom
younesbelkada:add_bart_accelerate
Oct 27, 2022
Merged

Add accelerate support for BART-like models#19927
younesbelkada merged 2 commits intohuggingface:mainfrom
younesbelkada:add_bart_accelerate

Conversation

@younesbelkada
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR adds accelerate support for BART-like models, so that these models can be loaded in 8bit using load_in_8bit=True.
Follows the same logic as #19912 regarding shared embeddings

Do not merge before huggingface/accelerate#792 gets merged!

cc @sgugger

@younesbelkada younesbelkada requested a review from sgugger October 27, 2022 17:25
Copy link
Copy Markdown
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 fixes!

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

HuggingFaceDocBuilderDev commented Oct 27, 2022

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

@younesbelkada
Copy link
Copy Markdown
Contributor Author

Thanks a lot! Merging since huggingface/accelerate#792 has been merged 🟢

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