Switch to using PyTorch distributions by default#676
Conversation
|
congrats to everyone who put in the hardwork to make this happen! |
|
There was some AWS_KEY in the env that was messing up the S3 download. I removed that and restarted the tests. |
|
@null-a Would you mind taking a look at the error in air? It looks like This is the last remaining bug blocking us from switching to PyTorch distributions. I spent an hour or so last night trying to diagnose it, and I'd appreciate any help you could provide. Let me know if I can help you to reproduce the error. Details |
@fritzo: Sure thing. Pointers as to how to reproduce would be helpful. I'm currently seeing the following error when I run That's with |
|
@null-a - Could you try testing with PyTorch master branch? The easiest way to build it would be to download the CPU wheels from |
@neerajprad: Great, with that I'm seeing the error, thanks.
@fritzo: If I apply this diff then |
|
Thanks @null-a, your fix looks like the right thing to do. |
|
@fritzo: Great. I guess there will need to be similar changes made to the AIR example notebook. I could take a look at that sometime, but I won't get to it today. |
|
@fritzo - Should we modify the notebooks as well, or get this merged as is? |
|
I'd merge this as is. Authors of notebooks without unit tests are responsible for maintaining those notebooks by hand. |
|
@neerajprad Ready to merge? I'm wrapping Alican's Multinomial on top of this PR. |
@fritzo - Merged. Could you merge |
@fritzo: Can you give me a pointer as to how I add unit tests for the AIR notebook. At the time I wrote this, I got the impression that basic checks for notebooks (that e.g. make sure they run without error) were in the works? I won't be manually checking the AIR notebook against every release, so without something like this it will rot. |
This flips the switch to start using PyTorch distributions by default, only if they are available. If they are not available (i.e. if an older PyTorch version is installed), then the old Pyro distributions will be used instead.
Note that a few Pyro distributions are currently being implemented in PyTorch, and are not switched in this PR: