<p><a href="https://github.com/mozilla/firefox-translations-models" rel="nofollow noreferrer">https://github.com/mozilla/firefox-translations-models</a> has some pretty strong models(at least, from French, tested myself) which weight around 20 MB from ~20 languages to English (~20 MB per language).</p>
<ul>
<li>Playground website: <a href="https://mozilla.github.io/translate" rel="nofollow noreferrer">https://mozilla.github.io/translate</a></li>
<li>Training script: <a href="https://github.com/mozilla/firefox-translations-training" rel="nofollow noreferrer">https://github.com/mozilla/firefox-translations-training</a></li>
<li>Firefox extension to use the models: <a href="https://browser.mt/" rel="nofollow noreferrer">https://browser.mt/</a></li>
<li><a href="https://github.com/mozilla/firefox-translations-models/blob/main/LICENSE" rel="nofollow noreferrer">MPL-2.0 license</a></li>
<li>The models are based on <a href="https://marian-nmt.github.io/" rel="nofollow noreferrer">https://marian-nmt.github.io/</a></li>
<li><a href="https://hacks.mozilla.org/2022/06/training-efficient-neural-network-models-for-firefox-translations/" rel="nofollow noreferrer">https://hacks.mozilla.org/2022/06/training-efficient-neural-network-models-for-firefox-translations/</a> explains the training process:</li>
</ul>
<div class="s-table-container"><table class="s-table">
<thead>
<tr>
<th>Model</th>
<th>Size</th>
<th>Total number of parameters</th>
<th>Dataset decoding time on 1 CPU core</th>
<th>Quality, BLEU</th>
</tr>
</thead>
<tbody>
<tr>
<td>Teacher</td>
<td>798Mb</td>
<td>192.75M</td>
<td>631s</td>
<td>52.5</td>
</tr>
<tr>
<td>Student quantized</td>
<td>17Mb</td>
<td>15.7M</td>
<td>17.9s</td>
<td>50.7</td>
</tr>
</tbody>
</table></div>
<hr />
<p>Firefox extension:</p>
<p><a href="https://i.sstatic.net/MB1P2MEp.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/MB1P2MEp.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2024-09-05T17:46:51.377Z
2024-09-05T18:29:52.663Z
2024-09-05T18:29:52.663Z
Franck Dernoncourt
<p>What's the SOTA sub-50MB model for machine translation on texts between 1 and 5 words?</p>
<p>I am interested in translating the following languages (esp. languages marked by an asterisk) into English:</p>
<ul>
<li><p>Danish</p>
</li>
<li><p>Dutch (Netherlands)</p>
</li>
<li><p>French*</p>
</li>
<li><p>German*</p>
</li>
<li><p>Italian*</p>
</li>
<li><p>Japanese*</p>
</li>
<li><p>Korean*</p>
</li>
<li><p>Norwegian</p>
</li>
<li><p>Portuguese (Brazil and EU)*</p>
</li>
<li><p>Russian*</p>
</li>
<li><p>Simplified Mandarin (China, Singapore)*</p>
</li>
<li><p>Spanish*</p>
</li>
<li><p>Swedish</p>
</li>
<li><p>Traditional Cantonese (Hong Kong)</p>
</li>
<li><p>Traditional Mandarin (Taiwan)</p>
</li>
</ul>

<natural-language-processing><machine-translation>
What's the SOTA sub-50MB model for machine translation on texts between 1 and 5 words?
Franck Dernoncourt
# What's the SOTA sub-50MB model for machine translation on texts between 1 and 5 words?

(Asked by: username_0 on 2024-09-03)

What's the SOTA sub-50MB model for machine translation on texts between 1 and 5 words?

I am interested in translating the following languages (esp. languages marked by an asterisk) into English:

* Danish
* Dutch (Netherlands)
* French\*
* German\*
* Italian\*
* Japanese\*
* Korean\*
* Norwegian
* Portuguese (Brazil and EU)\*
* Russian\*
* Simplified Mandarin (China, Singapore)\*
* Spanish\*
* Swedish
* Traditional Cantonese (Hong Kong)
* Traditional Mandarin (Taiwan)

**Tags:** natural-language-processing, machine-translation


---

## 1 answers

### Answer by username_0 on 2024-09-05. Score: 0 | Accepted answer

<https://github.com/mozilla/firefox-translations-models> has some pretty strong models(at least, from French, tested myself) which weight around 20 MB from ~20 languages to English (~20 MB per language).

* Playground website: <https://mozilla.github.io/translate>
* Training script: <https://github.com/mozilla/firefox-translations-training>
* Firefox extension to use the models: <https://browser.mt/>
* [MPL-2.0 license](https://github.com/mozilla/firefox-translations-models/blob/main/LICENSE)
* The models are based on <https://marian-nmt.github.io/>
* <https://hacks.mozilla.org/2022/06/training-efficient-neural-network-models-for-firefox-translations/> explains the training process:

| Model | Size | Total number of parameters | Dataset decoding time on 1 CPU core | Quality, BLEU |
| --- | --- | --- | --- | --- |
| Teacher | 798Mb | 192.75M | 631s | 52.5 |
| Student quantized | 17Mb | 15.7M | 17.9s | 50.7 |

---

Firefox extension:

[![enter image description here](https://i.sstatic.net/MB1P2MEp.png)](https://i.sstatic.net/MB1P2MEp.png)


---

