Dockerfile.cpu 743 B

1234567891011121314151617181920
  1. # This Aphrodite Dockerfile is used to construct image that can build and run Aphrodite on x86 CPU platform.
  2. FROM ubuntu:22.04
  3. RUN apt-get update -y \
  4. && apt-get install -y git wget vim numactl gcc-12 g++-12 python3 python3-pip \
  5. && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10 --slave /usr/bin/g++ g++ /usr/bin/g++-12
  6. RUN pip install --upgrade pip \
  7. && pip install wheel packaging ninja setuptools>=49.4.0 numpy
  8. COPY ./ /workspace/aphrodite-engine
  9. WORKDIR /workspace/aphrodite-engine
  10. RUN pip install -v -r requirements-cpu.txt --extra-index-url https://download.pytorch.org/whl/cpu
  11. RUN APHRODITE_TARGET_DEVICE=cpu python3 setup.py install
  12. RUN pip install -v triton
  13. WORKDIR /workspace/
  14. CMD ["/bin/bash"]