Add support for model variants
Categories
(Firefox :: Translations, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: gregtatum, Assigned: gregtatum)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
We're doing model architecture experiments, and it would be nice to support different model variants that have the same language pair. It should be good enough to support variants in Nightly, but shouldn't be used for production models.
| Assignee | ||
Comment 1•1 year ago
|
||
I couldn't load in the .sys.mjs into the unprivileged context of the
about:translations page. There was nothing privileged in the current
grab bag of utils, and we can always create a privileged set of utils if
we need some in the future.
| Assignee | ||
Comment 2•1 year ago
|
||
The following patch uses language pair as the term, and I want to be
consistent across the rest of the code.
| Assignee | ||
Comment 3•1 year ago
|
||
This is a big patch, but it adds the support for model variants by
defining a language pair struct instead of a fromLanguage and
toLanguage. This struct can also include a source variant and target
variant. The code will resolve the pivot models as needed.
This is not going to be release user facing, but can be used in a
Nightly setting. There is nothing enforcing this, but it's the intention
of the code.
This will allow us to test multiple variants of models in Nightly and
gather feedback from users and other engineers.
| Assignee | ||
Comment 4•1 year ago
|
||
Rather than fully fix Android to support model variants, I took a
shortcut and removed the variants in the GeckoView wrapper layer. This
retains compatibility and opens up the possibility of adding support to
Android in the future. See Bug 1943444.
| Assignee | ||
Comment 5•1 year ago
|
||
I found this JSError being thrown when running tests.
Comment 7•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/61043c4e3b8f
https://hg.mozilla.org/mozilla-central/rev/51d6a406b917
https://hg.mozilla.org/mozilla-central/rev/fe82f7593d69
https://hg.mozilla.org/mozilla-central/rev/a133d48362a4
https://hg.mozilla.org/mozilla-central/rev/21c5afe6e211
Description
•