Skip to content

Commit 26b2b9d

Browse files
committed
Pin onnxruntime versions, update deps
1 parent 3d3f3ac commit 26b2b9d

6 files changed

Lines changed: 1820 additions & 1677 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"features": {
3+
"ghcr.io/devcontainers/features/common-utils:2": {
4+
"version": "2.5.8",
5+
"resolved": "ghcr.io/devcontainers/features/common-utils@sha256:c42fdefe6d737a3a6f61cc52b23c7c9a565d08cc4d9c303669a7cf2ee5fd81fc",
6+
"integrity": "sha256:c42fdefe6d737a3a6f61cc52b23c7c9a565d08cc4d9c303669a7cf2ee5fd81fc"
7+
}
8+
}
9+
}

.github/workflows/python-package.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,19 @@ jobs:
9595
- soundfile: soundfile
9696
- python-version: "3.10"
9797
numpy: numpy==1.22.4
98-
onnxruntime: onnxruntime==1.18.1
98+
onnxruntime: onnxruntime==1.20.1
9999
hf-hub: huggingface-hub==0.30.2
100100
typing: typing-extensions==4.6.0
101101
- python-version: "3.11"
102102
numpy: numpy~=1.26
103-
onnxruntime: onnxruntime~=1.20.1
103+
onnxruntime: onnxruntime~=1.22.1
104104
hf-hub: huggingface-hub~=0.36
105105
- python-version: "3.12"
106106
numpy: numpy~=2.0.2
107-
onnxruntime: onnxruntime~=1.22.1
107+
onnxruntime: onnxruntime~=1.23.2
108108
hf-hub: huggingface-hub~=1.0.1
109109
- python-version: "3.13"
110110
numpy: numpy~=2.3.5
111-
onnxruntime: onnxruntime~=1.23.2
112111
- python-version: "3.13t"
113112
os: ubuntu-latest
114113
soundfile: ""
@@ -123,7 +122,7 @@ jobs:
123122
soundfile: soundfile
124123
- os: windows-11-arm
125124
numpy: numpy~=2.3.5
126-
onnxruntime: onnxruntime~=1.24.2
125+
onnxruntime: onnxruntime~=1.24.4
127126
- os: windows-11-arm
128127
python-version: "3.14"
129128
numpy: ""

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ Key features of **onnx-asr** include:
3737
> [!NOTE]
3838
> Supports **Parakeet v2 (En) / v3 (Multilingual)**, **Canary v1/v2 (Multilingual)** and **GigaAM v2/v3 (Ru)** models!
3939
40-
> [!WARNING]
41-
> onnxruntime 1.24.1 has known compatibility issues with onnx-asr. Please use newer (or older) versions!
42-
4340
> [!TIP]
4441
> You can check the onnx-asr demo on HF Spaces:
4542
>

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The supported platforms are primarily determined by available ONNX Runtime wheel
5858
| Package | Minimum Version |
5959
|---------|-----------------|
6060
| numpy | 1.22.4 |
61-
| onnxruntime | 1.18.1 (or any ONNX Runtime package) |
61+
| onnxruntime | 1.20.1 (or any ONNX Runtime package) |
6262
| huggingface-hub | 0.30.2 (optional, for model downloading) |
6363
| typing-extensions | 4.6.0 (Python < 3.11 only) |
6464

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ classifiers = [
3939
]
4040

4141
[project.optional-dependencies]
42-
cpu = ["onnxruntime>=1.18.1"]
43-
gpu = ["onnxruntime-gpu>=1.18.1"]
42+
cpu = [
43+
"onnxruntime<1.24; python_version < '3.11'",
44+
"onnxruntime>=1.20.1, != 1.24.1, != 1.25.*, != 1.26.0",
45+
]
46+
gpu = [
47+
"onnxruntime-gpu<1.24; python_version < '3.11'",
48+
"onnxruntime-gpu>=1.20.1, != 1.24.1, != 1.25.*, != 1.26.0",
49+
]
4450
hub = ["huggingface-hub>=0.30.2"]
4551

4652
[project.urls]

0 commit comments

Comments
 (0)