mirror of https://github.com/hpcaitech/ColossalAI
Merge pull request #2338 from haofanwang/patch-1
Fix a typo in train_dreambooth_colossalai.pypull/2379/head
commit
7a332b1734
|
@ -484,7 +484,7 @@ def main(args):
|
|||
unet.enable_gradient_checkpointing()
|
||||
|
||||
if args.scale_lr:
|
||||
args.learning_rate = args.learning_rate * args.gradient_accumulation_steps * args.train_batch_size * 2
|
||||
args.learning_rate = args.learning_rate * args.gradient_accumulation_steps * args.train_batch_size * gpc.get_world_size(ParallelMode.DATA)
|
||||
|
||||
unet = gemini_zero_dpp(unet, pg, args.placement)
|
||||
|
||||
|
|
Loading…
Reference in New Issue