Dockerfile.ppc64le 1.0 KB

1234567891011121314151617181920212223
  1. FROM mambaorg/micromamba
  2. ARG MAMBA_DOCKERFILE_ACTIVATE=1
  3. USER root
  4. RUN apt-get update -y && apt-get install -y git wget curl vim libnuma-dev libsndfile-dev libprotobuf-dev build-essential ffmpeg libsm6 libxext6 libgl1
  5. # Some packages in requirements-cpu are installed here
  6. # IBM provides optimized packages for ppc64le processors in the open-ce project for mamba
  7. # Currently these may not be available for venv or pip directly
  8. RUN micromamba install -y -n base -c https://ftp.osuosl.org/pub/open-ce/1.11.0-p10/ -c defaults python=3.10 pytorch-cpu=2.1.2 torchvision-cpu=0.16.2 && micromamba clean --all --yes
  9. COPY ./ /workspace/aphrodite-engine
  10. WORKDIR /workspace/aphrodite-engine
  11. # These packages will be in rocketce eventually
  12. RUN pip install -v -r requirements-cpu.txt --prefer-binary --extra-index-url https://repo.fury.io/mgiessing
  13. RUN APHRODITE_TARGET_DEVICE=cpu python3 setup.py install
  14. RUN pip install triton
  15. WORKDIR /aphrodite-workspace
  16. ENTRYPOINT ["/opt/conda/bin/python3", "-m", "aphrodite.endpoints.openai.api_server"]