federated icon indicating copy to clipboard operation
federated copied to clipboard

Is it possible to have Federated Learning on Cloud-Edge?

Open Martiniann opened this issue 3 years ago • 9 comments

Hi everyone,

Currently I am working on a school project about federated learning and came across your framework during exploratory analysis. My project should utilize federated learning in this manner - I have an aggregation server (let's say in a cloud). I want this server to provide model to my 2 Raspberry PIs. These two RPIs would then train the model on a local data for x epochs and provide the trained models/gradients back to the global server. On this server, the results would be federated averaged and new model would be sent to the PIs. Is such a workflow possible with your framework? If so, could you provide me a hint?

Thank you, Best regards

Martiniann avatar Oct 14 '20 21:10 Martiniann

I am also curious about this. Also, if this is not currently possible, what is the estimated timeline for something like this becoming possible within TFF.

darien-schettler avatar Oct 30 '20 13:10 darien-schettler

Hey! Same project as me! I'm also working on it.

Would you have any design ideas? Thx!🥰

ESWZY avatar Mar 23 '21 11:03 ESWZY

Hello, If you are interested in federated learning I can recommend these 2 frameworks : https://github.com/IBM/federated-learning-lib https://github.com/adap/flower

Good luck with your project :)

Martin-Stevlik avatar Mar 24 '21 09:03 Martin-Stevlik

Hello, If you are interested in federated learning I can recommend these 2 frameworks : https://github.com/IBM/federated-learning-lib https://github.com/adap/flower

Good luck with your project :)

Thanks for your kindness help! I will have a try. ❤️

Btw, a good news is I find out a way to implement it based on TFF. 🤣

ESWZY avatar Mar 24 '21 09:03 ESWZY

@ESWZY Were you able to use tensorflow federated with clients communicating over the internet?

ladi-pomsar avatar Oct 12 '21 09:10 ladi-pomsar

@ESWZY Were you able to use tensorflow federated with clients communicating over the internet?

Actually, yes. We just use TFF as a demo to verify the accessibility between clients and master, in our private network.

For more information, you can use this client and runtime demo to have a try.

ESWZY avatar Oct 12 '21 09:10 ESWZY

@ESWZY How did you do it? I'm trying to make the server communicate with the client and use its data for training, but no progress so far.

thborba avatar May 01 '22 23:05 thborba

@ESWZY How did you do it? I'm trying to make the server communicate with the client and use its data for training, but no progress so far.

It needs time to learn, but you can find some examples here: https://github.com/tensorflow/federated/tree/main/tensorflow_federated/examples

ESWZY avatar May 02 '22 03:05 ESWZY

@thborba Take a look at this example, https://github.com/tensorflow/federated/tree/main/tensorflow_federated/tools

If you get hello world, it means success

ESWZY avatar May 02 '22 03:05 ESWZY