Created
March 15, 2022 12:39
-
-
Save seblemaguer/f154fac1f5cc2cf77f85785f836401c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| APEX_DIR=apex | |
| N_PROC=8 | |
| CUDA_VERSION=11.4.0 | |
| # Install packages | |
| mamba install -c conda-forge \ | |
| cudatoolkit=11.4.0 cudatoolkit-dev=11.4.0 pytorch-gpu=1.9.0 \ | |
| scipy numpy matplotlib tensorboardx tensorboard inflect \ | |
| gcc=9.4.0 gxx=9.4.0 | |
| export CUDA_HOME=$CONDA_PREFIX | |
| # Install dll logger | |
| pip install git+https://github.com/NVIDIA/dllogger@v0.1.0#egg=dllogger | |
| # Install apex | |
| git clone https://github.com/NVIDIA/apex.git $APEX_DIR | |
| ( | |
| cd $APEX_DIR | |
| export LIBRARY_PATH=$CONDA_PREFIX/lib | |
| MAX_JOBS=$N_PROC pip install -v --disable-pip-version-check --no-cache-dir \ | |
| --global-option="--cpp_ext" --global-option="--cuda_ext" \ | |
| ./ | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment