-
Notifications
You must be signed in to change notification settings - Fork 409
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
Adjustments to setup.py and README for torch Sobol #55
Conversation
Can we hold off on committing this until closer to PyTorch 1.1 lands? I don’t want to require external testers of the software to install PyTorch off master, but rather use conda.
…Sent from my iPhone
On Apr 15, 2019, at 6:43 PM, Max Balandat ***@***.***> wrote:
Summary:
Using the torch native SobolEngine makes things a lot simpler for botorch.
ax still uses the cython SobolEngine for a lot of things outside torch land.
Differential Revision: D14946543
You can view, comment on, or merge this pull request online at:
#55
Commit Summary
Use torch native SobolEngine
Add `__version__` attribute to botorch package (#45)
Adjustments to setup.py and README for torch Sobol
File Changes
M README.md (25)
M botorch/__init__.py (8)
M botorch/acquisition/sampler.py (2)
M botorch/qmc/__init__.py (3)
M botorch/qmc/normal.py (87)
D botorch/qmc/sobol.pyx (1690)
M botorch/utils/sampling.py (17)
M setup.py (24)
M test/qmc/test_normal.py (653)
D test/qmc/test_sobol.py (232)
M test/utils/test_sampling.py (2)
Patch Links:
https://github.com/facebookexternal/botorch/pull/55.patch
https://github.com/facebookexternal/botorch/pull/55.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The PyTorch nightlies are available on conda. So the setup will require running Are you worried about them having to install a different version of pytorch if they already have one set up? |
Hmm good thing I exported this. Looks like we're getting failures that we are not seeing internally (D14601706). My suspicion is that the pytorch nightlies we get from pip don't contain/properly build the ATen SobolEngine. This all runs fine when using the nightlies from conda locally on my Mac. |
If it is that easy then it’s OK. Go for it.
…Sent from my iPhone
On Apr 15, 2019, at 6:48 PM, Max Balandat ***@***.***> wrote:
I don’t want to require external testers of the software to install PyTorch off master, but rather use conda.
The PyTorch nightlies are available on conda. So the setup changes from
conda install pytorch-nightly -c pytorch instead of
conda install pytorch -c pytorch
Are you worried about them having to install a different version of pytorch if they already have one set up?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
We'll need to figure out what the issues are with the nightlies in travis first anyway. |
@soumith, any idea why we're running into the following on travis when using the pytorch nightlies from pip (this is on linux):
Things run fine using the pytorch nightlies from conda on my Mac (pip installs on my Mac fail b/c of a MKL linking issues). Things also run fine internally (D14601706). |
Travis log for a recent failed run: https://travis-ci.com/facebookexternal/botorch/jobs/194077151 |
i cant see the log. it says cant find project. Can you paste the failure? |
https://phabricator.internmc.facebook.com/P62627525$1044-1045 Excerpt:
|
Upon further digging, it seems that this failure may be caused by gpytorch's pip install re-installing the latest pytorch version over the nightlies. This should not happen. |
Fixed gpytorch setup.py upstream: cornellius-gp/gpytorch#663, will peg to that commit once merged into master. |
Argh I don't know why this is still failing... |
OK so even with the upstream change to the gpytorch setup we still get the following: I think the reason is that the pip install actually calls the package I tried working around this upstream by doing some parsing in setup.py of the sorts
Unfortunately. there is a bug in pip 19.0.1 that shows up in conjunction with having a I think for now I'll just re-install the nightlies after installing gpytorch in .travis.yml, and then just put the req. "torch>=1.1` upon release. |
Summary: This diff - uses the native torch SobolEngine introduced in D9330179 - moves the cython implementation to `experimental/balandat/qmc` (would like to upstream this to scipy at a later point) - ports the NormalQMCEngine and MultivariateNormalQMCEngine over to torch - updates tests accordingly - restructures the botorch TARGET files (these were really funky so that we could use the Cython SobolEngine - this is not necessary anymore). Note that this changes the target from `//pytorch/botorch/botorch:botorch` to `//pytorch/botorch:botorch`. This has been a long time coming, hard to believe it's finally here... Differential Revision: D14601706 fbshipit-source-id: 2b1e52adbf6a9af79aa5a4cc7c184831d233bfb0
Summary: This uses regexp parsing to get the version from setup.py so we have a single source. Pull Request resolved: #45 Differential Revision: D14892769 fbshipit-source-id: 6475006d4f93ec0cf0fbcc641db91bc71ebf6e2a
Summary: Pull Request resolved: #55 Using the torch native SobolEngine makes things a lot simpler for botorch. ax still uses the cython SobolEngine for a lot of things outside torch land. Reviewed By: danielrjiang Differential Revision: D14946543 fbshipit-source-id: 9dbbb3bad205663274ec30f960dea44e390688b7
Summary: Pull Request resolved: facebook/Ax#20 Pull Request resolved: #55 Using the torch native SobolEngine makes things a lot simpler for botorch. ax still uses the cython SobolEngine for a lot of things outside torch land. Reviewed By: danielrjiang Differential Revision: D14946543 fbshipit-source-id: b2b0ea09a5ea7dc29ecb2a24e7ecdc279d168943
Summary: Pull Request resolved: facebook/Ax#20 Pull Request resolved: #55 Using the torch native SobolEngine makes things a lot simpler for botorch. ax still uses the cython SobolEngine for a lot of things outside torch land. Reviewed By: danielrjiang Differential Revision: D14946543 fbshipit-source-id: b2b0ea09a5ea7dc29ecb2a24e7ecdc279d168943
Summary:
Using the torch native SobolEngine makes things a lot simpler for botorch.
ax still uses the cython SobolEngine for a lot of things outside torch land.
Differential Revision: D14946543