[Q&A] How to save the global model at the client side after the last round? #2438
-
Python version (
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi thanks for the question. You are on the right track, however we don’t need to raise an error when saving the global model. In the controller when you call |
Beta Was this translation helpful? Give feedback.
-
It works now! Thanks! @SYangster and @YuanTingHsieh |
Beta Was this translation helpful? Give feedback.
I see you changed the task name from “train” to “save_global_model” which is good. However since this is no longer a “train” task we should remove the
self._prepare_train_task_data
andself._process_train_result
callbacks from thesave_model_task
(the callbacks can be None), so we don’t unnecessarily invoke theInTimeAccumulateWeightedAggregator
orIntimeModelSelector
during our new "save_global_model" task.