Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMA, SAM update, cyclic LR schedule #269

Merged
merged 16 commits into from
Apr 24, 2024
Merged

EMA, SAM update, cyclic LR schedule #269

merged 16 commits into from
Apr 24, 2024

Conversation

M-R-Schaefer
Copy link
Contributor

@M-R-Schaefer M-R-Schaefer commented Apr 22, 2024

Added EMA parameters, replaced my custom SAM implementation with the one in optax (faster and probably more correct) and added a cyclic cosine lr schedule.

todo

  • expose each option to input file
  • set ZBL prefactor to 0

@M-R-Schaefer M-R-Schaefer marked this pull request as draft April 22, 2024 08:33
@M-R-Schaefer M-R-Schaefer marked this pull request as ready for review April 22, 2024 19:41
Copy link
Contributor

@Tetracarbonylnickel Tetracarbonylnickel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good. Can be merged after the small changes are implemented.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the default to the config to maintain a full configuration file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unused vars

Comment on lines 10 to 12
class EMAParameters:
def __init__(self, ema_start, alpha) -> None:
self.alpha = alpha
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs bitte :)

@M-R-Schaefer M-R-Schaefer merged commit 80182e2 into dev Apr 24, 2024
1 of 2 checks passed
@M-R-Schaefer M-R-Schaefer deleted the ema branch April 24, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants