-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SCAFFOLD Integration scaffold learner scaffold configs initialize the scaffold terms on the client update README to include SCAFFOLD description add scaffold experiment update urls add LICENSE from NIID-Bench update README and plots to reflect SCAFFOLD experiment refactor scaffold computation steps into their own member functions remove unused import refactor to use ScaffoldLearner class Scaffold learner depends on PyTorch. Renamed as such use two standard aggregators, inherit SCAFFOLD workflow from standard ScatterAndGather remove custom aggregator use update_shareable use multi-class inheritance for scaffold learner use new aggregator that supports several DXOs fix updating call for global model simplify dxo/shareable handling use built-in PTFileModelLocator fix formatting add PT Formatter use built-in validation json generator; remove custom formatter remove custom Json validation generator update license restore run_secure.sh restore project yml restore main branch learner executor add SCAFFOLD link to example readme remove custom validation json generator print model owner info during validation remove custom formatter remove special handling of validation dxo. Not needed anymore use zeros_like() to initialize scaffold terms * use scaffold helper class * formatting * make scaffold function args consistent
- Loading branch information
1 parent
b7e98b7
commit 7ab7b1e
Showing
26 changed files
with
741 additions
and
345 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
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
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
37 changes: 37 additions & 0 deletions
37
examples/cifar10/configs/cifar10_scaffold/config/config_fed_client.json
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"format_version": 2, | ||
|
||
"DATASET_ROOT": "/tmp/cifar10_data", | ||
|
||
"executors": [ | ||
{ | ||
"tasks": [ | ||
"train", "submit_model", "validate" | ||
], | ||
"executor": { | ||
"id": "Executor", | ||
"path": "nvflare.app_common.executors.learner_executor.LearnerExecutor", | ||
"args": { | ||
"learner_id": "cifar10-learner" | ||
} | ||
} | ||
} | ||
], | ||
|
||
"task_result_filters": [ | ||
], | ||
"task_data_filters": [ | ||
], | ||
|
||
"components": [ | ||
{ | ||
"id": "cifar10-learner", | ||
"path": "pt.learners.cifar10_scaffold_learner.CIFAR10ScaffoldLearner", | ||
"args": { | ||
"dataset_root": "{DATASET_ROOT}", | ||
"aggregation_epochs": 4, | ||
"lr": 1e-2 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.