mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-10 05:20:33 +00:00
Next commit [checkpointio] Unsharded Optimizer Checkpoint for Gemini Plugin (#4141)
* [checkpointio] unsharded optimizer checkpoint for Gemini plugin * [checkpointio] unsharded optimizer checkpoint for Gemini using all_gather
This commit is contained in:
@@ -119,3 +119,9 @@ class OptimizerWrapper:
|
||||
"""
|
||||
raise NotImplementedError(
|
||||
"The method unscale_grad is only available for optimizers with mixed precision training")
|
||||
|
||||
def unwrap(self):
|
||||
"""
|
||||
Unwrap the optimizer for checkpoint saving/loading.
|
||||
"""
|
||||
return self.optim
|
||||
|
Reference in New Issue
Block a user