mozilla / firefox-translations-models

CPU-optimized Neural Machine Translation models for Firefox Translations
Mozilla Public License 2.0
173 stars 17 forks source link

Use trained model on offline computer #172

Closed FredrikJoh closed 2 weeks ago

FredrikJoh commented 2 weeks ago

What is the process for taking a trained model from this repo and using it with Firefox on a stand-alone computer?

After instaliing Firefox on the offline stand-alone computer, where do I save the models so that Firefox Translate can find and use them for translation? If possible, I would like to know the answer for both Linux and Windows.

Thanks for a great work!

gregtatum commented 2 weeks ago

You can use Firefox Translations in the browser with offline support via about:preferences.

Screenshot of Firefox Translations in about:preferenes

It sounds like you are trying to have pre-loaded models. In this case you would probably have to copy over a user profile directory, as they are stored there inside of SQLite via RemoteSettings. So there's no simple file location.