Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 50a0452

Browse files
authored
Checkpointing (#269)
* num_serialized_models_to_keep is now keep_most_recent_by_count * Changelog
1 parent 07f1b56 commit 50a0452

12 files changed

Lines changed: 12 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111
- Updated all instances of `sanity_checks` to `confidence_checks`.
12+
- The `num_serialized_models_to_keep` parameter is now called `keep_most_recent_by_count`.
1213

1314
### Added
1415

test_fixtures/pair_classification/bimpm/experiment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
},
121121
"trainer": {
122122
"checkpointer": {
123-
"num_serialized_models_to_keep": 2
123+
"keep_most_recent_by_count": 2
124124
},
125125
"num_epochs": 5,
126126
"patience": 2,

test_fixtures/pair_classification/esim/experiment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
"validation_metric": "+accuracy",
8585
"checkpointer": {
86-
"num_serialized_models_to_keep": 2
86+
"keep_most_recent_by_count": 2
8787
},
8888
"num_epochs": 5,
8989
"grad_norm": 10.0,

test_fixtures/structured_prediction/srl/bert_srl.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ local bert_model = "epwalsh/bert-xsmall-dummy";
2525
"lr": 0.001
2626
},
2727
"checkpointer": {
28-
"num_serialized_models_to_keep": 1
28+
"keep_most_recent_by_count": 1
2929
},
3030
"num_epochs": 3,
3131
"grad_norm": 10.0,

test_fixtures/structured_prediction/srl/bert_srl_local_files.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ local bert_config = {
4646
"lr": 0.001
4747
},
4848
"checkpointer": {
49-
"num_serialized_models_to_keep": 1
49+
"keep_most_recent_by_count": 1
5050
},
5151
"num_epochs": 3,
5252
"grad_norm": 10.0,

training_config/pair_classification/esim.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"lr": 0.0004
8383
},
8484
"checkpointer": {
85-
"num_serialized_models_to_keep": 2,
85+
"keep_most_recent_by_count": 2,
8686
},
8787
"validation_metric": "+accuracy",
8888
"num_epochs": 75,

training_config/pair_classification/esim_elmo.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"lr": 0.0004
9090
},
9191
"checkpointer": {
92-
"num_serialized_models_to_keep": 2,
92+
"keep_most_recent_by_count": 2,
9393
},
9494
"validation_metric": "+accuracy",
9595
"num_epochs": 75,

training_config/structured_prediction/bert_base_srl.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local bert_model = "bert-base-uncased";
3939
"type": "slanted_triangular",
4040
},
4141
"checkpointer": {
42-
"num_serialized_models_to_keep": 2,
42+
"keep_most_recent_by_count": 2,
4343
},
4444
"grad_norm": 1.0,
4545
"num_epochs": 15,

training_config/structured_prediction/srl_elmo.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"patience": 200,
6262
"validation_metric": "+f1-measure-overall",
6363
"checkpointer": {
64-
"num_serialized_models_to_keep": 10,
64+
"keep_most_recent_by_count": 10,
6565
},
6666
"optimizer": {
6767
"type": "adadelta",

training_config/structured_prediction/srl_elmo_5.5B.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"patience": 200,
6262
"validation_metric": "+f1-measure-overall",
6363
"checkpointer": {
64-
"num_serialized_models_to_keep": 10,
64+
"keep_most_recent_by_count": 10,
6565
},
6666
"optimizer": {
6767
"type": "adadelta",

0 commit comments

Comments
 (0)