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

Monolithic Loading #2288

Merged
merged 99 commits into from
Jun 15, 2023
Merged

Conversation

mvpatel2000
Copy link
Contributor

@mvpatel2000 mvpatel2000 commented Jun 6, 2023

What does this PR do?

Adds support for loading monolithic ckpts on only rank 0, which decreases ram usage by 8x.

What issue(s) does this change relate to?

CO-2155

@mvpatel2000 mvpatel2000 requested review from bcui19 and eracah June 7, 2023 23:11
composer/core/state.py Outdated Show resolved Hide resolved
Copy link
Contributor

@bcui19 bcui19 left a comment

Choose a reason for hiding this comment

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

LGTM! Left vey minor comments. This is huge

composer/core/state.py Show resolved Hide resolved
tests/trainer/test_checkpoint.py Show resolved Hide resolved
composer/core/state.py Outdated Show resolved Hide resolved
composer/core/state.py Outdated Show resolved Hide resolved
composer/core/state.py Show resolved Hide resolved
composer/core/state.py Outdated Show resolved Hide resolved
composer/trainer/trainer.py Outdated Show resolved Hide resolved
composer/trainer/trainer.py Outdated Show resolved Hide resolved
composer/trainer/trainer.py Outdated Show resolved Hide resolved
composer/utils/checkpoint.py Outdated Show resolved Hide resolved
composer/utils/checkpoint.py Outdated Show resolved Hide resolved
composer/utils/checkpoint.py Outdated Show resolved Hide resolved
@mvpatel2000 mvpatel2000 merged commit 5de82e7 into mosaicml:dev Jun 15, 2023
@mvpatel2000 mvpatel2000 deleted the mvpatel2000/monolithic branch June 15, 2023 23:32
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