Installing Caffe2 without PyTorch


I understand that the PyTorch and Caffe2 repositories have been merged - which means both are installing when installing from source (pytorch git).

Is there any workaround to install caffe2 on its own? I have found another comment online suggesting using cmake arguments to achieve this but with no further explanation. (maybe using git checkout on an older version?)

The reason for this is that our current research has file size constraints - so the work around involves using onnx with a caffe2 backend (hopefully without installing pytorch).

Thanks for your help,