Skip to content

Commit e8e795d

Browse files
committed
update: AdamS recipes
1 parent 860da95 commit e8e795d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/constants.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
AdaBound,
1010
Adai,
1111
AdamP,
12+
AdamS,
1213
Adan,
1314
AdaPNM,
1415
DAdaptAdaGrad,
@@ -79,6 +80,7 @@
7980
'dadaptadagrad',
8081
'dadaptadam',
8182
'dadaptsgd',
83+
'adams',
8284
]
8385
INVALID_OPTIMIZER_NAMES: List[str] = [
8486
'asam',
@@ -105,6 +107,7 @@
105107
'adai',
106108
'shampoo',
107109
'dadaptadam',
110+
'adams',
108111
]
109112

110113
VALID_LR_SCHEDULER_NAMES: List[str] = [
@@ -188,6 +191,8 @@
188191
(DAdaptAdam, {'lr': 1.0, 'weight_decay': 1e-2, 'weight_decouple': True}, 50),
189192
(DAdaptSGD, {'lr': 1.0, 'weight_decay': 1e-2}, 50),
190193
(DAdaptSGD, {'lr': 1.0, 'momentum': 0.9, 'weight_decay': 1e-3}, 50),
194+
(AdamS, {'lr': 1.0, 'weight_decay': 1e-3}, 50),
195+
(AdamS, {'lr': 1.0, 'weight_decay': 1e-3, 'amsgrad': True}, 50),
191196
]
192197
ADAMD_SUPPORTED_OPTIMIZERS: List[Tuple[Any, Dict[str, Union[float, bool, int]], int]] = [
193198
(build_lookahead, {'lr': 5e-1, 'weight_decay': 1e-3, 'adamd_debias_term': True}, 10),
@@ -202,4 +207,5 @@
202207
(Ranger, {'lr': 5e-1, 'weight_decay': 1e-3, 'adamd_debias_term': True}, 100),
203208
(Ranger21, {'lr': 5e-1, 'weight_decay': 1e-3, 'adamd_debias_term': True, 'num_iterations': 200}, 200),
204209
(AdaPNM, {'lr': 3e-1, 'weight_decay': 1e-3, 'adamd_debias_term': True}, 50),
210+
(AdamS, {'lr': 1e-1, 'weight_decay': 1e-3, 'adamd_debias_term': True}, 50),
205211
]

0 commit comments

Comments
 (0)