"Scatter and Gather" is the standard workflow to implement Federated Averaging (FedAvg). This workflow follows the hub and spoke model for communicating the global model to each client for local training (i.e., "scattering") and aggregates the result to perform the global model update (i.e., "gathering").
NOTE: This example uses a Numpy-based trainer and will generate its data within the code.
Follow the Installation instructions.
Follow the Quickstart instructions to set up your POC ("proof of concept") workspace.
Log into the Admin client by entering admin
for both the username and password.
Then, use these Admin commands to run the experiment:
submit_job hello-numpy-sag
To shut down the clients and server, run the following Admin commands:
shutdown client
shutdown server
NOTE: For more information about the Admin client, see here.