Clone tensors to avoid torch.save bloat (#3348)
* Clone tensors to avoid torch.save bloat
* Adddocs
* Fix clang-formatting
* Update docs/code-docs/source/model-checkpointing.rst
Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
* Update deepspeed/checkpoint/utils.py
Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
* Update deepspeed/checkpoint/utils.py
Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
* Fix url
* url fix
* Tweak docs
---------
Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>