Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Train and set up a custom machine translation model docs #281

Merged
merged 4 commits into from
Sep 1, 2023

Conversation

mathjazz
Copy link
Contributor

Fix #279.

@mathjazz mathjazz requested a review from a team as a code owner August 31, 2023 20:24
Copy link
Contributor

@flodolo flodolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit to fix and one question, but the doc is clear otherwise 👍🏼


Note that creating the model takes a few hours. When the model is created, store its name (usally starting with `NM`, followed by a series of integers) under *Google automl model* in the [Django’s admin interface](https://pontoon.mozilla.org/a/) of the locale.

From that point on, Machiney will start using the custom machine translation model instead of the generic one and you’ll be set to enable pretranslation for the locale.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
From that point on, Machiney will start using the custom machine translation model instead of the generic one and you’ll be set to enable pretranslation for the locale.
From that point on, Machinery will start using the custom machine translation model instead of the generic one and you’ll be set to enable pretranslation for the locale.


When choosing the name for the dataset, follow the pattern used by existing datasets - `dataset_LOCALE_YYYY_MM_DD`. When choosing the Cloud Storage path where the uploaded files are to be stored, pick `pontoon-prod-model-data-c1107144`.

Note that creating the model takes a few hours. When the model is created, store its name (usally starting with `NM`, followed by a series of integers) under *Google automl model* in the [Django’s admin interface](https://pontoon.mozilla.org/a/) of the locale.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention the concurrency limit? How does that work: can you start training 6, but only 4 will be worked on at the same time, or can you only request 4?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Hard to tell if you can request more than 4, because there was a bug in the Console last time we hit the threshold (of 2 concurrently train models at the time), which is now presumably fixed.

@flodolo flodolo merged commit 4beed76 into main Sep 1, 2023
2 checks passed
@flodolo flodolo deleted the custom-model branch September 1, 2023 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how to train custom engine and set up a locale in Pontoon
2 participants