Instructions to use Nextcloud-AI/opus-mt-fi-sv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-fi-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-fi-sv")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-fi-sv") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-fi-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.4b31a79
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
adff0ed
-
Adding generation config file(s)
f1b501d
-
Add TF weights
Joao Gantee6d5273
-
metadata: add license
4f951b1
-
Changed num_beams to 4
8459a04
-
Update README.md
72f9194
-
Update README.md
9d286f1 -
Update config.json
6af1ef0 -
Update tokenizer_config.json
837ff8c -
Update vocab.json
839aa35
-
Update README.md
0324bab -
Update config.json
dcd0583 -
Update tokenizer_config.json
135b0ca -
Update vocab.json
dff30fc -
Update README.md
dfcae62
-
Update README.md
466da10 -
Update README.md
2f885ee
-
Update README.md
a7995e1
-
Update README.md
ce4d199
-
Update config.json
090797f -
Update config.json
789b4f9 -
Update config.json
70ce453 -
Update pytorch_model.bin
8c8e0d4
-
Update config.json
4c144e8 -
Update config.json
7094618
-
Update config.json
202781b -
Update config.json
4726316 -
Update vocab.json
5e8b664 -
Update source.spm
6abb12c -
Update target.spm
892e631 -
Update tokenizer_config.json
99db839 -
Update config.json
2a25780 -
initial commit
dba669d