Skip to content
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

added support for gradient checkpointing in ESM models #26386

Conversation

sanjeevk-os
Copy link
Contributor

What does this PR do?

Fixes #24602

Adds gradient checkpointing support for ESM models

Before submitting

Who can review?

@Rocketknight1 @amyeroberts : Please review and suggest any required changes, thanks.

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and the test looks clean too!

Amy is out but pinging @LysandreJik for core maintainer review.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @sanjeevk-os!

@LysandreJik LysandreJik merged commit 6ce6a5a into huggingface:main Sep 26, 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.

Support gradient checkpointing for ESM models
4 participants