Skip to content

Commit 7672412

Browse files
authored
Add torchaudio wheel (#3602)
1 parent 5b305d1 commit 7672412

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docker/Dockerfile.prebuilt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,21 @@ RUN ln -sf $(which ${PYTHON}) /usr/local/bin/python && \
9494

9595
ARG TORCH_VERSION
9696
ARG TORCHVISION_VERSION
97+
ARG TORCHAUDIO_VERSION
9798
ARG IPEX_VERSION
9899
ARG ONECCL_BIND_PT_VERSION
99100
ARG TORCH_WHL_URL
100101
ARG IPEX_WHL_URL
101102
ARG TORCHVISION_WHL_URL
103+
ARG TORCHAUDIO_WHL_URL
102104
ARG ONECCL_BIND_PT_WHL_URL
103105

104106
RUN python -m pip install numpy
105107

106108
RUN python -m pip install torch==${TORCH_VERSION} --extra-index-url ${TORCH_WHL_URL} && \
107109
python -m pip install intel_extension_for_pytorch==${IPEX_VERSION} --extra-index-url ${IPEX_WHL_URL} && \
108110
python -m pip install torchvision==${TORCHVISION_VERSION} --extra-index-url ${TORCHVISION_WHL_URL} && \
111+
python -m pip install torchaudio==${TORCHAUDIO_VERSION} --extra-index-url ${TORCHAUDIO_WHL_URL} && \
109112
python -m pip install oneccl_bind_pt==${ONECCL_BIND_PT_VERSION} --extra-index-url ${ONECCL_BIND_PT_WHL_URL}
110113

111114
ENV LD_LIBRARY_PATH=/opt/intel/oneapi/lib:/opt/intel/oneapi/lib/intel64:$LD_LIBRARY_PATH

docker/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ if [[ ${IMAGE_NAME} != "" ]]; then
1818
--build-arg TORCH_VERSION=2.1.0a0+cxx11.abi \
1919
--build-arg IPEX_VERSION=2.1.10+xpu \
2020
--build-arg TORCHVISION_VERSION=0.16.0a0+cxx11.abi \
21+
--build-arg TORCHAUDIO_VERSION=2.1.0a0+cxx11.abi \
2122
--build-arg TORCH_WHL_URL=https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \
2223
--build-arg IPEX_WHL_URL=https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \
2324
--build-arg TORCHVISION_WHL_URL=https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \
25+
--build-arg TORCHAUDIO_WHL_URL=https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \
2426
--build-arg CCL_VER=2021.11.1-6 \
2527
--build-arg ONECCL_BIND_PT_VERSION=2.1.100 \
2628
--build-arg ONECCL_BIND_PT_WHL_URL=https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \

0 commit comments

Comments
 (0)