full-cuda.Dockerfile 742 B

123456789101112131415161718192021222324252627282930313233
  1. ARG UBUNTU_VERSION=22.04
  2. # This needs to generally match the container host's environment.
  3. ARG CUDA_VERSION=11.7.1
  4. # Target the CUDA build image
  5. ARG BASE_CUDA_DEV_CONTAINER=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION}
  6. FROM ${BASE_CUDA_DEV_CONTAINER} as build
  7. # Unless otherwise specified, we make a fat build.
  8. ARG CUDA_DOCKER_ARCH=all
  9. RUN apt-get update && \
  10. apt-get install -y build-essential python3 python3-pip git
  11. COPY requirements.txt requirements.txt
  12. RUN pip install --upgrade pip setuptools wheel \
  13. && pip install -r requirements.txt
  14. WORKDIR /app
  15. COPY . .
  16. # Set nvcc architecture
  17. ENV CUDA_DOCKER_ARCH=${CUDA_DOCKER_ARCH}
  18. # Enable cuBLAS
  19. ENV LLAMA_CUBLAS=1
  20. RUN make
  21. ENTRYPOINT ["/app/.devops/tools.sh"]