Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- Helsinki-NLP/tatoeba
|
| 5 |
+
- openlanguagedata/flores_plus
|
| 6 |
+
- facebook/bouquet
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- ru
|
| 10 |
+
metrics:
|
| 11 |
+
- bleu
|
| 12 |
+
- comet
|
| 13 |
+
- chrf
|
| 14 |
+
pipeline_tag: translation
|
| 15 |
+
---
|
| 16 |
+
# OPUS-MT-tiny-rus-eng
|
| 17 |
+
|
| 18 |
+
Distilled model from a Tatoeba-MT Teacher: [OPUS-MT-models/en-ru/opus-2020-02-11](https://object.pouta.csc.fi/OPUS-MT-models/en-ru/opus-2020-02-11.zip), which has been trained on the [Tatoeba](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/data) dataset.
|
| 19 |
+
|
| 20 |
+
We used the [OpusDistillery](https://github.com/Helsinki-NLP/OpusDistillery) to train new a new student with the tiny architecture, with a regular transformer decoder.
|
| 21 |
+
For training data, we used [Tatoeba](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/data).
|
| 22 |
+
The configuration file fed into OpusDistillery can be found [here](https://github.com/Helsinki-NLP/OpusDistillery/blob/main/configs/opustranslate_hf/config.op.en-ru.yml).
|
| 23 |
+
|
| 24 |
+
## How to run
|
| 25 |
+
```python
|
| 26 |
+
>>> from transformers import pipeline
|
| 27 |
+
>>> pipe = pipeline("translation", model="Helsinki-NLP/opus-mt_tiny", max_length=256)
|
| 28 |
+
>>> pipe("Les efforts visant à trouver le lieu de l’accident sont restreints par des intempéries et le terrain accidenté.")
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Benchmarks
|
| 32 |
+
### Teacher
|
| 33 |
+
| testset | BLEU | chr-F | COMET|
|
| 34 |
+
|-----------------------|-------|-------|-------|
|
| 35 |
+
| Flores+ | 25.8 | 53.9 | 0.8459|
|
| 36 |
+
| Bouquet | 31.8 |55.3 |0.8685 |
|
| 37 |
+
|
| 38 |
+
### Student
|
| 39 |
+
|
| 40 |
+
| testset | BLEU | chr-F | COMET |
|
| 41 |
+
|-----------------------|-------|-------|-------|
|
| 42 |
+
| Flores+ | | | |
|
| 43 |
+
| Bouquet | | | |
|