-
Notifications
You must be signed in to change notification settings - Fork 567
AttributeError: Can't get attribute '_rebuild_tensor_v2' #5
Comments
I did try going to https://pytorch.org/ and choosing Linux / pip / Python 3.6 / CUDA 9.2 which gives me these commands: pip3 install http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp36m-linux_x86_64.whl Which doesn't give me the error above, but I do instead get:
|
Hey guys, can you provide a binary instead? failing that, how about a VM/ova with one click compile? or at least some step by step instructions |
https://github.com/pytorch/ELF#dependencies "You also need to install PyTorch from source" |
I know. The problem is after a few hours of trying I gave up on compiling Pytorch from source. I tried all the tricks I could find online, using various gcc versions, making changes to cuda include files, etc etc. Part of it is a bug in nvcc that Nvidia won't fix until next CUDA release, but I just couldn't find the right combinations of tricks to make it compile. There's no way I'll be alone in this. :) |
If you require tricks your environment is set up wrong or perhaps your hardware is old. I have been using a simple Ubuntu 16.04 environment for the last year and building pytorch from source automatically every single day. 1080 x3 setup. |
I dont think he is using ubuntu. Recommend using clonezilla to dd harddrive, wipe, install Ubuntu version that ELF used, and then try again. |
Correct, I'm on Manjaro / Arch. For others having the same issues I am, here were some of the relevant issue posts that gave some ideas to try. Maybe you'll have better luck than I. https://www.bountysource.com/issues/56264805-build-fails-on-gentoo-with-cuda-9-1-gcc-6-4-python-3-5 tensorflow/tensorflow#16165 |
@roy7 set track_running_stats=True in the operators may help. |
hey everyone, i'll get you a |
@soumith Thanks! :) The python-pytorch-cuda maintainer has been working on getting a newer package out but has trouble getting it to compile as well. I realize 0.4.0 might also be too old and only the master branch is compatible. Down the road of course I'm sure a 0.4.1 will come out, and packages will get made. Just takes time. |
if you use anaconda python, you can now use:
|
if you are using volta GPU, use |
Could you please make saved models backward compatible with older versions of pytorch? |
Backwards compatibility with old PyTorch versions is not currently on our radar. |
This error happens when trying to read in the weights file using an older version of Pytorch. I assume this is why you say Pytorch needs to be built from source. However I've tried that all evening and I can't find a way to navigate all of the nvcc/gcc/cuda incompatibilities to get it to compile. Many errors, all of which are common when I google, with lots of workarounds, but all of them only partially work. Fundamentally it seems like some sort of std::tuple issue with CUDA/nvcc which Nvidia acknowledges but say they won't fix until the next CUDA release.
Is there any chance you could cave your weight file out into an older PyTorch format? Then I could just install python-pytorch-cuda-0.3.1-2 for my version of linux and be up and running in moments. ELF itself compiled fine, and it runs with python-pytorch-cuda-0.3.1-2... it just can't read the weights file. pytorch/pytorch#5729 states it's because of the newer file format.
Thanks!
The text was updated successfully, but these errors were encountered: