mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-04 19:16:42 +00:00
[zero] hotfix update master params (#5951)
This commit is contained in:
parent
bcf0181ecd
commit
060892162a
@ -807,8 +807,8 @@ class LowLevelZeroOptimizer(OptimizerWrapper):
|
||||
"""
|
||||
for p in model.parameters():
|
||||
p_id = id(p)
|
||||
pg = self.param_to_pg[p]
|
||||
if p_id in self.working_to_master_param:
|
||||
pg = self.param_to_pg[p]
|
||||
master_param = self.working_to_master_param[p_id]
|
||||
padding_size = self.get_param_padding_size(p)
|
||||
working_param = p.data.view(-1)
|
||||
|
Loading…
Reference in New Issue
Block a user