Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
dockerfile: libs/infinity_emb/Dockerfile.cpu_auto
image: michaelf34/infinity
appendix_tag: "-cpu"
platforms: "linux/amd64"
platforms: "linux/amd64,linux/arm64"
Comment thread
vlsi marked this conversation as resolved.
Comment thread
vlsi marked this conversation as resolved.
secrets: inherit

# Container to large for github action
Expand Down
2 changes: 1 addition & 1 deletion libs/infinity_emb/Docker.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cpu:
# "RUN poetry install --no-interaction --no-ansi --no-root --extras \"${EXTRAS}\" --without lint,test && poetry cache clear pypi --all"
COPY requirements_install_from_poetry.sh requirements_install_from_poetry.sh
RUN ./requirements_install_from_poetry.sh --no-root --without lint,test "https://download.pytorch.org/whl/cpu"
RUN poetry run python -m pip install --no-cache-dir onnxruntime-openvino
RUN if [ "$(uname -m)" = "x86_64" ]; then poetry run python -m pip install --no-cache-dir onnxruntime-openvino; else echo "onnxruntime-openvino not available on $(uname -m), skipping"; fi
extra_env_variables: |
# Sets default to onnx
ENV INFINITY_ENGINE="optimum"
Expand Down
6 changes: 3 additions & 3 deletions libs/infinity_emb/Dockerfile.cpu_auto
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ COPY poetry.lock poetry.toml pyproject.toml README.md /app/
# "RUN poetry install --no-interaction --no-ansi --no-root --extras \"${EXTRAS}\" --without lint,test && poetry cache clear pypi --all"
COPY requirements_install_from_poetry.sh requirements_install_from_poetry.sh
RUN ./requirements_install_from_poetry.sh --no-root --without lint,test "https://download.pytorch.org/whl/cpu"
RUN poetry run python -m pip install --no-cache-dir onnxruntime-openvino
RUN if [ "$(uname -m)" = "x86_64" ]; then poetry run python -m pip install --no-cache-dir onnxruntime-openvino; else echo "onnxruntime-openvino not available on $(uname -m), skipping"; fi

COPY infinity_emb infinity_emb
# Install dependency with infinity_emb package
# "RUN poetry install --no-interaction --no-ansi --extras \"${EXTRAS}\" --without lint,test && poetry cache clear pypi --all"
COPY requirements_install_from_poetry.sh requirements_install_from_poetry.sh
RUN ./requirements_install_from_poetry.sh --without lint,test "https://download.pytorch.org/whl/cpu"
RUN poetry run python -m pip install --no-cache-dir onnxruntime-openvino
RUN if [ "$(uname -m)" = "x86_64" ]; then poetry run python -m pip install --no-cache-dir onnxruntime-openvino; else echo "onnxruntime-openvino not available on $(uname -m), skipping"; fi

#
# TODO: remove this line
Expand All @@ -60,7 +60,7 @@ FROM builder AS testing
# "RUN poetry install --no-interaction --no-ansi --extras \"${EXTRAS}\" --with lint,test && poetry cache clear pypi --all"
COPY requirements_install_from_poetry.sh requirements_install_from_poetry.sh
RUN ./requirements_install_from_poetry.sh --with lint,test "https://download.pytorch.org/whl/cpu"
RUN poetry run python -m pip install --no-cache-dir onnxruntime-openvino
RUN if [ "$(uname -m)" = "x86_64" ]; then poetry run python -m pip install --no-cache-dir onnxruntime-openvino; else echo "onnxruntime-openvino not available on $(uname -m), skipping"; fi

# lint
RUN poetry run ruff check .
Expand Down
Loading