Helsinki-NLP / OPUS-MT-train

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

How to perform fine-tuning? #28

Open orendar opened 3 years ago

orendar commented 3 years ago

Hey, currently the fine-tuning commands ('tune' etc) are not recognized when running from the main directory ('OPUS-MT-train/'), and do not work correctly when running from the finetune directory ('OPUS-MT-train/finetune'), as the makefile is looking for model-related files and tools which are under the main directory under the directories 'work' and 'tools' and not under the finetune directory, and so it fails.

Is there an easier way to run fine-tuning from the main directory (similar to running train -> eval -> dist)? For example, to train a model on a few corpora and then fine-tune it on the desired corpus (which is most relevant to the final translation task) before packaging it?