adap / flower

Flower: A Friendly Federated Learning Framework
https://flower.ai
Apache License 2.0
4.92k stars 848 forks source link

(example)pytorch-from-centralized-to-federated "Client program is stuck at the 'Sent reply' stage." #4147

Closed Saber-xxf closed 3 weeks ago

Saber-xxf commented 3 weeks ago

What is your question?

"Client program is stuck at the 'Sent reply' stage." "Server side is also stuck."

image image

jafermarq commented 3 weeks ago

Hi @Saber-xxf , thank you for creating the issue. Have you started two clients? By default the server expects two clients to be online before it can starts the round. You can change this behaviour by adjusting the *_min_clients arguments to the FedAvg strategy.

However! I'd recommend you taking a look at newer examples that make use of the latest (much improved!) functionality in flower. In particular, take a look at: examples/quickstart-pytorch

Saber-xxf commented 3 weeks ago

Dear friend, thank you for your suggestion. I have indeed resolved the issue, which was caused by the minimum client setting being set to 2. Thanks again!

jafermarq commented 3 weeks ago

Great to hear!