Skip to content
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

Run out of memory [Only CPU Training ] #19

Closed
shichaog opened this issue Nov 23, 2020 · 2 comments
Closed

Run out of memory [Only CPU Training ] #19

shichaog opened this issue Nov 23, 2020 · 2 comments

Comments

@shichaog
Copy link

Hi, Thanks for sharing this great project.
I training by follow command only by CPU on Ubuntu18 (no GPU).

python train_moglow.py 'hparams/style_gestures.json' trinity

My question is, 96GB memory run out. Training process will killed by OS. It seems memory leak happed during training process, Could help verify, Thanks!

@shichaog shichaog changed the title Only CPU Training out of memory Only CPU Training run out of memory Nov 24, 2020
@shichaog shichaog changed the title Only CPU Training run out of memory Run out of memory [Only CPU Training ] Nov 24, 2020
@shichaog
Copy link
Author

I think it's because of using LSTM op.

refer to:
LSTMs leak memory in CPU PyTorch 1.5.1, 1.6, and 1.7 on Linux
#41486

@shichaog
Copy link
Author

shichaog commented Dec 1, 2020

I update pytorch and change LSTMs to GRU in style_gestures.json. OOM problem fixed!
pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant