Browse Source

[zero] hotfix update master params (#5951)

pull/5952/head
Hongxin Liu 4 months ago committed by GitHub
parent
commit
060892162a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      colossalai/zero/low_level/low_level_optim.py

2
colossalai/zero/low_level/low_level_optim.py

@ -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…
Cancel
Save