Skip to content

[Q&A] Can I implement asynchronous algorithm on NVFlare? HOW? #2405

Closed Answered by holgerroth
Eric716 asked this question in Q&A
Discussion options

You must be logged in to vote

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 and broadcast_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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Eric716
Comment options

@holgerroth
Comment options

Answer selected by Eric716
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants