Comments (4)
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.
I am running it on a google cloud instance with 15GB of RAM.
from muse.
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.
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)
- why unsupervised can achieve Word alignment?
- Can some one give the dictionary tree of the whole project? Like in the data/crosslingual or monlingual/.. HOT 5
- non-parallel chinese traditional - english
- evaluate.py error
- openssl ssl_read ssl_error_syscall errno 110
- Reproducing Results in Table 1 HOT 1
- IndexError: index out of range in self
- AttributeError: 'Namespace' object has no attribute 'dico_max_rank'
- Assertion Error while using the unsupervised way.
- Tokenization issue in to-En bilingual dictionaries
- They hated the kid HOT 1
- Bad outcome in ja-en task HOT 1
- Rush Shhh INPUT aUTOMATION
- ValueError: too many values to unpack (expected 2) in unsupervised.py
- Will pytorch's deprecation of volatile affect the result?
- [ML Question] Is it possible somehow to translate two or three words ?
- Tried on GloVe?
- self-mapped english words in dictionaries
- ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them HOT 3
- demo notebook references unavailable private files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muse.