Skip to content

Commit b1b38fe

Browse files
mergennachinpsiddh
andauthored
0.7 release ready try 5 (#13248)
- **[Release 0.7] Update setup-linux.sh** - **Add torch, torchvision and torchaudio dependencies** - **Add torch into core requirements and torchaudio and torchvision into requirements-examples.txt** - **Remove versions and let them automatically pick** --------- Co-authored-by: Siddartha Pothapragada <[email protected]>
1 parent 76ef30b commit b1b38fe

File tree

7 files changed

+11
-25
lines changed

7 files changed

+11
-25
lines changed

.ci/docker/common/install_pytorch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ install_pytorch_and_domains() {
3232
pip_install "$(echo dist/*.whl)"
3333

3434
# Grab the pinned audio and vision commits from PyTorch
35-
TORCHAUDIO_VERSION=$(cat .github/ci_commit_pins/audio.txt)
35+
TORCHAUDIO_VERSION=release/2.8
3636
export TORCHAUDIO_VERSION
37-
TORCHVISION_VERSION=$(cat .github/ci_commit_pins/vision.txt)
37+
TORCHVISION_VERSION=release/0.23
3838
export TORCHVISION_VERSION
3939

4040
install_domains

.ci/scripts/setup-linux.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ read -r BUILD_TOOL BUILD_MODE EDITABLE < <(parse_args "$@")
1616
# have already been installed, so we use PyTorch build from source here instead
1717
# of nightly. This allows CI to test against latest commits from PyTorch
1818
if [[ "${EDITABLE:-false}" == "true" ]]; then
19-
install_executorch --use-pt-pinned-commit --editable
19+
install_executorch --editable
2020
else
21-
install_executorch --use-pt-pinned-commit
21+
install_executorch
2222
fi
2323
build_executorch_runner "${BUILD_TOOL}" "${BUILD_MODE}"
24-
25-
if [[ "${GITHUB_BASE_REF:-}" == *main* || "${GITHUB_BASE_REF:-}" == *gh* ]]; then
26-
do_not_use_nightly_on_ci
27-
fi

.ci/scripts/wheel/post_build_script.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ set -eux
1212
# Rename pip-out directory, to avoid using shared libraries in pip-out during
1313
# smoke test.
1414
mv pip-out BACKUP-pip-out
15+
16+
pip list

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ set -euxo pipefail
1515
# able to see the installed torch package.
1616

1717
"${GITHUB_WORKSPACE}/${REPOSITORY}/install_requirements.sh" --example
18+
19+
pip list

install_requirements.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,6 @@ def install_optional_example_requirements(use_pytorch_nightly):
139139
"install",
140140
"-r",
141141
"requirements-examples.txt",
142-
],
143-
check=True,
144-
)
145-
146-
print("Installing torch domain libraries")
147-
DOMAIN_LIBRARIES = [
148-
("torchvision==0.23.0" if use_pytorch_nightly else "torchvision"),
149-
"torchaudio==2.8.0" if use_pytorch_nightly else "torchaudio",
150-
]
151-
# Then install domain libraries
152-
subprocess.run(
153-
[
154-
sys.executable,
155-
"-m",
156-
"pip",
157-
"install",
158-
*DOMAIN_LIBRARIES,
159142
"--extra-index-url",
160143
TORCH_URL,
161144
],

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ dependencies=[
6767
"pyyaml",
6868
"ruamel.yaml",
6969
"sympy",
70+
"torch>=2.8.0,<2.9.0",
7071
"torchao==0.12.0",
7172
"tabulate",
7273
# See also third-party/TARGETS for buck's typing-extensions version.

requirements-examples.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ timm == 1.0.7
55
torchsr == 1.0.4
66
torchtune >= 0.6.1
77
transformers ==4.47.1
8+
torchaudio==2.8.0
9+
torchvision==0.23.0

0 commit comments

Comments
 (0)