Helsinki-NLP / OPUS-MT-train

Training open neural machine translation models
MIT License
323 stars 40 forks source link

Marian compilation: max 8 jobs to avoid memory error #57

Closed raphaelmerx closed 3 years ago

raphaelmerx commented 3 years ago

On a machine with 12GB of RAM, make install was failing for me because marian compilation was exhausting the memory. In their install instructions marian recommends limiting the number of make jobs to 4, while in lib/env.mk the -j option allows an infinite amount of jobs to be created.

This PR limits the number of jobs during marian compilation to 8. Managed to make install this package on an 12GB Ubuntu 18.04 machine after this small edit.