Instructions to use Nextcloud-AI/opus-mt-it-sv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-it-sv 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="Nextcloud-AI/opus-mt-it-sv")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-it-sv") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-it-sv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.b3fdff6
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
e33907b
-
Adding generation config file(s)
fa06f2d
-
Add TF weights
Joao Gante6d6057a
-
metadata: add license
ca009b2
-
Update README.md
de7946a
-
Update README.md
4415331 -
Update config.json
e9ad1af -
Update tokenizer_config.json
a5ab0e2 -
Update vocab.json
5f15fc9
-
Update README.md
1ed8bdf -
Update config.json
8850687 -
Update tokenizer_config.json
7985faa -
Update vocab.json
ea42efb -
Update README.md
0f919ec
-
Update README.md
680816b -
Update README.md
17c829b
-
Update README.md
afff597
-
Update README.md
59d3131
-
Update config.json
b133de8 -
Update config.json
03bcd02
-
Update config.json
ee79af1 -
Update config.json
802d02e
-
Update tokenizer_config.json
93cd910 -
Update vocab.json
591c058 -
Update source.spm
8e7b7c7 -
Update target.spm
ce4aad7 -
Update config.json
ff9579a -
Update pytorch_model.bin
5a91665 -
initial commit
52aabf8