flower icon indicating copy to clipboard operation
flower copied to clipboard

ValueError in Tutorial

Open b856741 opened this issue 2 years ago • 4 comments

ValueError?

hi,when I tried your first tutorial "An Introduction to Federated Learning" in colab, an error showed up at "### Starting the training" here is the screenshot https://ppt.cc/fRA3Bx what should I do ?

b856741 avatar May 01 '22 16:05 b856741

@b856741 Just a guess but could you pass the 5 as int(5)? It might also be a issue with Ray. We have seen historically a lot of breaking chances so it might also help to use a older version of Ray.

tanertopal avatar May 02 '22 11:05 tanertopal

I've had the same error, I was able to fix it by using Ray 1.10.0 instead of the latest version 1.12.0. So just run pip install -U ray==1.10.0 before running the rest of the notebook. (or simply add ray==1.10.0 to the pip install of flower)

thezizzler avatar May 03 '22 09:05 thezizzler

ray==1.10.0

it works, thanks

b856741 avatar May 03 '22 17:05 b856741

@b856741 Just a guess but could you pass the 5 as int(5)? It might also be a issue with Ray. We have seen historically a lot of breaking chances so it might also help to use a older version of Ray.

I haven't and dunno how to try it, but it solved by changing ray version

b856741 avatar May 03 '22 17:05 b856741