@@ -17,24 +17,6 @@ install_domains() {
1717}
1818
1919install_pytorch_and_domains () {
20- if [ " ${TORCH_CHANNEL} " != " nightly" ]; then
21- # Test/release: install the published wheels directly. The specs and URL
22- # are passed in as docker build args (computed from torch_pin.py by
23- # .ci/docker/build.sh). RC wheels at /whl/test/ get re-uploaded under the
24- # same version, so use --no-cache-dir there to avoid stale cache hits.
25- local cache_flag=" "
26- if [ " ${TORCH_CHANNEL} " = " test" ]; then
27- cache_flag=" --no-cache-dir"
28- fi
29- pip_install --force-reinstall ${cache_flag} \
30- " ${TORCH_SPEC} " " ${TORCHVISION_SPEC} " " ${TORCHAUDIO_SPEC} " \
31- --index-url " ${TORCH_INDEX_URL} /cpu"
32- return
33- fi
34-
35- # Nightly: build pytorch from source against the pinned SHA in pytorch.txt
36- # so we catch upstream regressions, then install audio/vision from the
37- # commits that pytorch itself pins.
3820 git clone https://github.com/pytorch/pytorch.git
3921
4022 # Fetch the target commit
@@ -45,19 +27,14 @@ install_pytorch_and_domains() {
4527 chown -R ci-user .
4628
4729 export _GLIBCXX_USE_CXX11_ABI=1
48- # PyTorch's FindARM.cmake hard-fails when the SVE+BF16 compile probe
49- # doesn't pass — gcc-11 in this image is too old to accept the combined
50- # NEON/SVE/bfloat16 intrinsics the probe exercises. Executorch's aarch64
51- # runtime targets (phones, embedded) don't use SVE, so bypass the check.
52- export BUILD_IGNORE_SVE_UNAVAILABLE=1
5330 # Then build and install PyTorch
5431 conda_run python setup.py bdist_wheel
5532 pip_install " $( echo dist/* .whl) "
5633
57- # Defer to PyTorch's own pinned audio/ vision commits.
58- TORCHAUDIO_VERSION=$( cat .github/ci_commit_pins/audio.txt )
34+ # Grab the pinned audio and vision commits from PyTorch
35+ TORCHAUDIO_VERSION=release/2.11
5936 export TORCHAUDIO_VERSION
60- TORCHVISION_VERSION=$( cat .github/ci_commit_pins/vision.txt )
37+ TORCHVISION_VERSION=release/0.26
6138 export TORCHVISION_VERSION
6239
6340 install_domains
0 commit comments