• Hu Ye's avatar
    add set_weight_decay to support custom weight decay setting (#5671) · 3925946f
    Hu Ye authored
    
    
    * add set_weight_decay
    
    * Update _utils.py
    
    * refactor code
    
    * fix import
    
    * add set_weight_decay
    
    * fix lint
    
    * fix lint
    
    * replace split_normalization_params with set_weight_decay
    
    * simplfy the code
    
    * refactor code
    
    * refactor code
    
    * fix lint
    
    * remove unused
    
    * Update test_ops.py
    
    * Update train.py
    
    * Update _utils.py
    
    * Update train.py
    
    * add set_weight_decay
    
    * add set_weight_decay
    
    * Update _utils.py
    
    * Update test_ops.py
    
    * Change `--transformer-weight-decay` to `--transformer-embedding-decay`
    Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
    3925946f
train.py 21.5 KB