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

enable None model checkpoint default #3669

Merged
merged 22 commits into from
Sep 27, 2020
Merged

enable None model checkpoint default #3669

merged 22 commits into from
Sep 27, 2020

Conversation

williamFalcon
Copy link
Contributor

Since we don't know what to monitor, we are using None as the default going forward.

Now if a user wants to monitor a value, they have to specify a monitor value in the callback.

This is an intermediate step to getting rid of the magic keywords for checkpoint and ES

@mergify mergify bot requested a review from a team September 26, 2020 20:13
@pep8speaks
Copy link

pep8speaks commented Sep 26, 2020

Hello @williamFalcon! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-09-27 02:39:06 UTC

@williamFalcon williamFalcon changed the title [WIP] enable None model checkpoint default enable None model checkpoint default Sep 26, 2020
@@ -336,6 +340,13 @@ def on_validation_end(self, trainer, pl_module):
metrics = trainer.logger_connector.callback_metrics
epoch = trainer.current_epoch

# backward compatibility... need to deprecate
Copy link
Contributor

Choose a reason for hiding this comment

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

these need to check if self.monitor is None before resetting it to the older defaults right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup! sorry, i think i removed the WIP too soon haha. but good catch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ended up just doing a much needed clean up to maintain sanity haha

@@ -513,7 +513,6 @@ def run_sanity_check(self, ref_model):
self.on_sanity_check_end()
self.running_sanity_check = False

@trainer_state(entering=TrainerState.RUNNING, exiting=TrainerState.FINISHED)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Borda let's please get rid of these... makes readability impossible (and IDE inspection)

Copy link
Member

Choose a reason for hiding this comment

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

ok, we can remove wrappers, just keep the state assignment..

@williamFalcon williamFalcon merged commit d79bce1 into master Sep 27, 2020
@Borda Borda deleted the none_ckpt branch September 27, 2020 18:50
@Borda Borda added the feature Is an improvement or enhancement label Sep 27, 2020
@Borda Borda added this to the 0.9.x milestone Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is an improvement or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants