-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
444 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,4 @@ system: | |
# nic: 'enp3s0' | ||
clients: | ||
amount: 2 | ||
num_clients: 2 |
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,38 @@ | ||
--- | ||
# Experiment configuration | ||
total_epochs: 3 | ||
epochs_per_cycle: 1 | ||
wait_for_clients: true | ||
net: MNISTCNN | ||
dataset: mnist | ||
# Use cuda is available; setting to false will force CPU | ||
cuda: false | ||
profiling_time: 100 | ||
warmup_round: false | ||
output_location: 'output/dev_p2' | ||
tensor_board_active: true | ||
clients_per_round: 2 | ||
node_groups: | ||
slow: [1, 1] | ||
medium: [2, 2] | ||
fast: [3, 3] | ||
sampler: "uniform" # "limit labels" || "q sampler" || "dirichlet" || "uniform" (default) | ||
#sampler: "uniform" # "limit labels" || "q sampler" || "dirichlet" || "uniform" (default) | ||
sampler_args: | ||
- 0.07 # label limit || q probability || alpha || unused | ||
- 42 # random seed || random seed || random seed || unused | ||
system: | ||
federator: | ||
# hostname: '131.180.203.94' | ||
hostname: '10.5.0.11' | ||
nic: 'eth0' | ||
# nic: 'enp3s0' | ||
clients: | ||
amount: 2 | ||
num_clients: 2 | ||
# Individual configuration | ||
offload_stategy: vanilla | ||
deadline: 500 | ||
single_machine: true | ||
real_time: false | ||
experiment_prefix: 'util_fedavg_direct' |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Individual configuration | ||
offload_stategy: vanilla | ||
deadline: 500 | ||
deadline: 500 | ||
single_machine: false | ||
real_time: true |
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,5 @@ | ||
# Individual configuration | ||
offload_stategy: vanilla | ||
deadline: 500 | ||
single_machine: true | ||
real_time: false |
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
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,26 @@ | ||
client_name: # name can be anything | ||
# container_name: federation-lab-client2 # what the name for this container would be | ||
cpuset: {cpu_set} | ||
restart: "no" # if it crashes for example | ||
build: . # look for the docker file where this file is currently located | ||
volumes: | ||
# - ./docker_data:/opt/federation-lab/data | ||
- ./data:/opt/federation-lab/data | ||
- ./default_models:/opt/federation-lab/default_models | ||
- ./data_loaders:/opt/federation-lab/data_loaders | ||
- ./fltk:/opt/federation-lab/fltk | ||
environment: | ||
- PYTHONUNBUFFERED=1 | ||
- RANK={rank} | ||
- WORLD_SIZE={world_size} | ||
- EXP_CONFIG=${EXP_CONFIG_FILE} | ||
- MASTER_HOSTNAME=10.5.0.11 | ||
- NIC=eth0 | ||
ports: | ||
- "5002:5000" # {machine-port}:{docker-port} | ||
depends_on: | ||
- "fl_server" | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '2' |
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,19 @@ | ||
federator: | ||
stub-name: system_stub.yml | ||
pin-cores: true | ||
num-cores: 1 | ||
clients: | ||
fast: | ||
stub-name: stub_default.yml | ||
amount: 20 | ||
pin-cores: true | ||
num-cores: 1 | ||
cpu-speed: 0.5 | ||
cpu-variation: 0.16 | ||
slow: | ||
stub-name: stub_default.yml | ||
amount: 0 | ||
pin-cores: true | ||
num-cores: 1 | ||
cpu-speed: 1 | ||
cpu-variation: 0 |
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,26 @@ | ||
client_name: # name can be anything | ||
# container_name: federation-lab-client2 # what the name for this container would be | ||
cpuset: '{cpu_set}' | ||
restart: "no" # if it crashes for example | ||
build: . # look for the docker file where this file is currently located | ||
volumes: | ||
- ./data:/opt/federation-lab/data | ||
# - ./docker_data:/opt/federation-lab/data | ||
- ./default_models:/opt/federation-lab/default_models | ||
- ./data_loaders:/opt/federation-lab/data_loaders | ||
- ./fltk:/opt/federation-lab/fltk | ||
environment: | ||
- PYTHONUNBUFFERED=1 | ||
- RANK={rank} | ||
- WORLD_SIZE={world_size} | ||
- EXP_CONFIG=${EXP_CONFIG_FILE} | ||
- MASTER_HOSTNAME=10.5.0.11 | ||
- NIC=eth0 | ||
ports: | ||
- "5002:5000" # {machine-port}:{docker-port} | ||
depends_on: | ||
- "fl_server" | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '{num_cpus}' |
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,25 @@ | ||
client_name: # name can be anything | ||
cpuset: {cpu_set} | ||
restart: "no" # if it crashes for example | ||
build: . # look for the docker file where this file is currently located | ||
volumes: | ||
# - ./docker_data:/opt/federation-lab/data | ||
- ./data:/opt/federation-lab/data | ||
- ./default_models:/opt/federation-lab/default_models | ||
- ./data_loaders:/opt/federation-lab/data_loaders | ||
- ./fltk:/opt/federation-lab/fltk | ||
environment: | ||
- PYTHONUNBUFFERED=1 | ||
- RANK={rank} | ||
- WORLD_SIZE={world_size} | ||
- EXP_CONFIG=${EXP_CONFIG_FILE} | ||
- MASTER_HOSTNAME=10.5.0.11 | ||
- NIC=eth0 | ||
ports: | ||
- "5002:5000" # {machine-port}:{docker-port} | ||
depends_on: | ||
- "fl_server" | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: {num_cpus} |
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,29 @@ | ||
# creating a multi-container docker | ||
version: "3.3" | ||
services: | ||
fl_server: # name can be anything | ||
container_name: federation-lab-server # what the name for this container would be | ||
cpuset: '0-2' | ||
restart: "no" # if it crashes for example | ||
build: . # look for the docker file where this file is currently located | ||
volumes: | ||
# - ./data/MNIST:/opt/federation-lab/data/MNIST | ||
- ./data:/opt/federation-lab/data | ||
- ./output:/opt/federation-lab/output | ||
- ./fltk:/opt/federation-lab/fltk | ||
environment: | ||
- PYTHONUNBUFFERED=1 | ||
- RANK=0 | ||
- WORLD_SIZE={world_size} | ||
- EXP_CONFIG=${EXP_CONFIG_FILE} | ||
- MASTER_HOSTNAME=10.5.0.11 | ||
- NIC=eth0 | ||
ports: | ||
- "5000:5000" # {machine-port}:{docker-port} | ||
networks: | ||
default: | ||
ipv4_address: 10.5.0.11 | ||
networks: | ||
default: | ||
external: | ||
name: local_network_dev |
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
Oops, something went wrong.