Dockerfile-train 1.2 KB

1234567891011121314151617181920212223242526
  1. FROM gcr.io/ai2-beaker-core/public/cqgl31u2ba5vrtuc91og:latest
  2. # Update the package list and install libaio-dev and gnupg2
  3. RUN apt update && apt-get install -y libaio-dev gnupg2
  4. # Add NVIDIA package repository keys
  5. RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub \
  6. && apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub \
  7. && apt-get -y update
  8. # Set up the NVIDIA CUDA repository
  9. RUN apt-get install -y software-properties-common \
  10. && add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" \
  11. && apt-get update
  12. # Install CUDA toolkit and nvcc 12.1
  13. RUN apt-get install -y cuda-nvcc-12-1
  14. # Get flash attention setup
  15. RUN pip install flash-attn --no-build-isolation
  16. # Install PDF utilities
  17. RUN apt-get install -y poppler-utils
  18. RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
  19. RUN apt-get install -y ttf-mscorefonts-installer msttcorefonts fonts-crosextra-caladea fonts-crosextra-carlito gsfonts lcdf-typetools