snorkel-team / snorkel

A system for quickly generating training data with weak supervision
https://snorkel.org
Apache License 2.0
5.81k stars 857 forks source link

Support Pytorch > 1.1.0 #1558

Closed blackr2d closed 4 years ago

blackr2d commented 4 years ago

Issue description

Installation with pip fails with

ERROR: Could not find a version that satisfies the requirement torch<1.2.0,>=1.1.0 (from snorkel) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch<1.2.0,>=1.1.0 (from snorkel)

Code example/repro steps

pip install snorkel

Results in error as above. torch versions listed are not available. Any reason torch 1.4 cannot be used?

Expected behavior

Successful install

System info

Additional context

There seems to be little development and no releases for months now, that's why the requirements are impossible to meet anymore, is the project dead?

vincentschen commented 4 years ago

At the moment, snorkel requires torch>=1.1.0,<1.2.0.

We have an upgrade planned but also welcome community support here!

maxmcl commented 4 years ago

@blackr2d try installing with python=3.6, this should fix it. Also on their readme, they mention enabling the Linux kernel on Windows

lukehsiao commented 4 years ago

Fonduer would also benefit with an upgrade on snorkel's torch dependency to be something like torch>=1.1.0,<2.0.0.

vincentschen commented 4 years ago

Hi all — torch>=1.2 is now supported in the latest release, snorkel==0.9.5.

blackr2d commented 4 years ago

Thank you! Confirmed working.