6. Fetch a model with the AML Dashboard¶
6.1. Background¶
The AML Dashboard is a web-based tool that allows users to interact with the AML framework.
This tutorial showcases the fetching process of an AML model using the AML Dashboard.
6.2. Prerequisites¶
Ensure you have installed the AML Dashboard using one of the following methods:
For more information, check the AML Dashboard Interfaces and AML Dashboard Usage sections.
6.3. Running the demo¶
To run the necesaary components for fetching a model using the AML Dashboard, follow these steps:
6.3.1. Start the backend server¶
Navigate to the
backenddirectory.
cd backend
Load the AML-IP environment.
source /AML-IP/install/setup.bash
Start the server:
python3 server.py
6.3.2. Start the Model Manager Sender Node¶
Load the AML-IP environment.
source /AML-IP/install/setup.bash
Navigate to the
backenddirectory.
cd backend
Start the Model Manager Sender Node:
python3 sender.py
To stop the Model Manager Sender Node, press Ctrl + C.
6.3.3. Start the AML Dashboard¶
Navigate to the
frontend/aml_dashboarddirectory.
cd frontend/aml_dashboard
Start the AML Dashboard:
npm run dev
Access the dashboard at http://localhost:5173/.
6.4. Fetching the Model¶
To fetch a model using the AML Dashboard, follow these steps:
Click on the
Fetchingtab.Click on the
Search for statisticsbutton in the AML Statistics Fetcher.Once the statistics are received, the status will appear as Statistics received ! in the AML Collaborative Learning Status.
Click on the
Request modelbutton in the AML Model Fetcher.Once the model is received, the status will change to Model received ! in the AML Collaborative Learning Status.
Note
Make sure that at least one Model Manager Sender Node is running to facilitate the model fetching process.