Hacker News new | ask | show | jobs
by tomtom1337 67 days ago
One criticism is that you have to install the same package, torch, but from different Python indexes in order to install the cpu version or gpu version, on Linux. On windows, `pip install torch` gets you the cpu version. On linux, that gets you a ton of Nvidia extras that take a lot of space.

GPU support should really be a optional extra eg `torch[gpu]` or `torch[nvidia]`.

1 comments

I would argue that we need a `torch[stubs]` package (or similar) that doesn't install any form of libtorch. The CPU version of libtorch is 160MB compressed and 400MB extracted.