-
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
85 changed files
with
5,778 additions
and
387 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
FROM ubuntu:20.04 | ||
|
||
# Who maintains this DockerFile | ||
|
||
MAINTAINER Jeroen Galjaard <[email protected]> | ||
|
||
# Run build without interactive dialogue | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# ENV GLOO_SOCKET_IFNAME=eth0 | ||
# ENV TP_SOCKET_IFNAME=eth0 | ||
|
||
# Define the working directory of the current Docker container | ||
WORKDIR /opt/federation-lab | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
orchestrator: | ||
cpu: 1000m | ||
memory: 2000000000 | ||
configurationFile: example_cloud_experiment.json | ||
configurationFile: benchmarking/example_cloud_experiment.json |
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
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 | ||
- OPTIONAL_PARAMS=${OPTIONAL_PARAMS} | ||
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,30 @@ | ||
# 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 | ||
- OPTIONAL_PARAMS=${OPTIONAL_PARAMS} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
These examples are outdated! |
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 @@ | ||
--- | ||
# Experiment configuration | ||
total_epochs: 3 | ||
rounds: 5 | ||
epochs_per_cycle: 1 | ||
wait_for_clients: true | ||
net: MNISTCNN | ||
dataset: mnist | ||
# Use cuda is available; setting to false will force CPU | ||
cuda: true | ||
profiling_time: 100 | ||
warmup_round: false | ||
output_location: 'output/example_cuda' | ||
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_args: | ||
- 0.07 # label limit || q probability || alpha || unused | ||
- 42 # random seed || random seed || random seed || unused | ||
num_clients: 10 | ||
replications: 5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
# Experiment configuration | ||
total_epochs: 3 | ||
rounds: 5 | ||
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/example_docker' | ||
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_args: | ||
- 0.07 # label limit || q probability || alpha || unused | ||
- 42 # random seed || random seed || random seed || unused | ||
num_clients: 2 | ||
replications: 2 | ||
deploy: | ||
docker: | ||
base_path: deploy/docker | ||
federator: | ||
stub-name: system_stub.yml | ||
pin-cores: true | ||
num-cores: 1 | ||
clients: | ||
fast: | ||
stub-name: stub_default.yml | ||
amount: 2 | ||
pin-cores: true | ||
num-cores: 1 | ||
cpu-speed: 1 | ||
cpu-variation: 0 | ||
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,5 @@ | ||
# Individual configuration | ||
offload_stategy: vanilla | ||
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,25 @@ | ||
--- | ||
# Experiment configuration | ||
total_epochs: 3 | ||
rounds: 5 | ||
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/example_native' | ||
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_args: | ||
- 0.07 # label limit || q probability || alpha || unused | ||
- 42 # random seed || random seed || random seed || unused | ||
num_clients: 10 | ||
replications: 5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
__version__ = '0.3.1' | ||
__version__ = '0.4.0' |
Oops, something went wrong.