Page MenuHomePhabricator

Support requesting translations from a specific model in MinT
Closed, ResolvedPublic

Description

As more translation models are integrated in MinT, we start to find languages supported by more than one model. Currently MinT configuration will determine which is the model to be used. However, this can be limiting. For example, it becomes hard for communities to have a way to try the different options and decide which one they prefer as the default.

This ticket proposes to expand the MinT API with an additional option to allow for requesting the translation from a specific model.

Requests without a specific model should still be supported. We still want to have a default model to be used when a particular model is not indicated. But this ticket will be providing the optional possibility to request the translation from one particular model.

Users of this option may also need a programmatic way to find which models are available for a particular language pair.

Event Timeline

Pginer-WMF renamed this task from Support requesting translations from a specific model to Support requesting translations from a specific model in MinT.Jun 9 2023, 1:11 PM
Pginer-WMF triaged this task as Medium priority.
Pginer-WMF moved this task from Backlog to General translation functionality on the MinT board.

Change 981290 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/services/machinetranslation@master] Add support for optional model in translation request

https://gerrit.wikimedia.org/r/981290

Change 981290 merged by jenkins-bot:

[mediawiki/services/machinetranslation@master] Add support for optional model in translation request

https://gerrit.wikimedia.org/r/981290

Change 989126 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/services/machinetranslation@master] UI: Allow selecting translation models

https://gerrit.wikimedia.org/r/989126

Change 989126 merged by jenkins-bot:

[mediawiki/services/machinetranslation@master] UI: Allow selecting translation models

https://gerrit.wikimedia.org/r/989126

Change 991578 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] Update MinT to 2024-01-18-051410-production

https://gerrit.wikimedia.org/r/991578

It is great to see this being exposed at the MinT test instance. I captured some aspects that may be worth polishing in a separate ticket: T355303: Adjust multiple model support on MinT test instance

Change 991578 merged by jenkins-bot:

[operations/deployment-charts@master] Update MinT to 2024-01-22-053144-production

https://gerrit.wikimedia.org/r/991578

@santhosh can you help clarify what you mean here : Users of this option may also need a programmatic way to find which models are available for a particular language pair.

how do I find the programmatic way on the UI ? its quite unclear to me

The list of models for a language pair is provided in API output of https://translate.wmcloud.org/api/languages
This is linked in the UI - See bottom links - API Spec

@santhosh thanks for clarifying ..

From the images below depending on the Source and target languages the models applicable will be available to be used for translation

Screenshot 2024-02-27 at 4.22.29 PM.png (868×768 px, 91 KB)

Screenshot 2024-02-27 at 4.23.05 PM.png (701×619 px, 52 KB)