提交 77e4f4cb 编写于 作者: U u010280923

debug

上级 95ea4cd1
......@@ -123,10 +123,21 @@ class RewardModel(pl.LightningModule):
{"params": [param_dict[n] for n in lr_2x], "weight_decay": 0.0, "my_lr_scale": 2.0},
{"params": [param_dict[n] for n in lr_3x], "weight_decay": 0.0, "my_lr_scale": 3.0},
]
optim_names = [
{"params": lr_1x},
{"params": lr_2x},
{"params": lr_3x},
]
else:
optim_groups = [
{"params": [p for n, p in self.named_parameters()], "weight_decay": 0.0},
]
optim_names = [
{"params": [n for n, p in self.named_parameters()]},
]
if self.deepspeed_offload:
return DeepSpeedCPUAdam(optim_groups, lr=self.args.lr_init, betas=self.args.betas, eps=self.args.adam_eps, bias_correction=True, adamw_mode=False, weight_decay=0, amsgrad=False)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册