Dockerfile.openvino 1.2 KB

1234567891011121314151617181920212223242526272829
  1. # The Aphrodite Dockerfile is used to construct Aphrodite image that can be directly used
  2. # to run the OpenAI compatible server.
  3. FROM ubuntu:22.04 AS dev
  4. RUN apt-get update -y && \
  5. apt-get install -y python3-pip git
  6. WORKDIR /workspace
  7. # copy requirements
  8. COPY requirements-build.txt /workspace/aphrodite-engine/
  9. COPY requirements-common.txt /workspace/aphrodite-engine/
  10. COPY requirements-openvino.txt /workspace/aphrodite-engine/
  11. COPY aphrodite/ /workspace/aphrodite-engine/aphrodite
  12. COPY setup.py /workspace/aphrodite-engine/
  13. # install build requirements
  14. RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" python3 -m pip install -r /workspace/aphrodite-engine/requirements-build.txt
  15. # build Aphrodite with OpenVINO backend
  16. RUN PIP_PRE=1 PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu https://storage.openvinotoolkit.org/simple/wheels/nightly/" APHRODITE_TARGET_DEVICE="openvino" python3 -m pip install -e /workspace/aphrodite-engine/
  17. # temporary hack until the dependencies are upgraded
  18. RUN pip install 'transformers==4.43.0'
  19. COPY examples/ /workspace/aphrodite-engine/examples
  20. COPY tests/benchmarks/ /workspace/aphrodite-engine/tests/benchmarks
  21. CMD ["/bin/bash"]