Giter Club home page Giter Club logo

Comments (4)

glample avatar glample commented on July 2, 2024

It looks like you don't have enough memory. How much RAM do you have on your computer? The system failed by trying to allocate 2GB of RAM.

from muse.

NewInfinite007 avatar NewInfinite007 commented on July 2, 2024

I am running it on a google cloud instance with 15GB of RAM.

from muse.

glample avatar glample commented on July 2, 2024

15GB of RAM should be enough to load all the 2519370 embeddings you have in your text file. Maybe you have some other things running on your server?

I'll close the issue for now, as the problem seems to be related to the amount of RAM you have and that 2GB are missing, so there is nothing much we can do, but feel free to re-open.

from muse.

Jordy-VL avatar Jordy-VL commented on July 2, 2024

Issue cannot be closed as I have exactly the same.

Traceback (most recent call last):
File "supervised.py", line 112, in
trainer.export()
File "/media/hdd/experiments/MUSE/src/trainer.py", line 251, in export
params.src_dico, src_emb = load_embeddings(params, source=True, full_vocab=True)
File "/media/hdd/experiments/MUSE/src/utils.py", line 406, in load_embeddings
return read_txt_embeddings(params, source, full_vocab)
File "/media/hdd/experiments/MUSE/src/utils.py", line 310, in read_txt_embeddings
embeddings = torch.from_numpy(embeddings).float()
RuntimeError: $ Torch: not enough memory: you tried to allocate 2GB. Buy new RAM! at /pytorch/aten/src/TH/THGeneral.c:218

I have nvidia-smi -l running and I still have plenty of RAM left:

Wed Jan 9 16:26:30 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.26 Driver Version: 396.26 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 Off | 00000000:01:00.0 On | N/A |
| N/A 86C P2 50W / N/A | 2780MiB / 8117MiB | 54% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1359 G /usr/lib/xorg/Xorg 403MiB |
| 0 2002 G compiz 152MiB |
| 0 6190 G ...-token=27088BB02FEAEB3278182E523EF49919 65MiB |
| 0 6614 C python3.6 1879MiB |
| 0 25989 G ...-token=FF4BF8F75FD2BAB7787105959EA9C26B 61MiB |
| 0 28503 G ...quest-channel-token=8917990538955012586 149MiB |
| 0 32138 G ...-token=816BB72694DAAE6FD522377ED390040C 63MiB |
+-----------------------------------------------------------------------------+

Any idea what could cause this weird out-of-memory error?

from muse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.