Federated Learning on myDRE with VANTAGE6
VANTAGE6
An open source privacy preserving Federated Learning Infrastructure for Secure Insight Exchange.
ARCHITECTURE
VANTAGE6 uses a client-server model, which is shown in the figure below. In this scenario, the researcher can pose a question
and using the preferred programming language, send it as a task (also known as computation request) to the (central) server through function calls. The server is in charge of processing the task as well as of handling administrative
functions such as authentication and authorization. The requested algorithm is delivered as a Docker image to the
nodes, which have access to their own (local) data. When the algorithm has reached a solution, it is transmitted via the
server to the researcher. A more detailed explanation of these components is given as follows. Here for more details on
How it Works.
VANTAGE6 in myDRE
By following these 10 steps, you should be able to set up VANTAGE6 and get it working within myDRE's platform.
- Access your workspace in myDRE
- https://mydre.org/
- Domain allowlisting
- Add the necessary domains that you will find in the attachment in myDRE’s workspace for VANTAGE6
- Virtual Machine
- In the myDRE workspace, deploy a GPU Linux VM.
- Make sure your VM has sudo rights, so you can install the necessary software and tools.
- Upload attachment
- Upload the following files to your myDRE workspace for more efficient working:
- install-node-mydre-root.sh
- install-node-mydre-user.sh
- installation-input.env
- default.yaml
- Run the Root Installation Script
- First, make sure you have root access in your VM
- Execute the install-node-mydre-root.sh
- This will install the following:
- Python3.10 (via Deadsnakes PPA)
- VANTAGE6 requires at least version 3.9, but upgrading to 3.10 is recommended for better compatibility.
- Docker
- VANTAGE6 runs inside Docker containers.
- NVIDIA GPU drivers (optional)
- Proxy configuration for Docker
- There is a placeholder section for configuring proxy settings for Docker, but it is not fully implemented in the script. You are advised to refer to Docker’s documentation to configure this manually.
- User configuration for Docker
- Rebot the VM
- Troubleshooting
- Verify the python version
- python3.10 --version
- If Python 3.10 or other dependencies are missing, make sure to install them manually. If the installation fails due to a proxy issue, check your proxy configuration.
- For domain access issues, verify that the required domains are allowed in the workspace settings.
- Run the User Installation Script
- After the root script finishes, run the install-node-mydre-user.sh as a non-root user:
- chmod +x install-node-mydre-user.sh (to make it executable)
- ./install-node-mydre-user.sh
- This script will:
- Create a Python virtual environment for Vantage6.
- Install Vantage6 inside this environment.
- Configuration Settings for VANTAGE6
- After the installation, you’ll need to configure the API key, server URL, and other settings.
- Activate the environment:
- source ~/vantage6-venv/bin/activate
- Create a new node using the following command
- vnode new --user
- This command launches a wizard where you need to configure the node using the details in the default.yaml file you uploaded.
- Update Configuration File (default.yaml)
- Once the node wizard is completed, update your configuration from default.yam
- Run the Node
- Once the configuration is updated, you can start the Vantage6 node:
- vnode start --user --name default
- Check if the node is running properly:
- vnode list
Next Steps
- Once the node is running, you can further configure it based on your project’s needs (e.g., adding algorithms or building Docker images).
- If you’re setting up VANTAGE6 for multiple users, ensure proper configuration of users and environments.
Related Articles
myDRE-Learning
The myDRE-Learning platform expands your knowledge on a wide range of topics, from the basics of myDRE to Virtual Machines, Workspaces, Rroles, Costs and much more. Accessibility is at the heart of our platform. You can learn at your own pace and on ...
Why is my support.mydre.org account different from my @mydre.org account?
We get this question regularly now and here is why: Your @mydre.org account may look like an e-mail address, but it is not. It has no e-mail functionality and it is strictly your username on the mydre.org platform. For support.mydre.org however, you ...
Seminar FlowerAI x myDRE
16th of September 2024, at 15:00 UTC (17:00 CET, 16:00 LON, 11:00 NY) Federated Learning and Analytics with Flower through myDRE workspaces Flower Labs and anDREa will be hosting an online seminar to demonstrate how to use the Flower framework for ...
myDRE - why
Why myDRE was created in <1.5 minutes For more information From organization perspective anDREa FAQ From user perspective myDRE Or contact a colleague: Pascalle Broer
EMC myDRE Community Event
Click to sign up for Erasmus MC myDRE Community Event on 13th of October 12:00-13:00