[Q&A] Can I implement asynchronous algorithm on NVFlare? HOW? #2405
-
Python version (
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@holgerroth can you help comment on this? thanks |
Beta Was this translation helpful? Give feedback.
-
Thanks for the question @Eric716. Yes, NVFlare can supports asynchronous FL. For example, our controllers provide both blocking and non-blocking versions to send training Tasks to clients, see Every ‘Task’ that’s been sent to a client has a |
Beta Was this translation helpful? Give feedback.
Thanks for the question @Eric716. Yes, NVFlare can supports asynchronous FL. For example, our controllers provide both blocking and non-blocking versions to send training Tasks to clients, see
broadcast
andbroadcast_and_wait
here. The “wait” version is used in synchronous FL workflows, e.g., in ScatterAndGather. Without wait, you could use it to implement asynchronous FL.Every ‘Task’ that’s been sent to a client has a
result_received_cb
that can be used that to do some operation on the server side, i.e. add the weight updates to the current global model.