janvarev / OneRingTranslator

Simple local REST web service to translate texts. Plugins. Automatic calculate BLEU/COMET metrics of translation quality.
MIT License
113 stars 12 forks source link

Can't install the NLLB model #3

Closed NeuroLord closed 1 year ago

NeuroLord commented 1 year ago

I'm not very good with all these .py scripts, so please explain point by point what I have to do to make a translation using this: https://huggingface.co/JustFrederik/nllb-200-3.3B-ct2-float16

NeuroLord commented 1 year ago

After contacting the developer, I managed to get more instructions from him, so I will try to describe my procedure for local starting the translator: 1) Perform the installation via install.bat 2) Run the webUI once and exit it 3) Put the NLLB model on the path .../repository_folder/OneRingTranslator/ 4) Change the model name in configuration file /OneRingTranslator/options/plugin_fb_nllb_ctlate2.json/ to match the downloaded one - model: "name" (nllb-200-3.3B-ct2-float16, in this case) 5) In the same folder, open core.json and change 'default_translate_plugin' to 'fb_nllb_ctlate2'.

It may have been obvious to someone, but I spent some time understanding all these steps