Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup and README to use PyTorch 1.0 #1655

Merged
merged 4 commits into from
Dec 7, 2018
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ cache:

install:
- pip install -U pip
- pip install torch_nightly==1.0.0.dev20181206 -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- pip install torchvision --no-dependencies
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then
pip install http://download.pytorch.org/whl/cpu/torch-1.0.0-cp27-cp27mu-linux_x86_64.whl;
else
pip install http://download.pytorch.org/whl/cpu/torch-1.0.0-cp36-cp36m-linux_x86_64.whl;
fi
- pip install .[test]
- pip freeze

Expand Down
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ For more information, check out our [blog post](http://eng.uber.com/pyro).

### Installing a stable Pyro release

First install [PyTorch](http://pytorch.org/).

Install via pip:

**Python 2.7.\*:**
Expand Down Expand Up @@ -62,18 +60,6 @@ Make sure that the models come from the same release version of the [Pyro source

For recent features you can install Pyro from source.

To install a compatible version of PyTorch, use the PyTorch nightly
[build](https://pytorch.org/). We recommend pinning to the specific
nightly build below that has been well tested.

```sh
build_ver=1.0.0.dev20181127 # <---- a well-tested PyTorch build
pip install torch_nightly==${build_ver} -f \
https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
```

Finally install Pyro using pip or from source as shown below.

**Install using pip:**

```sh
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@
'numpy>=1.7',
'opt_einsum>=2.3.0',
'six>=1.10.0',
# TODO: uncomment on release; using torch-nightly build
# 'torch>=0.4.1',
'torch>=1.0.0',
'tqdm>=4.28',
],
extras_require={
Expand All @@ -96,7 +95,6 @@
'pytest==3.7',
'pytest-cov',
'scipy>=0.19.0',
'ipython<=6.5.0', # https://github.com/jupyter/jupyter_console/issues/158
],
'profile': ['prettytable', 'pytest-benchmark', 'snakeviz'],
'dev': EXTRAS_REQUIRE + [
Expand All @@ -109,7 +107,6 @@
'pypandoc',
'pytest==3.7',
'pytest-xdist',
'ipython<=6.5.0', # https://github.com/jupyter/jupyter_console/issues/158
'scipy>=0.19.0',
'sphinx',
'sphinx_rtd_theme',
Expand Down