Instructions to use Helsinki-NLP/opus-mt-it-ms with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-it-ms 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-it-ms")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-it-ms") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-it-ms", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
d1013e8
-
Adding generation config file(s)
61c7796
-
Add TF weights
Joao Gante2219db2
-
Update README.md
c954aae -
Update README.md
484ab74 -
Update metadata.json
5edf368
-
Update README.md
f2e01d9 -
Update config.json
c084acc -
Update metadata.json
9d19192 -
Update tokenizer_config.json
57ccacf -
Update vocab.json
8dae5d8 -
Update README.md
2941279 -
Update metadata.json
c61aafc -
Update README.md
e29dd05 -
Update config.json
6405bb5 -
Update metadata.json
b0d50c8 -
Update pytorch_model.bin
e000acc -
Update source.spm
e333c95 -
Update target.spm
68cbd72 -
Update tokenizer_config.json
8660352 -
Update vocab.json
e52570a -
initial commit
81c035d