Skip to content

Commit

Permalink
onnxruntime 1.17.0に合わせてバージョン更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Feb 20, 2024
1 parent dc3b784 commit a208997
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/download_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
include:
- os: windows-2022
artifact_name: windows-x64
cudnn_download_url: https://developer.download.nvidia.com/compute/redist/cudnn/v8.4.1/local_installers/11.6/cudnn-windows-x86_64-8.4.1.50_cuda11.6-archive.zip
cuda_version: 11.6.2
cudnn_download_url: https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/windows-x86_64/cudnn-windows-x86_64-8.9.2.26_cuda11-archive.zip
cuda_version: 12.2.2
- os: ubuntu-20.04
artifact_name: linux-x64
cudnn_download_url: https://developer.download.nvidia.com/compute/redist/cudnn/v8.4.1/local_installers/11.6/cudnn-linux-x86_64-8.4.1.50_cuda11.6-archive.tar.xz
cuda_version: 11.6.2
cudnn_download_url: https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-8.9.2.26_cuda11-archive.tar.xz
cuda_version: 12.2.2
env:
ASSET_NAME: CUDA-${{ matrix.artifact_name }}
runs-on: ${{ matrix.os }}
Expand All @@ -44,7 +44,7 @@ jobs:
cuda_version: ${{ matrix.cuda_version }}
extract_dir: artifact/${{ env.ASSET_NAME }}
- name: Upload CUDA
if: ${{ env.VERSION != 'DEBUG' && env.SKIP_UPLOADING_RELEASE_ASSET == '0' }}
if: env.VERSION != 'DEBUG'
uses: ./.github/actions/upload-artifact
with:
artifact_dir: artifact
Expand All @@ -58,7 +58,7 @@ jobs:
include:
- platform: x64-win
artifact_name: windows-x64
directml_version: 1.10.0
directml_version: 1.13.1
env:
ASSET_NAME: DirectML-${{ matrix.artifact_name }}
runs-on: ubuntu-latest
Expand All @@ -81,7 +81,7 @@ jobs:
cp -v "ext_directml/bin/${{ matrix.platform }}/DirectML.dll" "artifact/${{ env.ASSET_NAME }}"
cp -v "ext_directml/LICENSE.txt" "artifact/${{ env.ASSET_NAME }}/DirectML_LICENSE.txt"
- name: Upload DirectML
if: ${{ env.VERSION != 'DEBUG' && env.SKIP_UPLOADING_RELEASE_ASSET == '0' }}
if: env.VERSION != 'DEBUG'
uses: ./.github/actions/upload-artifact
with:
artifact_dir: artifact
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# voicevox_additional_libraries
CUDAやDirectMLなど、VOICEVOXを動かすのに必要になることがあるライブラリ置き場

CUDA や DirectML など、VOICEVOX を動かすのに必要になることがあるライブラリ置き場

## 依存ライブラリの更新方法

onnxruntime のバージョンに合わせて CUDA・DirectML・cuDNN のバージョンを更新します。
現状は`download_and_deploy.yml`ファイルを直接書き換えることで更新しています。

依存する CUDA と cuDNN のバージョンは[ここ](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements)で確認できます。CUDA のパッチバージョンを知りたい場合は onnxruntime のコード内検索で「cuda メジャーバージョン.マイナーバージョン」辺りで検索するとヒントが見つかります。

DirectML のバージョンはリリースノートか、「Microsoft.AI.DirectML」とコード内検索すれば見つかります。

## デプロイ方法

Release を作成するか、`download_and_deploy.yml`を workflow_dispatch で実行します。

0 comments on commit a208997

Please sign in to comment.