You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation of util.param_groups_lrd, parameter groups are assigned an lr_scale to support layer-wise learning rate decay. However, the lr_scale is not directly utilized to set the actual learning rate (lr) for each parameter group.
PyTorch optimizers like AdamW use the lr key in parameter groups to determine the learning rate. Since the current code only assigns lr_scale without applying it to the base learning rate, all layers effectively use the same learning rate, defeating the purpose of layer-wise decay.
In the current implementation of
util.param_groups_lrd, parameter groups are assigned anlr_scaleto support layer-wise learning rate decay. However, thelr_scaleis not directly utilized to set the actual learning rate (lr) for each parameter group.PyTorch optimizers like
AdamWuse thelrkey in parameter groups to determine the learning rate. Since the current code only assignslr_scalewithout applying it to the base learning rate, all layers effectively use the same learning rate, defeating the purpose of layer-wise decay.**Suggested Fix:**
In main_finetune.py
Let me know if I can help with a PR to address this!