Training on a single site's data using FLARE? #677
-
Is there a way to run training using only a single site's data using FLARE? I would like to compare single-site training performance vs. federated performance without rewriting the code I've written. I've tried to run the What I did was follow the instructions here, except with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @meijiu Thanks for the interest. Yes, it is possible to just use 1 site. For the https://github.com/NVIDIA/NVFlare/blob/main/examples/hello-pt/config/config_fed_server.json#L50 After you tried this, you can also take a look at the CIFAR10 example, in there @holgerroth provide experiment setup to run both "central" training and "federated" settings in NVFlare: https://github.com/NVIDIA/NVFlare/tree/main/examples/cifar10 |
Beta Was this translation helpful? Give feedback.
Hi @meijiu
Thanks for the interest.
Yes, it is possible to just use 1 site.
For the
hello-pt
example, you will need to change the "min_clients" from 2 to 1:https://github.com/NVIDIA/NVFlare/blob/main/examples/hello-pt/config/config_fed_server.json#L50
After you tried this, you can also take a look at the CIFAR10 example, in there @holgerroth provide experiment setup to run both "central" training and "federated" settings in NVFlare:
https://github.com/NVIDIA/NVFlare/tree/main/examples/cifar10