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

improve vram use w gradient checkpointing #1167

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

winglian
Copy link
Collaborator

Description

transformers recommends the default for use_reentrant as gradient checkpointing kwargs to be false, as there can be issues when individual layers are frozen for full finetunes. however, this increases VRAM usage when set to false un-necessarily.

@winglian winglian merged commit 802f966 into main Jan 23, 2024
8 checks passed
@winglian winglian deleted the auto-reentrant-kwargs branch January 23, 2024 00:48
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.

1 participant