Instructions to use Helsinki-NLP/opus-mt-it-ar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-it-ar 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-ar")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-it-ar") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-it-ar", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
11004c1
-
Adding generation config file(s)
db52ecb
-
Add TF weights
Joao Gante5abad16
-
Update README.md
894b5e9 -
Update README.md
bac46e6 -
Update metadata.json
7e0dc04
-
Update README.md
18dc0aa -
Update config.json
2a18980 -
Update metadata.json
3724bd6 -
Update tokenizer_config.json
1f11ed4 -
Update vocab.json
3dab191 -
Update README.md
6388f09 -
Update metadata.json
090618d -
Update README.md
37d58e7 -
Update config.json
2d5307a -
Update metadata.json
26093ed -
Update pytorch_model.bin
ca4910a -
Update source.spm
6eec972 -
Update target.spm
93d3c27 -
Update tokenizer_config.json
f194f61 -
Update vocab.json
6d291f6 -
initial commit
ac780f2