text icon indicating copy to clipboard operation
text copied to clipboard

Weird memory requirements in console vs. Jupyter notebook

Open domaala opened this issue 8 years ago • 1 comments

I've been running code that loads pre-trained FastText word embeddings in the Jupyter notebook (JupyterLab, to be precise) without any major issues for days. However, after I decided to extract model training into a separate Python script to be run for a longer period of time, I experienced enormous memory requirements. I hit the same wall with Jupyter console as well.

The issue of a memory leak of sorts is directly mentioned in #298 .

tl;dr Jupyter notebooks handle loading big embeddings in an expected manner, while Jupyter console and regular Python script do not. There could be some problems with either PyTorch of TorchText under different environments.

domaala avatar May 04 '18 09:05 domaala

@domaala do you still have this issue under current versions of Pytorch and torchtext? Feel free to reopen it.

zhangguanheng66 avatar May 30 '19 22:05 zhangguanheng66