Here are instructions to install from source: https://github.com/pytorch/pytorch#from-source 4  have fun!
But a few things are currently unstable on master, you should try out the v0.3.0 branch if you are seeing issues. v0.3.0 has almost feature parity with master, except for some major refactoring.