Instructions to use Nextcloud-AI/opus-mt-fi-nl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-fi-nl 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-nl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-fi-nl") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-fi-nl", 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.8b046f0
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
c99bfe0
-
Adding generation config file(s)
1724080
-
Add TF weights
Joao Gantea11d6f0
-
metadata: add license
c73058f
-
Changed num_beams to 4
a8e88c0
-
Update README.md
fbedff4
-
Update README.md
ae87391 -
Update config.json
ff3ff64 -
Update tokenizer_config.json
24c8ca5 -
Update vocab.json
a39dd16
-
Update README.md
9b90aa1 -
Update config.json
73b9da2 -
Update tokenizer_config.json
d8619cd -
Update vocab.json
b08743c -
Update README.md
39d9fe8
-
Update README.md
4bd6937 -
Update README.md
0aba9b1
-
Update README.md
5d6c3fb
-
Update README.md
12299d4
-
Update config.json
d793b1f -
Update config.json
42171eb
-
Update config.json
9b535a9 -
Update config.json
331e6fe
-
Update source.spm
d98637c -
Update target.spm
36e8fe4 -
Update tokenizer_config.json
8b4586e -
Update vocab.json
f35f441 -
Update config.json
71a7e9c -
Update pytorch_model.bin
de13fa5 -
initial commit
2ce3e44