Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple clients on single machine #51

Open
TomKolo opened this issue Jan 18, 2021 · 2 comments
Open

Multiple clients on single machine #51

TomKolo opened this issue Jan 18, 2021 · 2 comments
Labels
question Further information is requested

Comments

@TomKolo
Copy link

TomKolo commented Jan 18, 2021

Hi,

I was wondering if I can use IBM Federated Learning to perform some experiments on full datasets (e.g. FEMNIST from LEAF) when the number of available machines is substantially smaller than the number of client datasets. Is it possible to simulate multiple clients (>50) on one machine in other way than by separately running and registering party instance for each of them?

Thank you!

@Yi-Zoey Yi-Zoey added the question Further information is requested label Jan 20, 2021
@chalianwar
Copy link
Contributor

Hi,

Thanks for checking out our FL library!

Yes, it is definitely possible. You can launch 50 parties on a single machine as long as your machine can support that much computation. We have tested MNIST demo in the examples with 50 parties on a single machine. However, keep in mind that in some cases the machine can run out of memory or become slow if it's not a powerful one.

Please let us know if you face any problem.

@HenryHu-H
Copy link

Hi, I tried using threading.Thread, ibmfl.aggregator.aggregator.Aggregator and ibmfl.party.party.Party to simulate multiple terminals that are used in quickstart.md. Although the program could be run without errors, it produced results that are much worse than those produced by separate terminals (accuracy dropping by around 20%). Would you please share your code that tested MNIST demo with 50 parties on a single machine so I can use it as a reference to fix the problem with my code? Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants