-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run collaborator in docker #280
Closed
dmitryagapov
wants to merge
54
commits into
securefederatedai:develop
from
dmitryagapov:feature/run_collaborator_in_docker
Closed
Changes from 52 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
a0935f0
wip
dmitryagapov 6a5651f
wip
dmitryagapov dacd4f1
wip
dmitryagapov f2afcf9
refactoring
dmitryagapov 52b8284
add aiodocker requirements
dmitryagapov add5710
refactoring
dmitryagapov 20e318e
refactoring
dmitryagapov 96d9c7d
refactoring
dmitryagapov 517494d
refactoring
dmitryagapov b6c1102
Merge branch 'develop' into feature/run_collaborator_in_docker
dmitryagapov 51db0d0
refactoring
dmitryagapov 05c18c1
refactoring
dmitryagapov bde6023
refactoring
dmitryagapov f3ed426
create docker module
dmitryagapov 7e65c40
refactoring
dmitryagapov aee9f57
Director aggregator communication by rpc (#334)
aleksandr-mokrov 0dd2c7c
Merge branch 'develop' into feature/run_collaborator_in_docker
dmitryagapov 9321627
add --use_docker to envoy
dmitryagapov 7b9c625
Merge branch 'dockerezation-launch' into feature/run_collaborator_in_…
dmitryagapov 41c8399
fix flake8
dmitryagapov a414cfb
add openfl.docker module to packages
dmitryagapov c9d0223
fix initial tensor path
dmitryagapov baa5be6
merge fix
dmitryagapov 1cc73eb
add --use-docker flag for envoy
dmitryagapov 898a22e
add --use-docker flag for director
dmitryagapov 493eb96
fix
dmitryagapov 3f907c1
Merge branch 'develop' into feature/run_collaborator_in_docker
dmitryagapov fe749ca
merge
dmitryagapov f5c4aac
fix
dmitryagapov bd3b31d
fix
dmitryagapov f3df364
fix
dmitryagapov 96d5ffe
fix kvasir url
dmitryagapov 33efbcc
fix
dmitryagapov c90322e
Merge remote-tracking branch 'openfl/develop' into develop
dmitryagapov 82de52f
Merge branch 'develop' into feature/run_collaborator_in_docker
dmitryagapov 9ffc06e
add docker proxy for director and envoy configs
dmitryagapov 04a387e
add docker proxy for director and envoy configs
dmitryagapov c5457d0
fix
dmitryagapov 814bc85
add buildargs config to envoy/director configs
dmitryagapov 4923046
add buildargs config to envoy/director configs
dmitryagapov c335c78
docker config
dmitryagapov 488054f
Merge branch 'develop' of github.com:intel/openfl into develop
dmitryagapov c98455f
Merge branch 'develop' into dockerezation-launch
dmitryagapov 03ad397
Merge branch 'develop' into feature/run_collaborator_in_docker
dmitryagapov 160b94c
Merge branch 'dockerezation-launch' into feature/run_collaborator_in_…
dmitryagapov b24b995
refactoring
dmitryagapov 4d510fc
fixes
dmitryagapov e9a5a1c
fixes
dmitryagapov cfc178a
add volumes for PyTorch_Kvasir_UNet
dmitryagapov 6e481be
fix
dmitryagapov 425bc1a
send only one model to aggregator when last == best
dmitryagapov adf79c5
relative import to absolute
dmitryagapov 79cf99a
fixes
dmitryagapov 9d9a968
Diagrams
dmitryagapov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM python:3.8 | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install git+https://github.com/dmitryagapov/openfl.git@feature/run_collaborator_in_docker | ||
|
||
COPY . /code | ||
WORKDIR /code |
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,11 @@ | ||
FROM python:3.8 | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install git+https://github.com/dmitryagapov/openfl.git@feature/run_collaborator_in_docker | ||
|
||
WORKDIR /code | ||
COPY ./requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
|
4 changes: 4 additions & 0 deletions
4
openfl-tutorials/interactive_api/MXNet_landmarks/director/start_director_docker.sh
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,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
fx director start --disable-tls -c director_config.yaml --use-docker |
6 changes: 6 additions & 0 deletions
6
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/start_envoy_docker.sh
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,6 @@ | ||
#!/bin/bash | ||
set -e | ||
ENVOY_NAME=$1 | ||
SHARD_CONF=$2 | ||
|
||
fx envoy start -n "$ENVOY_NAME" --disable-tls --envoy-config-path "$SHARD_CONF" -dh localhost -dp 50051 |
13 changes: 8 additions & 5 deletions
13
openfl-tutorials/interactive_api/PyTorch_DogsCats_ViT/envoy/envoy_config_one.yaml
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
15 changes: 13 additions & 2 deletions
15
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/director/director_config.yaml
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,6 +1,17 @@ | ||
settings: | ||
listen_host: localhost | ||
listen_port: 50050 | ||
sample_shape: ['300', '400', '3'] | ||
target_shape: ['300', '400'] | ||
sample_shape: [ '300', '400', '3' ] | ||
target_shape: [ '300', '400' ] | ||
envoy_health_check_period: 5 # in seconds | ||
docker: | ||
env: | ||
http_proxy: | ||
https_proxy: | ||
no_proxy: | ||
buildargs: | ||
HTTP_PROXY: | ||
HTTPS_PROXY: | ||
NO_PROXY: | ||
|
||
|
4 changes: 4 additions & 0 deletions
4
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/director/start_director_docker.sh
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,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
fx director start --disable-tls -c director_config.yaml --use-docker |
23 changes: 18 additions & 5 deletions
23
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/envoy_config.yaml
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,14 +1,27 @@ | ||
params: | ||
cuda_devices: [0,2] | ||
|
||
cuda_devices: [ 0, 2 ] | ||
docker: | ||
env: | ||
http_proxy: | ||
https_rpoxy: | ||
no_proxy: | ||
buildargs: | ||
HTTP_PROXY: | ||
HTTPS_PROXY: | ||
NO_PROXY: | ||
volumes: | ||
- './kvasir_data' | ||
|
||
optional_plugin_components: | ||
cuda_device_monitor: | ||
template: openfl.plugins.processing_units_monitor.pynvml_monitor.PynvmlCUDADeviceMonitor | ||
settings: [] | ||
cuda_device_monitor: | ||
template: openfl.plugins.processing_units_monitor.pynvml_monitor.PynvmlCUDADeviceMonitor | ||
settings: [ ] | ||
|
||
shard_descriptor: | ||
template: kvasir_shard_descriptor.KvasirShardDescriptor | ||
params: | ||
data_folder: kvasir_data | ||
rank_worldsize: 1,10 | ||
enforce_image_hw: '300,400' | ||
|
||
|
8 changes: 6 additions & 2 deletions
8
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/envoy_config_no_gpu.yaml
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
4 changes: 4 additions & 0 deletions
4
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/start_envoy_docker.sh
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,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
fx envoy start -n env_one --disable-tls --envoy-config-path envoy_config.yaml -dh localhost -dp 50050 --use-docker |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling