Example of using NVIDIA FLARE to train an image classifier using federated averaging (FedAvg) and PyTorch as the deep learning training framework.
NOTE: This example uses the CIFAR-10 dataset and will load its data within the trainer code.
Follow the Installation instructions. Install additional requirements:
pip3 install torch torchvision
Use nvflare simulator to run the hello-examples:
nvflare simulator -w /tmp/nvflare/ -n 2 -t 2 hello-pt
You can find the running logs and results inside the simulator's workspace/simulate_job
$ ls /tmp/nvflare/simulate_job/
app_server app_site-1 app_site-2 log.txt