build_wheel.sh 666 B

12345678910111213141516
  1. #!/bin/bash
  2. CUDA_VERSION=${CUDA_VERSION:-12.4.1}
  3. MAX_JOBS=${MAX_JOBS:-}
  4. NVCC_THREADS=${NVCC_THREADS:-}
  5. TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0 8.6 8.9 9.0+PTX"
  6. DOCKER_BUILDKIT=1 docker build . --target build --tag alpindale/aphrodite-build \
  7. --build-arg CUDA_VERSION=$CUDA_VERSION \
  8. ${MAX_JOBS:+--build-arg max_jobs=$MAX_JOBS} \
  9. ${NVCC_THREADS:+--build-arg nvcc_threads=$NVCC_THREADS}
  10. docker run -d --name aphrodite-build-container alpindale/aphrodite-build tail -f /dev/null
  11. # copies to dist/ within working directory
  12. docker cp aphrodite-build-container:/workspace/dist .
  13. docker stop aphrodite-build-container && docker rm aphrodite-build-container