Jeremy Reizenstein a22b1e32a4 linux builds for PyTorch 1.10.0
Summary: Build the wheels with latest PyTorch

Reviewed By: patricklabatut

Differential Revision: D33016835

fbshipit-source-id: 0ec42f31f1e4d4055562f18790f929b34bb13c52
2021-12-13 04:38:16 -08:00
..
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-12-13 04:38:16 -08:00
2021-06-22 03:45:27 -07:00
2021-02-05 05:52:36 -08:00

Building Linux pip Packages

  1. Make sure this directory is on a filesystem which docker can use - e.g. not NFS. If you are using a local hard drive there is nothing to do here.

  2. You may want to docker pull pytorch/conda-cuda:latest.

  3. Run bash go.sh in this directory. This takes ages and writes packages to inside/output.

  4. You can upload the packages to s3, along with basic html files which enable them to be used, with bash after.sh.

In particular, if you are in a jupyter/colab notebook you can then install using these wheels with the following series of commands.

import sys
import torch
version_str="".join([
    f"py3{sys.version_info.minor}_cu",
    torch.version.cuda.replace(".",""),
    f"_pyt{torch.__version__[0:5:2]}"
])
!pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html