FedML icon indicating copy to clipboard operation
FedML copied to clipboard

FedOpt for cross-silo

Open kamelferrahi opened this issue 2 years ago • 2 comments

I would like to ask if Fedopt is only available in the simulation mode? Is there any way to use it in the cross-silo mode with MQTT as FedAvg. Thanks

kamelferrahi avatar Jan 07 '24 22:01 kamelferrahi

Hello @kamelferrahi, have you tried using FedOpt: https://github.com/FedML-AI/FedML/blob/master/python/examples/federate/cross_silo/mpi_fedavg_mnist_lr_example/config/fedml_config.yaml#L15

in a configuration file like the one below: https://github.com/FedML-AI/FedML/blob/master/python/examples/federate/cross_silo/mqtt_s3_fedavg_mnist_lr_example/step_by_step/config/fedml_config.yaml

and it did not work?

fedml-dimitris avatar Jan 08 '24 12:01 fedml-dimitris

Hi @fedml-dimitris , Yes using FedOpt like in : https://github.com/FedML-AI/FedML/tree/master/python/examples/federate/prebuilt_jobs/fedgraphnn/moleculenet_graph_clf/config_fedopt/simulation_gcn in the simulation mode using MPI backend works flawlessly However using it in a crosss-silo environnement like in: https://github.com/FedML-AI/FedML/blob/master/python/examples/federate/cross_silo/mqtt_s3_fedavg_mnist_lr_example/step_by_step/config/fedml_config.yaml by replacing the FedAvg by FedOpt cause an Exception

Does FedOpt work only in the simulation mode?

kamelferrahi avatar Jan 09 '24 01:01 kamelferrahi