README.md 1.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Building torchvision packages for release

## Anaconda packages

### Linux

```bash
nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/conda-cuda bash
pushd remote/conda

./build_vision.sh 9.0
./build_vision.sh 10.0
./build_vision.sh cpu

# copy packages over to /remote
# exit docker
# anaconda upload -u pytorch torchvision*.bz2
```

### OSX

```bash
# create a fresh anaconda environment / install and activate it
conda install -y conda-build anaconda-client
./build_vision.sh cpu

# copy packages over to /remote
# exit docker
# anaconda upload -u pytorch torchvision*.bz2
```

## Wheels

### Linux

pushd wheel

```bash
nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda90:latest bash
cd remote
./linux_manywheel.sh cu90

rm -rf /usr/local/cuda*
./linux_manywheel.sh cpu
```

```bash
nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda100:latest bash
cd remote
./linux_manywheel.sh cu100
```

wheels are in the folders `cpu`, `cu90`, `cu100`.

You can upload the `cu90` wheels to twine with `twine upload *.whl`.
Which wheels we upload depends on which wheels PyTorch uploads as default, and right now, it's `cu90`.

### OSX

```bash
pushd wheel
./osx_wheel.sh
```

wheels are in the current folder.

You can upload them to twine with `twine upload *.whl`