File tree Expand file tree Collapse file tree 5 files changed +22
-29
lines changed Expand file tree Collapse file tree 5 files changed +22
-29
lines changed Original file line number Diff line number Diff line change 49
49
# Packages that will be installed with the `--nodeps` flag.
50
50
pkgs_nodeps :
51
51
release_common :
52
- - torchvision
53
- - pillow
Original file line number Diff line number Diff line change @@ -23,19 +23,15 @@ RUN ansible-playbook -vvv playbook.yaml -e "stage=release" -e "${ansible_vars}"
23
23
# Copy test sources.
24
24
RUN mkdir -p /src/pytorch/xla
25
25
COPY --from=build /src/pytorch/xla/test /src/pytorch/xla/test
26
- # Copy ci_commit_pins from upstream
27
- RUN mkdir -p /src/pytorch/.github
28
- COPY --from=build /src/pytorch/.github/ci_commit_pins /src/pytorch/.github/ci_commit_pins
29
26
30
27
# Copy and install wheels.
31
28
WORKDIR /tmp/wheels
32
- COPY --from=build /src/pytorch/dist/*.whl ./
33
- COPY --from=build /src/pytorch/xla/dist/*.whl ./
29
+ COPY --from=build /dist/*.whl ./
34
30
35
31
RUN echo "Installing the following wheels" && ls *.whl
36
32
RUN pip install *.whl
37
33
38
34
WORKDIR /
39
35
40
36
# Clean-up unused directories.
41
- RUN rm -rf /ansible /tmp/wheels
37
+ RUN rm -rf /ansible /tmp/wheels
Original file line number Diff line number Diff line change 84
84
state : absent
85
85
mode : ' 0755'
86
86
87
+ - name : Read Torchvision pin
88
+ ansible.builtin.command : cat {{ (src_root, 'pytorch') | path_join }}/.github/ci_commit_pins/vision.txt
89
+ register : torchvision_pin
90
+
91
+ - name : Build Torchvision wheel
92
+ ansible.builtin.command :
93
+ cmd : pip wheel --no-build-isolation --no-deps "git+https://github.com/pytorch/vision.git@{{ torchvision_pin.stdout }}"
94
+ chdir : /dist
95
+ environment : " {{ env_vars }}"
96
+
97
+ - name : Find Torchvision *.whl files in /dist
98
+ ansible.builtin.find :
99
+ path : /dist
100
+ pattern : " torchvision*.whl"
101
+ register : torchvision_wheels
102
+
103
+ - name : Install Torchvision wheel
104
+ ansible.builtin.pip :
105
+ name : " {{ torchvision_wheels.files | map(attribute='path') }}"
106
+
87
107
- name : " Tests"
88
108
include_tasks : tests.yaml
89
109
tags :
Original file line number Diff line number Diff line change 20
20
dest : " {{ (src_root, 'pytorch/xla') | path_join }}"
21
21
version : " {{ xla_git_rev }}"
22
22
23
- - name : Find *.diff files in pytorch/xla/openxla_patches
24
- ansible.builtin.find :
25
- path : " {{ (src_root, 'pytorch/xla/openxla_patches') | path_join }}"
26
- pattern : " *.diff"
27
- register : openxla_patches
28
-
29
- - name : Apply patches to OpenXLA
30
- ansible.posix.patch :
31
- src : " {{ item }}"
32
- # Use source file on the target machine instead of the one where
33
- # the playbook is located. Has no effect when the target machine is
34
- # localhost.
35
- remote_src : true
36
- strip : 1
37
- ignore_whitespace : true
38
- basedir : " {{ (src_root, 'pytorch/xla/third_party/xla') | path_join }}"
39
- loop : " {{ openxla_patches.files | map(attribute='path') }}"
40
- ignore_errors : true
41
-
42
23
- name : " Tests"
43
24
include_tasks : tests.yaml
44
25
tags :
Original file line number Diff line number Diff line change 41
41
- bash
42
42
- -cxe
43
43
- |
44
- # Torchvision installed from a commit requires torch, need to install after torch is compiled.
45
- pip install --no-use-pep517 "git+https://github.com/pytorch/vision.git@$(cat /src/pytorch/.github/ci_commit_pins/vision.txt)"
46
44
pip install expecttest==0.1.6
47
45
pip install rich
48
46
pip install torch_xla[pallas] -f https://storage.googleapis.com/jax-releases/jax_nightly_releases.html -f https://storage.googleapis.com/jax-releases/jaxlib_nightly_releases.html
You can’t perform that action at this time.
0 commit comments