Instructions to use Helsinki-NLP/opus-mt-en-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-it with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-it")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-it") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-it", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
| tags: | |
| - translation | |
| license: apache-2.0 | |
| ### opus-mt-en-it | |
| * source languages: en | |
| * target languages: it | |
| * OPUS readme: [en-it](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-it/README.md) | |
| * dataset: opus | |
| * model: transformer | |
| * pre-processing: normalization + SentencePiece | |
| * download original weights: [opus-2019-12-04.zip](https://object.pouta.csc.fi/OPUS-MT-models/en-it/opus-2019-12-04.zip) | |
| * test set translations: [opus-2019-12-04.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-it/opus-2019-12-04.test.txt) | |
| * test set scores: [opus-2019-12-04.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-it/opus-2019-12-04.eval.txt) | |
| ## Benchmarks | |
| | testset | BLEU | chr-F | | |
| |-----------------------|-------|-------| | |
| | newssyscomb2009.en.it | 30.9 | 0.606 | | |
| | newstest2009.en.it | 31.9 | 0.604 | | |
| | Tatoeba.en.it | 48.2 | 0.695 | | |