forked from mlcommons/medperf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from hasan7n/be_enable_partial_epochs
Enabling partial epochs
- Loading branch information
Showing
8 changed files
with
311 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,18 +5,47 @@ aggregator : | |
init_state_path : save/fl_post_two_init.pbuf | ||
best_state_path : save/fl_post_two_best.pbuf | ||
last_state_path : save/fl_post_two_last.pbuf | ||
rounds_to_train : 2 | ||
rounds_to_train : &rounds_to_train 2 | ||
admins_endpoints_mapping: | ||
[email protected]: | ||
- GetExperimentStatus | ||
- SetStragglerCuttoffTime | ||
- SetDynamicTaskArg | ||
- GetDynamicTaskArg | ||
|
||
dynamictaskargs: &dynamictaskargs | ||
train: | ||
train_cutoff_time: | ||
admin_settable: True | ||
min: 10 # 10 seconds | ||
max: 86400 # one day | ||
value: 86400 # one day | ||
val_cutoff_time: | ||
admin_settable: True | ||
min: 10 # 10 seconds | ||
max: 86400 # one day | ||
value: 86400 # one day | ||
train_completion_dampener: # train_completed -> (train_completed)**(train_completion_dampener) NOTE: Value close to zero zero shifts non 0.0 completion rates much closer to 1.0 | ||
admin_settable: True | ||
min: -1.0 # inverts train_comleted, so this would be a way to have checkpoint_weighting = train_completed * data_size (as opposed to data_size / train_completed) | ||
max: 1.0 # leaves completion rates as is | ||
value: 1.0 | ||
|
||
aggregated_model_validation: | ||
val_cutoff_time: | ||
admin_settable: True | ||
min: 10 # 10 seconds | ||
max: 86400 # one day | ||
value: 86400 # one day | ||
|
||
|
||
collaborator : | ||
defaults : plan/defaults/collaborator.yaml | ||
template : openfl.component.Collaborator | ||
settings : | ||
delta_updates : false | ||
opt_treatment : CONTINUE_LOCAL | ||
dynamictaskargs: *dynamictaskargs | ||
|
||
data_loader : | ||
defaults : plan/defaults/data_loader.yaml | ||
|
@@ -29,9 +58,10 @@ task_runner : | |
defaults : plan/defaults/task_runner.yaml | ||
template : src.runner_nnunetv1.PyTorchNNUNetCheckpointTaskRunner | ||
settings : | ||
device : cuda | ||
gpu_num_string : '0' | ||
nnunet_task : Task537_FLPost | ||
device : cuda | ||
gpu_num_string : '0' | ||
nnunet_task : Task537_FLPost | ||
actual_max_num_epochs : *rounds_to_train | ||
|
||
network : | ||
defaults : plan/defaults/network.yaml | ||
|
@@ -45,19 +75,39 @@ assigner : | |
- name : train_and_validate | ||
percentage : 1.0 | ||
tasks : | ||
# - aggregated_model_validation | ||
- aggregated_model_validation | ||
- train | ||
# - locally_tuned_model_validation | ||
- locally_tuned_model_validation | ||
|
||
tasks : | ||
defaults : plan/defaults/tasks_torch.yaml | ||
aggregated_model_validation: | ||
function : validate | ||
kwargs : | ||
metrics : | ||
- val_eval | ||
- val_eval_C1 | ||
- val_eval_C2 | ||
- val_eval_C3 | ||
- val_eval_C4 | ||
apply : global | ||
train: | ||
function : train | ||
kwargs : | ||
metrics : | ||
- train_loss | ||
- val_eval | ||
- train_loss | ||
epochs : 1 | ||
locally_tuned_model_validation: | ||
function : validate | ||
kwargs : | ||
metrics : | ||
- val_eval | ||
- val_eval_C1 | ||
- val_eval_C2 | ||
- val_eval_C3 | ||
- val_eval_C4 | ||
apply : local | ||
from_checkpoint: true | ||
|
||
compression_pipeline : | ||
defaults : plan/defaults/compression_pipeline.yaml | ||
|
@@ -66,4 +116,4 @@ straggler_handling_policy : | |
template : openfl.component.straggler_handling_functions.CutoffTimeBasedStragglerHandling | ||
settings : | ||
straggler_cutoff_time : 600 | ||
minimum_reporting : 2 | ||
minimum_reporting : 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.