From 88e78ffffa837edf82f3e5bb93e5cf654239ca6a Mon Sep 17 00:00:00 2001 From: Ahmet Oner Date: Wed, 17 Apr 2024 01:25:15 +0200 Subject: [PATCH] Upgrade torch to v1.13.1 --- CHANGELOG.md | 4 ++++ Dockerfile.gpu | 2 +- docs/build.md | 2 +- poetry.lock | 32 ++++++++++++++++---------------- pyproject.toml | 12 ++++++------ 5 files changed, 28 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26be342..974f307 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Changelog Unreleased ---------- +### Changed + +- Upgraded torch to v1.13.1 + [1.4.0] (2024-04-17) -------------------- diff --git a/Dockerfile.gpu b/Dockerfile.gpu index 6cf15a9..766f17f 100644 --- a/Dockerfile.gpu +++ b/Dockerfile.gpu @@ -77,7 +77,7 @@ COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui.css swagger-ui-assets/sw COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-assets/swagger-ui-bundle.js RUN poetry install -RUN $POETRY_VENV/bin/pip install torch==1.13.0+cu117 -f https://download.pytorch.org/whl/torch +RUN $POETRY_VENV/bin/pip install torch==1.13.1+cu117 -f https://download.pytorch.org/whl/torch EXPOSE 9000 diff --git a/docs/build.md b/docs/build.md index 01f97a5..4cec3e9 100644 --- a/docs/build.md +++ b/docs/build.md @@ -10,7 +10,7 @@ Install torch with following command: ```sh # just for GPU: -pip3 install torch==1.13.0+cu117 -f https://download.pytorch.org/whl/torch +pip3 install torch==1.13.1+cu117 -f https://download.pytorch.org/whl/torch ``` ### Run diff --git a/poetry.lock b/poetry.lock index 63a4d2b..2a0ee3b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1218,12 +1218,12 @@ files = [ [[package]] name = "torch" -version = "1.13.0" +version = "1.13.1" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" optional = false python-versions = ">=3.7.0" files = [ - {file = "torch-1.13.0-cp310-none-macosx_10_9_x86_64.whl", hash = "sha256:49a949b8136b32b2ec0724cbf4c6678b54e974b7d68f19f1231eea21cde5c23b"}, + {file = "torch-1.13.1-cp310-none-macosx_10_9_x86_64.whl", hash = "sha256:393a6273c832e047581063fb74335ff50b4c566217019cc6ace318cd79eb0566"}, ] [package.dependencies] @@ -1234,16 +1234,16 @@ opt-einsum = ["opt-einsum (>=3.3)"] [package.source] type = "url" -url = "https://download.pytorch.org/whl/cpu/torch-1.13.0-cp310-none-macosx_10_9_x86_64.whl" +url = "https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_10_9_x86_64.whl" [[package]] name = "torch" -version = "1.13.0" +version = "1.13.1" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" optional = false python-versions = ">=3.7.0" files = [ - {file = "torch-1.13.0-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:0fdd38c96230947b1ed870fed4a560252f8d23c3a2bf4dab9d2d42b18f2e67c8"}, + {file = "torch-1.13.1-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:0122806b111b949d21fa1a5f9764d1fd2fcc4a47cb7f8ff914204fd4fc752ed5"}, ] [package.dependencies] @@ -1254,16 +1254,16 @@ opt-einsum = ["opt-einsum (>=3.3)"] [package.source] type = "url" -url = "https://download.pytorch.org/whl/cpu/torch-1.13.0-cp310-none-macosx_11_0_arm64.whl" +url = "https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_11_0_arm64.whl" [[package]] name = "torch" -version = "1.13.0" +version = "1.13.1" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" optional = false python-versions = ">=3.7.0" files = [ - {file = "torch-1.13.0-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:d2d2753519415d154de4d3e64d2eaaeefdba6b6fd7d69d5ffaef595988117700"}, + {file = "torch-1.13.1-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:d9fe785d375f2e26a5d5eba5de91f89e6a3be5d11efb497e76705fdf93fa3c2e"}, ] [package.dependencies] @@ -1274,16 +1274,16 @@ opt-einsum = ["opt-einsum (>=3.3)"] [package.source] type = "url" -url = "https://download.pytorch.org/whl/torch-1.13.0-cp310-cp310-manylinux2014_aarch64.whl" +url = "https://download.pytorch.org/whl/torch-1.13.1-cp310-cp310-manylinux2014_aarch64.whl" [[package]] name = "torch" -version = "1.13.0+cpu" +version = "1.13.1+cpu" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" optional = false python-versions = ">=3.7.0" files = [ - {file = "torch-1.13.0%2Bcpu-cp310-cp310-linux_x86_64.whl", hash = "sha256:b37a1a701fa00bcb9d508ebc509c3137df5f1cb9287548ee674893ac9561fbae"}, + {file = "torch-1.13.1+cpu-cp310-cp310-linux_x86_64.whl", hash = "sha256:11692523b87c45b79ddfb5148b12a713d85235d399915490d94e079521f7e014"}, ] [package.dependencies] @@ -1294,16 +1294,16 @@ opt-einsum = ["opt-einsum (>=3.3)"] [package.source] type = "url" -url = "https://download.pytorch.org/whl/cpu/torch-1.13.0%2Bcpu-cp310-cp310-linux_x86_64.whl" +url = "https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp310-cp310-linux_x86_64.whl" [[package]] name = "torch" -version = "1.13.0+cpu" +version = "1.13.1+cpu" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" optional = false python-versions = ">=3.7.0" files = [ - {file = "torch-1.13.0%2Bcpu-cp310-cp310-win_amd64.whl", hash = "sha256:6fe6a7b8c7fcb4ba5f9d20854ecd4d6a8644c5cb12ff9b72d1523c6dcf543606"}, + {file = "torch-1.13.1+cpu-cp310-cp310-win_amd64.whl", hash = "sha256:207ab3700cd9c4349f4fd1892597eb3d385eb78221c0f2974ec54b8ea903aa00"}, ] [package.dependencies] @@ -1314,7 +1314,7 @@ opt-einsum = ["opt-einsum (>=3.3)"] [package.source] type = "url" -url = "https://download.pytorch.org/whl/cpu/torch-1.13.0%2Bcpu-cp310-cp310-win_amd64.whl" +url = "https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp310-cp310-win_amd64.whl" [[package]] name = "tqdm" @@ -1549,4 +1549,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "1fd85aa4696df0327a00f6ab3c89d1759577a4e302d88400213dac3ff88866f4" +content-hash = "be778223ac873f8dedc6e7bd55be36fd66117fb3a33508c880627f785dab4623" diff --git a/pyproject.toml b/pyproject.toml index 7e62bba..e06c71d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,12 +29,12 @@ numba = "^0.59.1" openai-whisper = "^20231117" faster-whisper = "^1.0.1" torch = [ - {markers = "sys_platform == 'darwin' and platform_machine == 'arm64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.0-cp310-none-macosx_11_0_arm64.whl"}, - {markers = "sys_platform == 'linux' and platform_machine == 'arm64'", url="https://download.pytorch.org/whl/cpu/torch-1.13.0-cp310-none-macosx_11_0_arm64.whl"}, - {markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.0-cp310-none-macosx_10_9_x86_64.whl"}, - {markers = "sys_platform == 'linux' and platform_machine == 'aarch64'", url="https://download.pytorch.org/whl/torch-1.13.0-cp310-cp310-manylinux2014_aarch64.whl"}, - {markers = "sys_platform == 'linux' and platform_machine == 'x86_64'", url="https://download.pytorch.org/whl/cpu/torch-1.13.0%2Bcpu-cp310-cp310-linux_x86_64.whl"}, - {markers = "sys_platform == 'win' and platform_machine == 'amd64'", url="https://download.pytorch.org/whl/cpu/torch-1.13.0%2Bcpu-cp310-cp310-win_amd64.whl"}, + {markers = "sys_platform == 'darwin' and platform_machine == 'arm64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_11_0_arm64.whl"}, + {markers = "sys_platform == 'linux' and platform_machine == 'arm64'", url="https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_11_0_arm64.whl"}, + {markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", url = "https://download.pytorch.org/whl/cpu/torch-1.13.1-cp310-none-macosx_10_9_x86_64.whl"}, + {markers = "sys_platform == 'linux' and platform_machine == 'aarch64'", url="https://download.pytorch.org/whl/torch-1.13.1-cp310-cp310-manylinux2014_aarch64.whl"}, + {markers = "sys_platform == 'linux' and platform_machine == 'x86_64'", url="https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp310-cp310-linux_x86_64.whl"}, + {markers = "sys_platform == 'win' and platform_machine == 'amd64'", url="https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp310-cp310-win_amd64.whl"}, ] [tool.poetry.dev-dependencies]