Commit c66fdaf
Make sure it's not None before offloading contiguous_grad_buffer (#7227)
Resolves #7223
When DeepCompile is enabled in ZeRO-3, contiguous_grad_buffer is
released, so we should check and make sure it's not None before we
continue.
https://github.com/deepspeedai/DeepSpeed/blob/227a60c0c412ddf4619401b5d8d9d1674aee17b5/deepspeed/compile/init_z3.py#L22-L25
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Co-authored-by: Masahiro Tanaka <81312776+tohtana@users.noreply.github.com>1 parent 625ea52 commit c66fdaf
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2915 | 2915 | | |
2916 | 2916 | | |
2917 | 2917 | | |
2918 | | - | |
| 2918 | + | |
| 2919 | + | |
2919 | 2920 | | |
2920 | 2921 | | |
2921 | 2922 | | |
| |||
0 commit comments