-
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.
Added Demo job with 2 levels of hierarchy, and fixed some bugs and ad…
…ded startup delay
- Loading branch information
1 parent
79cdd24
commit a1037b1
Showing
4 changed files
with
223 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
dataset: | ||
cluster_configs: | ||
- &def_dir_dist | ||
prep: cifar_def | ||
preprocessor: default | ||
distribution: | ||
distributor: diritchlet_dist | ||
# chunks: | ||
# - 0.5 | ||
# - 0.5 | ||
extra_params: | ||
diritchlet: | ||
alpha: 0.5 | ||
seed: 10 | ||
train_test_split: | ||
train: 0.8 | ||
test: 0.2 | ||
|
||
consensus: | ||
- &default_2_3 | ||
runnable: majority_2_3 | ||
|
||
training: | ||
client_configs: | ||
- &cifar_train_def | ||
learning_rate: 0.0001 | ||
batch_size: 64 | ||
local_epochs: 5 | ||
extra_params: | ||
fed_prox: | ||
mu: 0.01 | ||
lr_decay: 1 | ||
|
||
worker_configs: | ||
- &fed_avg_def | ||
aggregator: fed_avg | ||
batch_size: 256 | ||
extra_params: | ||
fed_avg_momentum: 0.9 | ||
|
||
model_params: | ||
- &cifar_simple_cnn | ||
model_file: cifar10CNN_wp | ||
parameter_mixer: default | ||
training_loop_file: cel_simple | ||
test_file: multi_cel_simple | ||
|
||
client_configs: | ||
- &def_client | ||
model_params: | ||
<<: *cifar_simple_cnn | ||
train_params: | ||
<<: *cifar_train_def | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
worker_configs: | ||
- &def_worker | ||
model_params: | ||
<<: *cifar_simple_cnn | ||
aggregator_params: | ||
<<: *fed_avg_def | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
clients: | ||
node_1: | ||
<<: *def_client | ||
node_2: | ||
<<: *def_client | ||
node_3: | ||
<<: *def_client | ||
node_4: | ||
<<: *def_client | ||
node_5: | ||
<<: *def_client | ||
node_6: | ||
<<: *def_client | ||
node_7: | ||
<<: *def_client | ||
node_8: | ||
<<: *def_client | ||
|
||
workers: | ||
node_0: | ||
<<: *def_worker | ||
node_1: | ||
<<: *def_worker | ||
node_2: | ||
<<: *def_worker | ||
node_3: | ||
<<: *def_worker | ||
node_4: | ||
<<: *def_worker | ||
node_5: | ||
<<: *def_worker | ||
node_6: | ||
<<: *def_worker | ||
node_7: | ||
<<: *def_worker | ||
node_8: | ||
<<: *def_worker | ||
|
||
clusters: | ||
cluster_0: | ||
upstream_cluster: null | ||
clients: | ||
- cluster_0_0 | ||
- cluster_0_1 | ||
workers: | ||
- node_0 | ||
- node_2 | ||
- node_8 | ||
consensus_params: | ||
<<: *default_2_3 | ||
train_params: | ||
cluster_epochs: 1 | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
cluster_0_0: | ||
upstream_cluster: cluster_0 | ||
clients: | ||
- cluster_0_0_0 | ||
- cluster_0_0_1 | ||
workers: | ||
- node_0 | ||
- node_1 | ||
- node_3 | ||
consensus_params: | ||
<<: *default_2_3 | ||
train_params: | ||
cluster_epochs: 1 | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
cluster_0_1: | ||
upstream_cluster: cluster_0 | ||
clients: | ||
- cluster_0_1_0 | ||
- cluster_0_1_1 | ||
workers: | ||
- node_0 | ||
- node_5 | ||
- node_7 | ||
consensus_params: | ||
<<: *default_2_3 | ||
train_params: | ||
cluster_epochs: 1 | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
cluster_0_0_0: | ||
upstream_cluster: cluster_0_0 | ||
clients: | ||
- node_1 | ||
- node_2 | ||
workers: | ||
- node_0 | ||
consensus_params: | ||
<<: *default_2_3 | ||
train_params: | ||
cluster_epochs: 1 | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
cluster_0_0_1: | ||
upstream_cluster: cluster_0_0 | ||
clients: | ||
- node_3 | ||
- node_4 | ||
workers: | ||
- node_0 | ||
consensus_params: | ||
<<: *default_2_3 | ||
train_params: | ||
cluster_epochs: 1 | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
cluster_0_1_0: | ||
upstream_cluster: cluster_0_1 | ||
clients: | ||
- node_5 | ||
- node_6 | ||
workers: | ||
- node_0 | ||
consensus_params: | ||
<<: *default_2_3 | ||
train_params: | ||
cluster_epochs: 1 | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
cluster_0_1_1: | ||
upstream_cluster: cluster_0_1 | ||
clients: | ||
- node_7 | ||
- node_8 | ||
workers: | ||
- node_0 | ||
consensus_params: | ||
<<: *default_2_3 | ||
train_params: | ||
cluster_epochs: 1 | ||
dataset_params: | ||
<<: *def_dir_dist | ||
|
||
job_params: | ||
rounds: 3 |