-
Notifications
You must be signed in to change notification settings - Fork 924
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
FedAvgM expecting initial_parameters as Optional #2369
Comments
As far as I can tell, Server side optimization is enabled whenever Considering all of that, it could be nice to add this information to the constructors' documentation, as to avoid confusion in the future. |
I guess the assert is an explanatory point and agree with @DanielCardeal where the user can understand that if there is a server side optimisation , the |
Isn't FedAvgM about server side optimization with momentum? |
This change aims to better communicate to users the necessity of `initial_parameters` in case of server-side optimization, as well as expose which conditions must be met to enable server-side optimization.
Yes, @gubertoli. It also seems a bit counterintuitive to allow users to initialize the strategy without I propose the changes in #2416 as a possible fix. |
This change aims to better communicate to users the necessity of `initial_parameters` in case of server-side optimization, as well as expose which conditions must be met to enable server-side optimization.
Describe the bug
The current implementation of FedAvgM strategy considers the
initial_parameters
as Optional in the class init method (here):initial_parameters: Optional[Parameters] = None
However, the FedAvgM strategy requires the
initial_parameters
(here):Steps/Code to Reproduce
Expected Results
To run the a simulation with vanilla FedAvgM strategy without initial_parameters.
Actual Results
Assert exception: "When using server-side optimization, model needs to be initialized."
The text was updated successfully, but these errors were encountered: