Instructions to use Nextcloud-AI/opus-mt-fi-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-fi-en 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-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-fi-en") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-fi-en", 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.c59cf22
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
c4d8fff
-
Adding generation config file(s)
d164945
-
Add TF weights
Joao Gante7fdf489
-
Changed num_beams to 4
7fb1e75
-
Update README.md
3343cbf -
Update README.md
77eff4a -
Update metadata.json
cc7bc23
-
Update README.md
0252c65 -
Update config.json
2e6d409 -
Update metadata.json
7ec2f79 -
Update tokenizer_config.json
46aadce -
Update vocab.json
8d472a6 -
Update README.md
77cd058 -
Update metadata.json
f4f6b22 -
Update README.md
0ad0f5b -
Update config.json
c9b57c8 -
Update metadata.json
d1659e1 -
Update pytorch_model.bin
68f34d5 -
Update source.spm
b60587e -
Update target.spm
aaf0de3 -
Update tokenizer_config.json
44562ee -
Update vocab.json
eeda203
-
Update README.md
ac30932 -
Update config.json
09ceab3 -
Update tokenizer_config.json
65b18de -
Update vocab.json
25bcac5 -
Update README.md
bb7d9c0
-
Update README.md
aee8be9 -
Update README.md
2eaf325
-
Update README.md
036f937
-
Update README.md
da0bf96
-
Update config.json
1f55cb7 -
Update config.json
c11785f -
Update config.json
dc9bdb5
-
Update config.json
a9aa8c0 -
Update config.json
fd5c14c
-
Update config.json
885a144 -
Update config.json
277c087 -
Update tokenizer_config.json
3f16595 -
Update vocab.json
64d69bd -
Update source.spm
c1984c5 -
Update target.spm
92e2b28 -
Update config.json
f13c101 -
initial commit
bcf5a60