Skip to content

Commit 247935f

Browse files
author
Seppo Enarvi
committed
Removed logging from WeightAveraging
1 parent aec9f6e commit 247935f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lightning/pytorch/callbacks/weight_averaging.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ def on_train_end(self, trainer: "pl.Trainer", pl_module: "pl.LightningModule") -
190190
191191
"""
192192
assert self._average_model is not None
193-
rank_zero_info("Loading the average model parameters to the final model.")
194193
self._copy_average_to_current(pl_module)
195194

196195
@override
@@ -205,7 +204,6 @@ def on_validation_epoch_start(self, trainer: "pl.Trainer", pl_module: "pl.Lightn
205204
206205
"""
207206
if self._average_model is not None:
208-
rank_zero_info("Loading the average model parameters for validation.")
209207
self._swap_models(pl_module)
210208

211209
@override
@@ -220,7 +218,6 @@ def on_validation_epoch_end(self, trainer: "pl.Trainer", pl_module: "pl.Lightnin
220218
221219
"""
222220
if self._average_model is not None:
223-
rank_zero_info("Recovering the current model parameters after validation.")
224221
self._swap_models(pl_module)
225222

226223
@override
@@ -270,7 +267,6 @@ def on_save_checkpoint(
270267
"average model parameters will be saved to the state_dict in the checkpoint."
271268
)
272269
else:
273-
rank_zero_info("The average model parameters will be saved to the state_dict in the checkpoint.")
274270
average_model_state = self._average_model.state_dict()
275271
checkpoint["current_model_state"] = checkpoint["state_dict"]
276272
checkpoint["state_dict"] = {

0 commit comments

Comments
 (0)