Skip to content

Commit

Permalink
app_opt scan changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen committed Aug 9, 2024
1 parent f8a3735 commit 20d1903
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/programming_guide/component_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ For example:
{
"id": "shareable_generator",
"name": "PTFedOptModelShareableGenerator",
"path": "nvflare.app_opt.pt.fedopt.PTFedOptModelShareableGenerator",
"args": {
"device": "cpu",
"source_model": "model",
Expand Down
2 changes: 1 addition & 1 deletion docs/programming_guide/execution_api_type/executor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ processes to use.
"local_epochs": 5,
"steps_aggregation": 0,
"model_reader_writer": {
"name": "PTModelReaderWriter"
"path": "nvflare.app_opt.pt.model_reader_writer.PTModelReaderWriter"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/init_weights_1_config_fed_server.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"components": [
{
"id": "persistor",
"name": "PTFileModelPersistor"
"path": "nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor"
},
{
"id": "shareable_generator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tasks": ["train"],
"filters":[
{
"name": "HEModelEncryptor",
"path": "nvflare.app_opt.he.model_encryptor.HEModelEncryptor",
"args": {
"weigh_by_local_iter": true
}
Expand All @@ -32,7 +32,7 @@
"tasks": ["submit_model"],
"filters":[
{
"name": "HEModelEncryptor",
"path": "nvflare.app_opt.he.model_encryptor.HEModelEncryptor",
"args": {
"weigh_by_local_iter": false
}
Expand All @@ -45,7 +45,7 @@
"tasks": ["train", "validate"],
"filters":[
{
"name": "HEModelDecryptor",
"path": "nvflare.app_opt.he.model_encryptor.HEModelDecryptor",
"args": {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"components": [
{
"id": "serialize_filter",
"name": "HEModelSerializeFilter",
"path": "nvflare.app_opt.he.model_serialize_filter.HEModelSerializeFilter",
"args": {}
},
{
Expand All @@ -22,12 +22,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 @@ -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 Expand Up @@ -68,7 +68,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 @@ -33,7 +33,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 @@ -33,7 +33,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 @@ -8,7 +8,7 @@
],
"executor": {
"id": "executor",
"name": "PTMultiProcessExecutor",
"path": "nvflare.app_opt.pt.multi_process_executor.PTMultiProcessExecutor",
"args": {
"executor_id": "client_algo_executor",
"num_of_processes": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"id": "model_locator",
"name": "PTFileModelLocator",
"path": "nvflare.app_opt.pt.file_model_locator.PTFileModelLocator",
"args": {
"pt_persistor_id": "persistor"
}
Expand Down

0 comments on commit 20d1903

Please sign in to comment.