FedML icon indicating copy to clipboard operation
FedML copied to clipboard

FedML installation of AWS EC2 Ubuntu Instance

Open pranavgundewar opened this issue 2 years ago • 4 comments

Hi!

I am trying to install fedml on AWS EC2 instances. I am facing this issue when I tried pip install fedml-

image

Please let me know how to install fedml. Thank you.

pranavgundewar avatar May 12 '22 00:05 pranavgundewar

Did you used Python ver 3.10? I have tested with this version and got an error the same with you.

Remove it and install below 3.8 or 3.7, that's fine :)

Hope help you

khoaanhtran avatar May 12 '22 05:05 khoaanhtran

@pranavgundewar @khoaanhtran yeah, we are trying to migrate it to Python in the next iteration. Please try 3.8 or 3.7 first.

chaoyanghe avatar May 12 '22 22:05 chaoyanghe

Hi @chaoyanghe @khoaanhtran Thank you for the suggestions. It worked for me.

I am facing one more question. I have 3 EC2 instanced running on AWS. 1 is for a server and another 2 are for 2 separate clients each with 1 GPU. How to create GPU mapping and config for such an arrangement?

Please let me know. Thank you.

pranavgundewar avatar May 25 '22 23:05 pranavgundewar

@pranavgundewar have you solved the issue? You can configure your GPU mapping in each silo separately. Please refer to this example and related configuration at: https://github.com/FedML-AI/FedML/tree/master/python/examples/cross_silo/mqtt_s3_fedavg_hierarchical_mnist_lr_example

and https://github.com/FedML-AI/FedML/blob/master/python/examples/cross_silo/mqtt_s3_fedavg_hierarchical_mnist_lr_example/config/fedml_config.yaml

chaoyanghe avatar Aug 19 '22 16:08 chaoyanghe

@pranavgundewar were you able to resolve your issue?

fedml-dimitris avatar Oct 24 '23 20:10 fedml-dimitris