mirror of
https://github.com/immich-app/immich.git
synced 2025-01-19 18:26:46 +01:00
bump versions, run on mich
This commit is contained in:
parent
e2a798e003
commit
06510bd755
3 changed files with 12 additions and 7 deletions
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
|
@ -48,7 +48,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
suffix: ['', '-cuda', '-openvino', '-armnn']
|
suffix: ['', '-cuda', '-rocm', '-openvino', '-armnn']
|
||||||
steps:
|
steps:
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
@ -91,7 +91,7 @@ jobs:
|
||||||
name: Build and Push ML
|
name: Build and Push ML
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
if: ${{ needs.pre-job.outputs.should_run_ml == 'true' }}
|
if: ${{ needs.pre-job.outputs.should_run_ml == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: mich
|
||||||
env:
|
env:
|
||||||
image: immich-machine-learning
|
image: immich-machine-learning
|
||||||
context: machine-learning
|
context: machine-learning
|
||||||
|
|
|
@ -17,7 +17,7 @@ RUN mkdir /opt/armnn && \
|
||||||
|
|
||||||
# Warning: 26.3Gb of disk space required to pull this image
|
# Warning: 26.3Gb of disk space required to pull this image
|
||||||
# https://github.com/microsoft/onnxruntime/blob/main/dockerfiles/Dockerfile.rocm
|
# https://github.com/microsoft/onnxruntime/blob/main/dockerfiles/Dockerfile.rocm
|
||||||
FROM rocm/dev-ubuntu-22.04:6.1.2-complete as builder-rocm
|
FROM rocm/dev-ubuntu-24.04:6.2.4-complete AS builder-rocm
|
||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.3/cmake-3.27.3
|
||||||
ENV PATH /code/cmake-3.27.3-linux-x86_64/bin:${PATH}
|
ENV PATH /code/cmake-3.27.3-linux-x86_64/bin:${PATH}
|
||||||
|
|
||||||
# Prepare onnxruntime repository & build onnxruntime
|
# Prepare onnxruntime repository & build onnxruntime
|
||||||
RUN git clone --single-branch --branch v1.18.1 --recursive "https://github.com/Microsoft/onnxruntime" onnxruntime
|
RUN git clone --single-branch --branch v1.20.1 --recursive "https://github.com/Microsoft/onnxruntime" onnxruntime
|
||||||
WORKDIR /code/onnxruntime
|
WORKDIR /code/onnxruntime
|
||||||
# EDIT PR
|
# EDIT PR
|
||||||
# While there's still this PR open, we need to compile on the branch of the PR
|
# While there's still this PR open, we need to compile on the branch of the PR
|
||||||
|
@ -46,7 +46,7 @@ RUN /bin/sh ./dockerfiles/scripts/install_common_deps.sh
|
||||||
# I lowered the number of threads to 8, and it worked
|
# I lowered the number of threads to 8, and it worked
|
||||||
# Even with 12 threads, the compilation took more than 1,5 hours to fail
|
# Even with 12 threads, the compilation took more than 1,5 hours to fail
|
||||||
RUN ./build.sh --allow_running_as_root --config Release --build_wheel --update --build --parallel 9 --cmake_extra_defines\
|
RUN ./build.sh --allow_running_as_root --config Release --build_wheel --update --build --parallel 9 --cmake_extra_defines\
|
||||||
ONNXRUNTIME_VERSION=1.18.1 --use_rocm --rocm_home=/opt/rocm
|
ONNXRUNTIME_VERSION=1.20.1 --use_rocm --rocm_home=/opt/rocm
|
||||||
RUN mv /code/onnxruntime/build/Linux/Release/dist/*.whl /opt/
|
RUN mv /code/onnxruntime/build/Linux/Release/dist/*.whl /opt/
|
||||||
|
|
||||||
FROM builder-${DEVICE} AS builder
|
FROM builder-${DEVICE} AS builder
|
||||||
|
@ -117,7 +117,7 @@ COPY --from=builder-armnn \
|
||||||
/opt/ann/build.sh \
|
/opt/ann/build.sh \
|
||||||
/opt/armnn/
|
/opt/armnn/
|
||||||
|
|
||||||
FROM rocm/dev-ubuntu-22.04:6.1.2-complete AS prod-rocm
|
FROM rocm/dev-ubuntu-24.04:6.2.4-complete AS prod-rocm
|
||||||
|
|
||||||
|
|
||||||
FROM prod-${DEVICE} AS prod
|
FROM prod-${DEVICE} AS prod
|
||||||
|
|
|
@ -63,7 +63,12 @@ _INSIGHTFACE_MODELS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SUPPORTED_PROVIDERS = ["CUDAExecutionProvider", "ROCMExecutionProvider", "OpenVINOExecutionProvider", "CPUExecutionProvider"]
|
SUPPORTED_PROVIDERS = [
|
||||||
|
"CUDAExecutionProvider",
|
||||||
|
"ROCMExecutionProvider",
|
||||||
|
"OpenVINOExecutionProvider",
|
||||||
|
"CPUExecutionProvider",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def get_model_source(model_name: str) -> ModelSource | None:
|
def get_model_source(model_name: str) -> ModelSource | None:
|
||||||
|
|
Loading…
Reference in a new issue