|
1 | 1 | # Training Pipeline - mozilla/translations |
2 | 2 |
|
3 | | -Training pipelines for Firefox Translations machine translation models. |
| 3 | +Training pipelines and the inference engine for Firefox Translations machine translation models. |
4 | 4 |
|
5 | | -The trained models are hosted in [firefox-translations-models](https://github.com/mozilla/firefox-translations-models/) repository, |
6 | | -compatible with [bergamot-translator](https://github.com/mozilla/bergamot-translator) and |
7 | | -power the Firefox web page translation starting with version 118. |
| 5 | +The trained models are hosted in a public Google Cloud Storage bucket (see Model Registry [UI](https://mozilla.github.io/translations/model-registry/) and [JSON](https://storage.googleapis.com/moz-fx-translations-data--303e-prod-translations-data/db/models.json)). |
| 6 | +The models are compatible with [bergamot-translator](https://github.com/mozilla/bergamot-translator) and |
| 7 | +power the Firefox web page translation starting with version 118. |
8 | 8 |
|
9 | 9 | The pipeline was originally developed as a part of [Bergamot](https://browser.mt/) project that focuses on improving client-side machine translation in a web browser. |
10 | 10 |
|
11 | | -## Training pipeline |
| 11 | +## Pipeline |
12 | 12 |
|
13 | | -The pipeline is capable of training a translation model for a language pair end to end. |
14 | | -Translation quality depends on the chosen datasets, data cleaning procedures and hyperparameters. |
| 13 | +The pipeline is capable of training a translation model for a language pair end to end. |
| 14 | +Translation quality depends on the chosen datasets, data cleaning procedures and hyperparameters. |
15 | 15 | Some settings, especially low resource languages might require extra tuning. |
16 | 16 |
|
17 | | -We use [Marian](https://marian-nmt.github.io), the fast neural machine translation engine . |
| 17 | +We use fast translation engine [Marian](https://marian-nmt.github.io). |
18 | 18 |
|
19 | | -## Learning resources |
| 19 | +See [more details about the pipeline steps](training/pipeline-steps.md). |
| 20 | + |
| 21 | +## Orchestrators |
| 22 | + |
| 23 | +An orchestrator is responsible for workflow management and parallelization. |
| 24 | + |
| 25 | +- [Taskcluster](https://taskcluster.net/) - Mozilla task execution framework. It is also used for Firefox CI. |
| 26 | + It provides access to the hybrid cloud workers (GCP + on-prem) with increased scalability and observability. |
| 27 | + [Usage instructions](infrastructure/task-cluster.md). |
| 28 | +- [Snakemake](https://snakemake.github.io/) - a file based orchestrator that allows to run the pipeline locally or on a Slurm cluster. |
| 29 | + [Usage instructions](infrastructure/snakemake.md). (The integration is not maintained since Mozilla has switched to Taskcluster. Contributions are welcome.) |
| 30 | + |
| 31 | +## Experiment tracking |
| 32 | + |
| 33 | +[Public training dashboard in Weights & Biases](https://wandb.ai/moz-translations/projects) |
| 34 | + |
| 35 | +Marian training metrics are parsed from logs and published using a custom module within the `tracking` directory. |
| 36 | +More information is available [here](infrastructure/tracking.md). |
| 37 | + |
| 38 | +## Contributing |
| 39 | + |
| 40 | +Contributions are welcome! See the [documentation on Contributing](contributing/index.md) for more details. |
| 41 | + |
| 42 | +Feel free to ask questions in our Matrix channel [#firefoxtranslations:mozilla.org](https://matrix.to/#/#firefoxtranslations:mozilla.org). |
| 43 | + |
| 44 | +## Useful Links |
20 | 45 |
|
21 | | -- High level overview [post on Mozilla Hacks](https://hacks.mozilla.org/2022/06/training-efficient-neural-network-models-for-firefox-translations/) |
22 | 46 | - [Model training guide](training/README.md) - practical advice on how to use the pipeline |
| 47 | +- [High level overview post on Mozilla Hacks](https://hacks.mozilla.org/2022/06/training-efficient-neural-network-models-for-firefox-translations/) |
| 48 | +- [The Training Pipeline DAG](https://docs.google.com/presentation/d/1HkypImI_hbA3n1ljU57ZPAzW8PuQqdv2wrXqj688KtQ/edit?slide=id.g3421e8f521e_1_419#slide=id.g3421e8f521e_1_419) |
| 49 | +- [Lightning Talk on the Training Pipeline Overview](https://www.youtube.com/watch?v=TfDEAYCeF6s) |
| 50 | +- [Model registry that shows all trained models](https://mozilla.github.io/translations/model-registry/) |
| 51 | +- [JSON with exported models](https://storage.googleapis.com/moz-fx-translations-data--303e-prod-translations-data/db/models.json) |
| 52 | +- [Models released to Firefox](https://mozilla.github.io/translations/firefox-models/) |
| 53 | +- [Final evaluation results](https://mozilla.github.io/translations/final-evals/) |
| 54 | +- [Running Experiments Dashboard](https://docs.google.com/spreadsheets/d/1Kiz9xUjo2jpeeVGtaL3jA_cLiCiiyz8GvIoQADMyYqo/edit?gid=0#gid=0) |
| 55 | +- Production bucket with models, training corpus, configs etc.: [moz-fx-translations-data--303e-prod-translations-data](https://console.cloud.google.com/storage/browser/moz-fx-translations-data--303e-prod-translations-data) - Uploaded models |
| 56 | +- [Documentation of the Firefox integration](https://firefox-source-docs.mozilla.org/toolkit/components/translations/index.html) |
23 | 57 |
|
24 | 58 | ## Acknowledgements |
| 59 | + |
25 | 60 | This project uses materials developed by: |
| 61 | + |
26 | 62 | - Bergamot project ([github](https://github.com/browsermt), [website](https://browser.mt/)) that has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 825303 |
27 | 63 | - HPLT project ([github](https://github.com/hplt-project), [website](https://hplt-project.org/)) that has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement No 101070350 and from UK Research and Innovation (UKRI) under the UK government’s Horizon Europe funding guarantee [grant number 10052546] |
28 | 64 | - OPUS-MT project ([github](https://github.com/Helsinki-NLP/Opus-MT), [website](https://opus.nlpl.eu/)) |
29 | | -- Many other open source projects and research papers (see [References](README.md#references)) |
| 65 | +- Many other open source projects and research papers (see [References](docs/README.md#references)) |
30 | 66 |
|
31 | 67 | ## References |
32 | 68 |
|
|
0 commit comments