-
Notifications
You must be signed in to change notification settings - Fork 7
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
Flag to remove intermediate tasks' states #289
Conversation
@@ -179,6 +180,10 @@ def execute_experiment_job( | |||
deterministic_trainer: When true the Trainer adopts a deterministic behaviour also on GPU. | |||
In this function this parameter is set to True by default. | |||
job_name: Name of the experiment job. | |||
strategy: String denoting lightning distributed strategy. | |||
precision: String for which precision to use. | |||
retain_intermediate_state: Flag to retain intermediate models and buffer states. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe rephrase to "retain states after each update"? otherwise very redundant description and not helpful for anyone who doesn't understand what "intermediate" refers to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -57,6 +57,7 @@ | |||
JOB_NAME = "renate" | |||
SUPPORTED_TUNING_MODE = ["min", "max"] | |||
SUPPORTED_TUNING_MODE_TYPE = Literal["min", "max"] | |||
RETAIN_INTERMEDIATE_STATE = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's set it to False
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current mode of operation is True
. We shouldn't alter that, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that we never used the intermediate states, I'm fine changing the default behavior
Coverage reportThe coverage rate went from
Diff Coverage details (click to unfold)src/renate/defaults.py
src/renate/benchmark/experimentation.py
|
Large datasets' buffers can be too big and result in storage issues (noticed while training CLEAR). This flag eliminates backing up intermediate results and overwrites the same folder/files in each update.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.