pytorch / csprng

Cryptographically secure pseudorandom number generators for PyTorch
https://github.com/pytorch/csprng
BSD 3-Clause "New" or "Revised" License
109 stars 25 forks source link

Support torch==1.9 #130

Open ffuuugor opened 3 years ago

ffuuugor commented 3 years ago

Hi! Do you have any plans to support PyTorch 1.9?

We at opacus use csprng to generate cryptographically secure noise and ideally we want to make it available to people using the latest pytorch version. Additionally, it creates conflicts with the latest versions of packages like torchvision, which makes testing quite tricky

romovpa commented 3 years ago

I managed to successfully build and test csprng with torch==1.9.1+cu111. Opacus passes all the tests as well, however I'm not sure csprng is properly covered there. For some reason the latest release in PyPI (dated in Mar 2021) requires torch-1.8.1. We probably just need to fix the CI.

romovpa commented 2 years ago

Well, successfully built csprng in colab (gpu instance) with torch==1.10.0+cu111.

https://colab.research.google.com/drive/1XilZ1a-7oXUbaEwzOPTOaiPy9DGLZaVl?usp=sharing

JMMarchant commented 2 years ago

Any further news on this?

HarrisonWilde commented 1 year ago

Any news on this?

s-zanella commented 2 months ago

It would be great to have a new release with formal support for PyTorch 2.x and CUDA 12. It builds and passes the tests even with torch==2.4.1 with CUDA 12.4.