adap / flower

Flower: A Friendly Federated Learning Framework
https://flower.ai
Apache License 2.0
4.87k stars 840 forks source link

How to get consistent order of spawned clients between multiple runs with Flower's simulation? #3328

Open philip-s15 opened 4 months ago

philip-s15 commented 4 months ago

What is your question?

Hi there!

I am using Flower for my machine learning research project, so reproducibility is quite important to me. I have noticed that when comparing multiple Flower simulation runs, the order in which the virtual clients are spawned is not consistent between the runs, even though I manually set all the libraries' seeds to a consistent value.

My question is whether it is possible to ensure that the order in which clients are spawned becomes consistent between multiple runs with the same code. I have tried looking at the Ray documentation, but I could not find anything related to manually setting a seed.

Thanks in advance!

edogab33 commented 1 month ago

same problem here

artsasse commented 2 weeks ago

struggling with that problem too