Skip to content

Clone tensors to avoid torch.save bloat - #3348

Merged
tjruwase merged 26 commits into
masterfrom
olruwase/issue_3303
May 16, 2023
Merged

tjruwase merged 26 commits into
masterfrom
olruwase/issue_3303

Conversation

@tjruwase

Copy link
Copy Markdown
Contributor

Fixes #3303

@tjruwase
tjruwase requested a review from jeffra as a code owner April 22, 2023 00:46
@tjruwase

Copy link
Copy Markdown
Contributor Author

TODOs:

  1. Docs
  2. Unit tests (?)

Comment thread csrc/transformer/general_kernels.cu Outdated
@tjruwase

tjruwase commented May 2, 2023

Copy link
Copy Markdown
Contributor Author

@stas00

stas00 commented May 2, 2023

Copy link
Copy Markdown
Collaborator

Looking at the rendering - the source formatting appears to be borked. It has :param: and the last section doesn't show up.

And the doc is hard to read as it refers to input, let me try to make a better suggestion

Comment thread docs/code-docs/source/model-checkpointing.rst Outdated
Comment thread deepspeed/checkpoint/utils.py Outdated
Comment thread deepspeed/checkpoint/utils.py Outdated
tjruwase and others added 5 commits May 2, 2023 16:38
Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
@tjruwase

tjruwase commented May 2, 2023

Copy link
Copy Markdown
Contributor Author

@stas00, thanks for the feedback. I have applied your suggestions. Please take another look.

@stas00

stas00 commented May 2, 2023

Copy link
Copy Markdown
Collaborator

Looking good now!

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.

[BUG] Size of saved model checkpoint becomes much larger after deepspeed.initialize when using ZeRO-2

4 participants