Skip to content

Commit

Permalink
Merge pull request #512 from FedML-AI/test/v0.7.0
Browse files Browse the repository at this point in the history
Test/v0.7.0
  • Loading branch information
fedml-alex authored Sep 1, 2022
2 parents c2561db + d2701b1 commit 5f5ce78
Show file tree
Hide file tree
Showing 28 changed files with 41 additions and 303 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/smoke_test_cross_silo_fedavg_defense_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,20 @@ jobs:
run_id=cross-silo-defense-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo run_id
bash run_client.sh 2 $run_id
if: ${{ matrix.client-index == '2' }}
if: ${{ matrix.client-index == '2' }}

- name: client 3 - cross-silo - defense
run: |
cd examples/cross_silo/mqtt_s3_fedavg_defense_mnist_lr_example
run_id=cross-silo-defense-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo run_id
bash run_client.sh 3 $run_id
if: ${{ matrix.client-index == '3' }}

- name: client 4 - cross-silo - defense
run: |
cd examples/cross_silo/mqtt_s3_fedavg_defense_mnist_lr_example
run_id=cross-silo-defense-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo run_id
bash run_client.sh 4 $run_id
if: ${{ matrix.client-index == '4' }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ model_args:
train_args:
federated_optimizer: "FedAvg"
client_id_list:
client_num_in_total: 100
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 50
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ train_args:
# for CLI running, this can be None; in MLOps deployment, `client_id_list` will be replaced with real-time selected devices
client_id_list:
# for FoolsGold Defense, if use_memory is true, then client_num_in_total should be equal to client_number_per_round
client_num_in_total: 2
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 10
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ train_args:
federated_optimizer: "FedAvg"
# for CLI running, this can be None; in MLOps deployment, `client_id_list` will be replaced with real-time selected devices
client_id_list:
client_num_in_total: 4
client_num_in_total: 1000
client_num_per_round: 4
comm_round: 10
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ common_args:
scenario: "horizontal"
using_mlops: false
random_seed: 0
config_version: release

environment_args:
bootstrap: config/bootstrap.sh
Expand All @@ -23,17 +22,17 @@ train_args:
federated_optimizer: "FedAvg"
# for CLI running, this can be None; in MLOps deployment, `client_id_list` will be replaced with real-time selected devices
client_id_list:
client_num_in_total: 4
client_num_per_round: 4
comm_round: 10
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 50
epochs: 1
batch_size: 10
client_optimizer: sgd
learning_rate: 0.03
weight_decay: 0.001

validation_args:
frequency_of_the_test: 1
frequency_of_the_test: 5

device_args:
using_gpu: false
Expand All @@ -42,9 +41,8 @@ device_args:

comm_args:
backend: "MQTT_S3"
mqtt_config_path:
s3_config_path:
grpc_ipconfig_path: ./config/grpc_ipconfig.csv
mqtt_config_path: config/mqtt_config.yaml
s3_config_path: config/s3_config.yaml

tracking_args:
# the default log path is at ~/fedml-client/fedml/logs/ and ~/fedml-server/fedml/logs/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ train_args:
# for CLI running, this can be None; in MLOps deployment, `client_id_list` will be replaced with real-time selected devices
client_id_list:
# for FoolsGold Defense, if use_memory is true, then client_num_in_total should be equal to client_number_per_round
client_num_in_total: 4
client_num_in_total: 1000
client_num_per_round: 4
comm_round: 10
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ train_args:
federated_optimizer: "FedAvg"
# for CLI running, this can be None; in MLOps deployment, `client_id_list` will be replaced with real-time selected devices
client_id_list:
client_num_in_total: 4
client_num_in_total: 1000
client_num_per_round: 4
comm_round: 10
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ model_args:
train_args:
federated_optimizer: "FedAvg"
client_id_list:
client_num_in_total: 2
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 50
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ model_args:
train_args:
federated_optimizer: "FedAvg"
client_id_list:
client_num_in_total: 2
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 50
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ model_args:
train_args:
federated_optimizer: "FedAvg"
client_id_list:
client_num_in_total: 2
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 50
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ model_args:
train_args:
federated_optimizer: "FedAvg"
client_id_list:
client_num_in_total: 2
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 50
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ model_args:
train_args:
federated_optimizer: "FedAvg"
client_id_list:
client_num_in_total: 2
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 50
epochs: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ train_args:
federated_optimizer: "FedAvg"
# for CLI running, this can be None; in MLOps deployment, `client_id_list` will be replaced with real-time selected devices
client_id_list:
client_num_in_total: 2
client_num_in_total: 1000
client_num_per_round: 2
comm_round: 10
epochs: 1
Expand Down
44 changes: 0 additions & 44 deletions python/examples/simulation/nccl_fedavg_example/README.md

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5f5ce78

Please sign in to comment.