Skip to content

Commit

Permalink
fix preqconditioner
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Dec 10, 2024
1 parent c59e598 commit 63f7f88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zeroband/optimizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def get_optimizer(params: list[torch.nn.Parameter], config: OptimizersConfig) ->
lr=config.lr,
betas=(config.betas1, config.betas2),
epsilon=1e-12,
weight_decay=1e-05,
max_preconditioner_dim=8192,
precondition_frequency=100,
weight_decay=config.weight_decay,
max_preconditioner_dim=config.max_preconditioner_dim,
precondition_frequency=config.precondition_frequency,
use_decoupled_weight_decay=True,
# This can also be set to `QREigenvalueCorrectionConfig` which is less expensive
# and might therefore allow for a smaller `precondition_frequency`.
Expand Down

0 comments on commit 63f7f88

Please sign in to comment.