From 08c4a72cbeb501fd51c4f5f5b4f0c39e00f5a1bb Mon Sep 17 00:00:00 2001 From: Salman Toor Date: Thu, 5 Oct 2023 07:40:14 +0000 Subject: [PATCH] changes related to mac venv scripts --- Power-consumption-keras/bin/init_venv_macos.sh | 11 +++++++++++ Power-consumption-pytorch/bin/init_venv_macos.sh | 12 ++++++++++++ Power-consumption-pytorch/requirements-osx-m1.txt | 4 ++++ README.md | 6 +++++- 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100755 Power-consumption-keras/bin/init_venv_macos.sh create mode 100755 Power-consumption-pytorch/bin/init_venv_macos.sh create mode 100644 Power-consumption-pytorch/requirements-osx-m1.txt diff --git a/Power-consumption-keras/bin/init_venv_macos.sh b/Power-consumption-keras/bin/init_venv_macos.sh new file mode 100755 index 0000000..be71b6d --- /dev/null +++ b/Power-consumption-keras/bin/init_venv_macos.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Install virtualenv +python3 -m pip install virtualenv + +# Init venv +python3 -m virtualenv .power-consumption-keras + +# Pip deps +.power-consumption-keras/bin/pip install --upgrade pip +.power-consumption-keras/bin/pip install -r requirements-osx-m1.txt diff --git a/Power-consumption-pytorch/bin/init_venv_macos.sh b/Power-consumption-pytorch/bin/init_venv_macos.sh new file mode 100755 index 0000000..91eed61 --- /dev/null +++ b/Power-consumption-pytorch/bin/init_venv_macos.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Install virtualenv +python3 -m pip install virtualenv + +# Init venv +python3 -m virtualenv .power-consumption-pytorch + +# Pip deps +.power-consumption-pytorch/bin/pip install --upgrade pip +.power-consumption-pytorch/bin/pip install -e /home/ubuntu/fedn/fedn +.power-consumption-pytorch/bin/pip install -r requirements-osx-m1.txt diff --git a/Power-consumption-pytorch/requirements-osx-m1.txt b/Power-consumption-pytorch/requirements-osx-m1.txt new file mode 100644 index 0000000..0bf7a6e --- /dev/null +++ b/Power-consumption-pytorch/requirements-osx-m1.txt @@ -0,0 +1,4 @@ +torch==1.13.1 +torchvision==0.14.1 +fire==0.3.1 +docker==6.1.1 diff --git a/README.md b/README.md index 4a18c9d..699911d 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,14 @@ The example assumes working experience with Docker. ## Attach clients to an existing FEDn Network (for workshop) -### Using Docker (not for M1, M2 macosx and Windows) +Important: For the workshop, we will use PyTorch based compute-package. + +### Using Docker (Linux and MacOS) Here we assume that the FEDn network is up and running and you have obtained the connection file (client.yaml). In case you are participating in a Scaleout workshop, you will obtain the file from the workshop organizer. If you are working on the tutorial on your own, complete the instructions below before connecting the client. +NOTE: In case you want to run a client on M1 or M2 macOS using TensorFlow and Keras, make sure you have a compatible framework version. + Clone the repository ```