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

SAM configuration check fixes #288

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

laserkelvin
Copy link
Collaborator

This PR fixes bugs associated with the skip_* configuration options to the SAM callback introduced in #284:

  • Fixed the nothing logical comparison for skip_epoch_count and skip_epoch_count in __init__, which meant any value of skip_epoch_count would fail the assertion
  • Changed is_integer checks to isinstance(skip_epoch_count, float); this was a mistake from my IDE that confused me into thinking it was a method for float as well as strings.
  • Added a logging step that reports which epoch SAM when a fractional value is passed to skip_epoch_count

@laserkelvin laserkelvin added bug Something isn't working training Issues related to model training labels Sep 10, 2024
@laserkelvin laserkelvin merged commit 9ac8a65 into IntelLabs:main Sep 10, 2024
2 of 3 checks passed
@laserkelvin laserkelvin deleted the sam-config-fixes branch September 10, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working training Issues related to model training
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants