mirror of https://github.com/hpcaitech/ColossalAI
[hotfix] pass a parameter. (#2288)
* [autockpt] make it work. * [autockpt] linearize / merge shape-consistency nodes. * [autockpt] considering parameter and optimizer weights. * [hotfix] pass a parameter.pull/2258/head
parent
22e947f982
commit
8ea50d999e
|
@ -50,7 +50,7 @@ class CheckpointSolverRotor(CheckpointSolverBase):
|
||||||
optim_multiplier (float, optional): The multiplier of extra weight storage for the
|
optim_multiplier (float, optional): The multiplier of extra weight storage for the
|
||||||
``torch.optim.Optimizer``. Default to 1.0.
|
``torch.optim.Optimizer``. Default to 1.0.
|
||||||
"""
|
"""
|
||||||
super().__init__(graph, free_memory, True, cnode)
|
super().__init__(graph, free_memory, True, cnode, optim_multiplier)
|
||||||
self.memory_slots = memory_slots
|
self.memory_slots = memory_slots
|
||||||
|
|
||||||
# construct chain
|
# construct chain
|
||||||
|
|
Loading…
Reference in New Issue