feat: Added warmup each cycle feature in CyclicalScheduler#3064
feat: Added warmup each cycle feature in CyclicalScheduler#3064vfdev-5 merged 18 commits intopytorch:masterfrom
Conversation
- add _get_cycle_param method in CyclicalScheduler - add warmup_each_cycle, warmup_duration variable in CyclicalScheduler - add warmup phase in CosineAnnealingScheduler issue pytorch#3036
- remove f in not using f string variable sentence
- rename get_param in LinearCyclicalScheduler, CosineAnnealingScheduler to _get_clcye_param
sadra-barikbin
left a comment
There was a problem hiding this comment.
Thank you @sihyeong671 , I left some comments.
- fix typo - add docsting which is in PR review - change _get_cycle_param to abstractmethod - raise ValueError when warmup_each_cycle=True && warmup_duration is None
- add test_cyclical_scheduler_asserts - add test_cosine_annealing_scheduler_warmup
|
@sihyeong671 thanks for working on this PR! Can you please fix this test issue: |
In macOS, If I change the sentence, AssertionError like below code |
|
@sihyeong671 I see, let's just check for this sting "Can't instantiate abstract class CyclicalScheduler": with pytest.raises(
TypeError, match="Can't instantiate abstract class CyclicalScheduler"
):
CyclicalScheduler({}, "lr", 0.0, 1.0, 10) |
|
@vfdev-5 I have no idea how to fix the error. In cpu-tests, error shows "Error: The operation was canceled.", how to handle it? |
|
@sihyeong671 no worries, this can be a flaky CI. We set 45 minutes limit if the test stuck with distributed tests. So, just restarting it. |
- change _get_cycle_param to _get_param - add _get_param in ParamScheduler - remove warmup_each_cycle variable
- remove test_cyclical_scheduler - remove warmup_each_cycle variable
vfdev-5
left a comment
There was a problem hiding this comment.
LGTM, thanks @sihyeong671 and @sadra-barikbin !
issue #3036
Description:
this feature is following https://github.com/katsura-jp/pytorch-cosine-annealing-with-warmup
Check list: