|
1 | 1 | # Building torchvision packages for release
|
2 | 2 |
|
3 |
| -## Anaconda packages |
| 3 | +TorchVision release packages are built by using `build_wheel.sh` and `build_conda.sh` for all permutations of |
| 4 | +supported operating systems, compute platforms and python versions. |
4 | 5 |
|
5 |
| -### Linux |
6 |
| - |
7 |
| -```bash |
8 |
| -nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/conda-cuda bash |
9 |
| -pushd remote/conda |
10 |
| - |
11 |
| -./build_vision.sh 9.0 |
12 |
| -./build_vision.sh 10.0 |
13 |
| -./build_vision.sh cpu |
14 |
| - |
15 |
| -# copy packages over to /remote |
16 |
| -# exit docker |
17 |
| -# anaconda upload -u pytorch torchvision*.bz2 |
18 |
| -``` |
19 |
| - |
20 |
| -### OSX |
21 |
| - |
22 |
| -```bash |
23 |
| -# create a fresh anaconda environment / install and activate it |
24 |
| -conda install -y conda-build anaconda-client |
25 |
| -./build_vision.sh cpu |
26 |
| - |
27 |
| -# copy packages over to /remote |
28 |
| -# exit docker |
29 |
| -# anaconda upload -u pytorch torchvision*.bz2 |
30 |
| -``` |
31 |
| - |
32 |
| -### Windows |
33 |
| - |
34 |
| -```bash |
35 |
| -# Open `Git Bash` and change dir to `conda` |
36 |
| -./build_vision.sh 9.0 |
37 |
| -./build_vision.sh 10.0 |
38 |
| -./build_vision.sh cpu |
39 |
| - |
40 |
| -# copy packages to a output directory |
41 |
| -# anaconda upload -u pytorch torchvision*.bz2 |
42 |
| -``` |
43 |
| - |
44 |
| -## Wheels |
45 |
| - |
46 |
| -### Linux |
47 |
| - |
48 |
| -pushd wheel |
49 |
| - |
50 |
| -```bash |
51 |
| -nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda90:latest bash |
52 |
| -cd remote |
53 |
| -./linux_manywheel.sh cu90 |
54 |
| - |
55 |
| -rm -rf /usr/local/cuda* |
56 |
| -./linux_manywheel.sh cpu |
57 |
| -``` |
58 |
| - |
59 |
| -```bash |
60 |
| -nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda100:latest bash |
61 |
| -cd remote |
62 |
| -./linux_manywheel.sh cu100 |
63 |
| -``` |
64 |
| - |
65 |
| -wheels are in the folders `cpu`, `cu90`, `cu100`. |
66 |
| - |
67 |
| -You can upload the `cu90` wheels to twine with `twine upload *.whl`. |
68 |
| -Which wheels we upload depends on which wheels PyTorch uploads as default, and right now, it's `cu90`. |
69 |
| - |
70 |
| -### OSX |
71 |
| - |
72 |
| -```bash |
73 |
| -pushd wheel |
74 |
| -./osx_wheel.sh |
75 |
| -``` |
76 |
| - |
77 |
| -### Windows |
78 |
| - |
79 |
| -```cmd |
80 |
| -set PYTORCH_REPO=pytorch |
81 |
| -
|
82 |
| -pushd windows |
83 |
| -call build_vision.bat 90 0.3.0 1 |
84 |
| -call build_vision.bat 100 0.3.0 1 |
85 |
| -call build_vision.bat cpu 0.3.0 1 |
86 |
| -``` |
87 |
| - |
88 |
| -wheels are in the current folder. |
89 |
| - |
90 |
| -You can upload them to twine with `twine upload *.whl` |
| 6 | +OS/Python/Compute matrix is defined in https://github.com/pytorch/vision/blob/main/.circleci/regenerate.py |
0 commit comments