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.

../../_images/fetch_dashboard.png

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

  1. Navigate to the backend directory.

cd backend
  1. Load the AML-IP environment.

source /AML-IP/install/setup.bash
  1. Start the server:

python3 server.py

6.3.2. Start the Model Manager Sender Node

  1. Load the AML-IP environment.

source /AML-IP/install/setup.bash
  1. Navigate to the backend directory.

cd backend
  1. 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

  1. Navigate to the frontend/aml_dashboard directory.

cd frontend/aml_dashboard
  1. Start the AML Dashboard:

npm run dev
  1. Access the dashboard at http://localhost:5173/.

6.4. Fetching the Model

To fetch a model using the AML Dashboard, follow these steps:

  1. Click on the Fetching tab.

  2. Click on the Search for statistics button in the AML Statistics Fetcher.

  3. Once the statistics are received, the status will appear as Statistics received ! in the AML Collaborative Learning Status.

  4. Click on the Request model button in the AML Model Fetcher.

  5. 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.