synthcity icon indicating copy to clipboard operation
synthcity copied to clipboard

Allow use of Pytorch 2x, Pandas 2x, and Numpy 1.26

Open bvanbreugel opened this issue 10 months ago • 3 comments

Description

Allow installing Pytorch 2 and pandas 2. This solves four open issues #172, #171, #234 #245

Affected Dependencies

Only removed restrictions on pytorch, numpy, and pandas versions

How has this been tested?

Ran standard workflows

Checklist

bvanbreugel avatar Apr 11 '24 13:04 bvanbreugel

The problem of upgrading to Torch 2.x arises from the DP mechanism in CTGAN, and seems to be the Opacus library itself being incompatible. I don't know yet how to fix this---if anyone wants to contribute to this, please reach out.

bvanbreugel avatar Apr 12 '24 16:04 bvanbreugel

Thanks @bvanbreugel for opening this PR. We have been trying to use synthcity in our research, but the complex dependencies with old versions of PyTorch and Python is a nightmare. That's a shame.

Have you been able to make it work? Opacus 1.4 works with PyTorch 2.0 apparently.

cynddl avatar May 26 '24 18:05 cynddl

Any updates on this?

We're also very interested to let synthcity support PyTorch 2.x

boegel avatar Jul 31 '24 12:07 boegel

The dependency requirements have now been updated in #288

robsdavis avatar Sep 09 '24 10:09 robsdavis