Instructions to use Nextcloud-AI/opus-mt-fi-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-fi-de 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-de")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-fi-de") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-fi-de", 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.4f9d42c
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
659d3bc
-
Adding generation config file(s)
c248e67
-
Add TF weights
Joao Gante4d59fbb
-
metadata: add license
306b925
-
Changed num_beams to 4
87746ea
-
Update README.md
009c769
-
Update README.md
8ec1c27 -
Update config.json
78ad29a -
Update tokenizer_config.json
f70674d -
Update vocab.json
415f885
-
Update README.md
c3183d9 -
Update config.json
a45a302 -
Update tokenizer_config.json
5101634 -
Update vocab.json
74ea6ac -
Update README.md
29d0c23
-
Update README.md
4a25039 -
Update README.md
6f483b7
-
Update README.md
408028c
-
Update README.md
40a2993
-
Update config.json
f52a336 -
Update config.json
2a6c6e9
-
Update config.json
0048237 -
Update config.json
e5962d5
-
Update vocab.json
6d8c10e -
Update source.spm
55259df -
Update target.spm
4129278 -
Update tokenizer_config.json
f9e6c91 -
Update config.json
5aa0696 -
Update pytorch_model.bin
2073a0a -
initial commit
666a4a9