Instructions to use Helsinki-NLP/opus-mt-it-lt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-it-lt 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-lt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-it-lt") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-it-lt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
96a6804
-
Adding generation config file(s)
ee2defd
-
Add TF weights
Joao Gante567374d
-
Update README.md
26a8c91 -
Update README.md
9c4ae62 -
Update metadata.json
c7d82a3
-
Update README.md
439be3b -
Update config.json
2028814 -
Update metadata.json
8317926 -
Update tokenizer_config.json
f1aa589 -
Update vocab.json
615746a -
Update README.md
df08122 -
Update metadata.json
7741f2a -
Update README.md
a7b9878 -
Update config.json
40e6fad -
Update metadata.json
55646a7 -
Update pytorch_model.bin
d935e9c -
Update source.spm
591236d -
Update target.spm
e18d152 -
Update tokenizer_config.json
b82d941 -
Update vocab.json
afdc0d3 -
initial commit
484521c