uwmisl / poretitioner

https://misl.cs.washington.edu
Other
3 stars 1 forks source link

Cache pytorch #58

Open thequicksort opened 4 years ago

thequicksort commented 4 years ago

Pytorch takes a while to compile (> 30 minutes) and is wildly computationally intensive. For developers, this is a huge pain-point.

While the nix philosophy is all about reproducibility, maybe it's okay if we ease up on that promise for developers by using cached versions of pytorch. It's a fairly popular library, so perhaps justifiable?

Here are a few (non-exhaustive) options:

1. Use PytorchWorld

One approach is to use PyTorchWorld: Nix scripts for pytorch related libraries

Advantages:

Disadvantages:

2. Download Pre-builts

It's also possible for us to define the torch derivations locally in nix/pkgs and just pull pre-built versions from urls. This is described in post /#24 in Improving NixOS data science infrastructure

Advantages:

Disadvantages

I'm actually leaning towards option 2.

thequicksort commented 4 years ago

Potentially related: https://github.com/uwmisl/poretitioner/issues/41