fairscale seems to have an issue with the recently introduced by pip build isolation feature. If you have a problem
with it, you may want to try one of:
bash
pip install fairscale --no-build-isolation .
or:
bash
git clone https://github.com/facebookresearch/fairscale/
cd fairscale
rm -r dist build
python setup.py bdist_wheel
pip uninstall -y fairscale
pip install dist/fairscale-*.whl
fairscale also has issues with building against pytorch-nightly, so if you use it you may have to try one of:
bash
pip uninstall -y fairscale; pip install fairscale --pre \
-f https://download.pytorch.org/whl/nightly/cu110/torch_nightly \
--no-cache --no-build-isolation
or:
bash
pip install -v --disable-pip-version-check . \
-f https://download.pytorch.org/whl/nightly/cu110/torch_nightly --pre
Of course, adjust the urls to match the cuda version you use.
