runtime.sh 351 B

1234567891011
  1. #!/bin/bash
  2. if [ ! -f "conda/envs/aphrodite-runtime/bin/python" ]; then
  3. ./update-runtime.sh
  4. fi
  5. if [ $# -eq 0 ]
  6. then
  7. bin/micromamba run -r conda -n aphrodite-runtime bash
  8. exit
  9. fi
  10. export CUDA_HOME=$(realpath $(find ./ -type d -path "*/conda/envs/aphrodite-runtime" 2>/dev/null | head -n 1))
  11. bin/micromamba run -r conda -n aphrodite-runtime $*