One cycle lr (#1803)

* refactor one_cycle lr scheduler so it's reusable in more situations

* fix validation for lr_scheduler

* default to cosine anneal strategy

* one cycle lr exepects cos
This commit is contained in:
Wing Lian
2024-08-05 13:12:05 -04:00
committed by GitHub
parent b7665c26c8
commit ecdda006de
3 changed files with 35 additions and 43 deletions

View File

@@ -8,6 +8,8 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: no-commit-to-branch
args: ['--branch', 'main']
- repo: https://github.com/psf/black
rev: 23.3.0
hooks: