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

Add simulation of resource-constrained scenarios (communication aspect) #11

Open
MuleiOnline opened this issue Nov 7, 2022 · 1 comment

Comments

@MuleiOnline
Copy link

MuleiOnline commented Nov 7, 2022

Thanks for the excellent code, I have the following questions:

Where should I contribute (add) my code if I want to implement federated learning with limited resources. For example, I need to simulate the delay and energy consumption of weight upload, as well as the distribution of data in each edge node, training delay and energy consumption, etc. In order to achieve the above, I need to add functions, such as increasing the heterogeneity settings of clients, or realizing the bandwidth and network gain of transmission links.

Unfortunately, I don't see a way to do it in the existing code, and it seems that the above simulation is difficult to achieve. How should I insert it?

@weimingwill
Copy link
Owner

@MaLeiOnline You can follow the documentation to customize a FL client. You can consider overwriting thet_trainfunctions trainorpost_trainfor controlling training delay,uploadorpost_upload` for controlling the bandwidth.

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

No branches or pull requests

2 participants