From 65d6156d0291f2c0eb5c9dba80e2c4d6781fd5e9 Mon Sep 17 00:00:00 2001 From: dr-duplo Date: Wed, 25 Oct 2023 14:43:41 +0200 Subject: [PATCH 1/2] Fix missing install candidate for ONNX Runtime on Apple Silicon This patch alters the requirements to use another ONNX runtime package which provides pre-build wheels for for Apple Silicon in case of running on arm64/M1/M2 Mac. Fixes #1505 --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7829ada37..636359e40 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,8 @@ einops >=0.6.0 huggingface_hub >= 0.13.0 lightning >= 2.0.1 omegaconf >=2.1,<3.0 -onnxruntime-gpu >= 1.16.0 +onnxruntime-gpu >= 1.16.0; (sys_platform != "darwin" and platform_system != "Darwin") or platform_machine != "arm64" +onnxruntime-silicon >= 1.16.0; (sys_platform == "darwin" or platform_system == "Darwin") and platform_machine == "arm64" pyannote.core >= 5.0.0 pyannote.database >= 5.0.1 pyannote.metrics >= 3.2 From fec8355b3cb54271c923a0446170affb2f71aa17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BREDIN?= Date: Thu, 26 Oct 2023 14:24:22 +0200 Subject: [PATCH 2/2] feat: add `macos-latest` to list of tested OS --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 90a4302c6..d1e83176c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] python-version: [3.8, 3.9, "3.10"] steps: - uses: actions/checkout@v2