mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-28 00:07:29 +00:00
fix initialize about zero
This commit is contained in:
parent
e396bb71f2
commit
097772546e
@ -307,10 +307,6 @@ def initialize(model: nn.Module,
|
||||
|
||||
# clip grad norm
|
||||
clip_grad_norm = gpc.config.get('clip_grad_norm', 0.0)
|
||||
if clip_grad_norm > 0:
|
||||
if use_zero and zero_cfg is not None:
|
||||
raise ConfigException(
|
||||
"clip_grad_norm should be specified with zero, you should specify clip_grad in zero configuration")
|
||||
|
||||
# initialize amp
|
||||
amp_mode = None
|
||||
|
Loading…
Reference in New Issue
Block a user