-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
OOM kill on pip install #1022
Comments
thanks for reporting this. We ship binaries, which means that all pip is doing is: unzipping the package on your computer and moving files into the right location. With this context, there is very little I see I can do from the package side to improve this. When I get time, I can try to simulate this in a limited memory environment and try to find out the exact reasons and report something to the pip folks upstream, but as the task is not really actionable from my side, I'll close this issue. |
You can |
I'm still seeing this problem when trying to pip install torch inside the base Ubuntu Docker container. It'll get 99% installed and then kill. Other packages install fine. |
I am facing the exact issue as one faced by @rkingery. |
Same issue here. Can be fixed by increasing Docker memory (e.g. https://stackoverflow.com/questions/44533319/how-to-assign-more-memory-to-docker-container). @diwu1989's comment is interesting though: Is there a less demanding way of downloading and installing PyTorch than pip? |
(Turns out a |
In case others need a workaround,
This suggests to me that the problem here is a pip bug; it must be allocating a lot of memory when it apparently doesn't need to. |
I got the same issue. Another way to install the package is to use the --no-cache-dir option. |
Same problem @perber's solution worked for me in my docker container |
I am experiencing this same problem but |
|
@bthiban I mentioned that in #1022 (comment) but unfortunately is did not solve the problem. |
Vectorization was disabled when broadcast inner axes exist. Fixes pytorch#1021 patched with CI failure Co-authored-by: jjsjann123 <alex.jann2012@gmail.com>
we pass DESIRED_CUDA=cpu-cxx11-abi to the container to build pytorch wheel with file name like *cpu.cxx11.abi*, and so it is different with the original cpu wheel file. this patch corrects the test setting to use same test for cpu and cpu-cxx11-abi.
When I attempt to install Torch with pip, the process gets OOM killed:
dmesg:
Feel free to close this if it is by design that 4G is not enough memory to install Torch (yes I don't have very much memory) but perhaps there is something here worth investigating?
The text was updated successfully, but these errors were encountered: