Skip to content

Commit 7b33287

Browse files
committed
update: Lion recipes
1 parent 2e9a3f1 commit 7b33287

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
DiffGrad,
2222
DiffRGrad,
2323
Lamb,
24+
Lion,
2425
Nero,
2526
NovoGrad,
2627
RAdam,
@@ -70,6 +71,7 @@
7071
'adams',
7172
'adafactor',
7273
'novograd',
74+
'lion',
7375
]
7476

7577
VALID_LR_SCHEDULER_NAMES: List[str] = [
@@ -161,6 +163,8 @@
161163
(Apollo, {'lr': 5e-1, 'weight_decay': 1e-3, 'rebound': 'belief'}, 10),
162164
(Apollo, {'lr': 5e-1, 'weight_decay': 1e-3, 'weight_decay_type': 'stable', 'warmup_steps': 0}, 50),
163165
(NovoGrad, {'lr': 5e-1, 'weight_decay': 1e-3, 'grad_averaging': True}, 50),
166+
(Lion, {'lr': 5e-1, 'weight_decay': 1e-3}, 10),
167+
(Lion, {'lr': 5e-1, 'weight_decay': 1e-3, 'weight_decouple': False}, 10),
164168
]
165169
ADAMD_SUPPORTED_OPTIMIZERS: List[Tuple[Any, Dict[str, Union[float, bool, int]], int]] = [
166170
(build_lookahead, {'lr': 5e-1, 'weight_decay': 1e-3, 'adamd_debias_term': True}, 10),

0 commit comments

Comments
 (0)