OpenMined / PySyft

Perform data science on data that remains in someone else's server
https://www.openmined.org/
Apache License 2.0
9.54k stars 1.99k forks source link

about torch version #2567

Closed hubuwx closed 5 years ago

hubuwx commented 5 years ago

I have confusion about the torch version In Installation guide and the root README.md , PyTorch version is 1.1.0 but in PySyft/examples/tutorials/advanced/websockets-example-MNIST-parallel/Asynchronous-federated-learning-on-MNIST.ipynb the code have checked torch version like following: if torch.__version__>= "1.0.2": raise ValueError(f"This tutorial currently does not support torch versions >= 1.0.2, you have version {torch.__version__}") so what version about pytorch should i install ??? Thanks a lot if someone can help me!

hereismari commented 5 years ago

TL;DR: torch 1.1.0.

Syft uses torch <= 1.1.0 at this moment. But torch >= 1.1.0 has issues with jit.trace which this tutorial relies on. So if you want to run the tutorial you need to downgrade torch to 1.0.1.