Skip to content

Commit

Permalink
more app_opt scan example changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen committed Aug 14, 2024
1 parent f388c12 commit ebd0075
Show file tree
Hide file tree
Showing 33 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.segresnet.SegResNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.segresnet.SegResNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.segresnet.SegResNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"tasks": ["train"],
"filters":[
{
"name": "HEModelEncryptor",
"path": "nvflare.app_opt.he.model_encryptor.HEModelEncryptor",
"args": {
"weigh_by_local_iter": true
}
Expand All @@ -34,7 +34,7 @@
"tasks": ["submit_model"],
"filters":[
{
"name": "HEModelEncryptor",
"path": "nvflare.app_opt.he.model_encryptor.HEModelEncryptor",
"args": {
"weigh_by_local_iter": false
}
Expand All @@ -47,7 +47,7 @@
"tasks": ["train", "validate"],
"filters":[
{
"name": "HEModelDecryptor",
"path": "nvflare.app_opt.he.model_encryptor.HEModelEncryptor",
"args": {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
},
{
"id": "serialize_filter",
"name": "HEModelSerializeFilter",
"path": "nvflare.app_opt.he.model_serialize_filter.HEModelSerializeFilter",
"args": {
}
},
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.networks.cifar10_nets.ModerateCNN",
Expand All @@ -41,12 +41,12 @@
},
{
"id": "shareable_generator",
"name": "HEModelShareableGenerator",
"path": "nvflare.app_opt.he.model_sharable_generator.HEModelShareableGenerator",
"args": {}
},
{
"id": "aggregator",
"name": "HEInTimeAccumulateWeightedAggregator",
"path": "nvflare.app_opt.he.intime_accumulate_model_aggregator.HEInTimeAccumulateWeightedAggregator",
"args": {
"weigh_by_local_iter": false
}
Expand All @@ -58,7 +58,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down Expand Up @@ -87,7 +87,7 @@
},
{
"id": "cross_site_model_eval",
"name": "HECrossSiteModelEval",
"path": "nvflare.app_opt.he.cross_site_model_eval.HECrossSiteModelEval",
"args": {
"model_locator_id": "model_locator",
"submit_model_timeout": 600,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.networks.cifar10_nets.ModerateCNN",
Expand All @@ -46,7 +46,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.networks.cifar10_nets.ModerateCNN",
Expand All @@ -27,7 +27,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.networks.cifar10_nets.ModerateCNN",
Expand All @@ -36,7 +36,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
},
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": "model"
}
},
{
"id": "shareable_generator",
"name": "PTFedOptModelShareableGenerator",
"path": "nvflare.app_opt.pt.fedopt.PTFedOptModelShareableGenerator",
"args": {
"device": "cpu",
"source_model": "model",
Expand Down Expand Up @@ -71,7 +71,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.networks.cifar10_nets.ModerateCNN",
Expand All @@ -39,7 +39,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.networks.cifar10_nets.ModerateCNN",
Expand All @@ -36,7 +36,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.simple_network.SimpleNetwork"
Expand All @@ -30,7 +30,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "pt.simple_network.SimpleNetwork",
Expand All @@ -31,7 +31,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "custom.models.nlp_models.BertModel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "custom.models.nlp_models.GPTModel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.unet.UNet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"executor": {
"id": "Executor",
"name": "PTMultiProcessExecutor",
"path": "nvflare.app_opt.pt.multi_process_executor.PTMultiProcessExecutor",
"args": {
"executor_id": "learner_executor",
"num_of_processes": "{devices}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "nemo_nvflare.ServerPromptEncoder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"executor": {
"id": "Executor",
"name": "PTMultiProcessExecutor",
"path": "nvflare.app_opt.pt.multi_process_executor.PTMultiProcessExecutor",
"args": {
"executor_id": "learner_executor",
"num_of_processes": "{devices}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor",
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor",
"args": {
"model": {
"path": "nemo_nvflare.ServerSFTModel",
Expand Down
Loading

0 comments on commit ebd0075

Please sign in to comment.