update-runtime.sh 1009 B

123456789101112131415
  1. #!/bin/bash
  2. wget -qO- https://github.com/mamba-org/micromamba-releases/releases/download/1.5.8-0/micromamba-linux-64.tar.bz2 | tar -xvj bin/micromamba
  3. if [ ! -f "conda/envs/aphrodite-runtime/bin/python" ]; then
  4. bin/micromamba create --no-shortcuts -r conda -n aphrodite-runtime -f environment.yaml -y
  5. fi
  6. bin/micromamba create --no-shortcuts -r conda -n aphrodite-runtime -f environment.yaml -y
  7. #bin/micromamba install -r conda -n aphrodite-runtime gxx=10 -c conda-forge -y
  8. bin/micromamba run -r conda -n aphrodite-runtime pip install -r requirements-cuda.txt
  9. # Make it so the correct NVCC is found. Looks only within the current working
  10. # directory, since find will return the *first* result, leading to conflicts
  11. # if you have multiple environments and one of them does not contain CUDA runtime.
  12. export CUDA_HOME=$(realpath $(find ./ -type d -path "*/conda/envs/aphrodite-runtime" 2>/dev/null | head -n 1))
  13. export PATH=$CUDA_HOME/bin:$PATH
  14. bin/micromamba run -r conda -n aphrodite-runtime pip install -ve .