-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
Mohamed E. Masoud edited this page Nov 22, 2024
·
3 revisions
First, clone the repository from GitHub or the relevant location to your machine:
git clone https://github.com/Mmasoud1/MeshFL.git
cd MeshFL
In the terminal, check if CUDA and torch is installed :
nvcc --version
python -c "import torch; print(torch.cuda.is_available())"
This should return true.
pip install nvflare==2.4.0
Recommended:
pip install numpy==1.22.0
pip install pandas==2.0.3
export PYTHONPATH=$PYTHONPATH:[path to this dir]/app/code/
export NVFLARE_POC_WORKSPACE=[path to this dir]/poc-workspace/
nvflare simulator -c site1,site2 ./jobs/job
To create Python environment and install above packages with it:
$ which python3
/sysapps/ubuntu-applications/python/Python-3.9.9/Build/bin/python3
# create a virtual environment
$ mkdir -p /data/users*/<your directory>/<name of env>
$ python -m <name of env> /data/users*/<your directory>/<name of env>
# activate the environment
$ source /data/users*/<your directory>/<name of env>/venv/bin/activate
# run Python
$ python --version