browsermt / bergamot-translator

Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.
http://browser.mt
Mozilla Public License 2.0
341 stars 38 forks source link

Memory allocation issues on keeping multiple models #381

Open jerinphilip opened 2 years ago

jerinphilip commented 2 years ago

From https://github.com/mozilla/firefox-translations/issues/135

I explored this further and reached a working point, but after having ~6 models loaded, the engine started to run into memory allocation issues which is probably a restriction in the Web Extensions API.

We should inspect if this is something inside bergamot/marian.