Instructions to use Nextcloud-AI/opus-mt-ja-fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-ja-fr 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-ja-fr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-ja-fr") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-ja-fr", 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.4ba9cb5
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
a14bc25
-
Adding generation config file(s)
2f2bd2f
-
Add TF weights
Joao Gantecc0b18f
-
metadata: add license
2d41378
-
Update README.md
667edee
-
Update README.md
3525157 -
Update config.json
fff6ca9 -
Update tokenizer_config.json
f3cd65c -
Update vocab.json
f7e2462
-
Update README.md
e9162e2 -
Update config.json
d8c9110 -
Update tokenizer_config.json
db6fc39 -
Update vocab.json
08ebd72 -
Update README.md
7570e59
-
Update README.md
f75f75f -
Update README.md
1b92643
-
Update README.md
7aa435c
-
Update README.md
bff0e7a
-
Update config.json
d6451c9 -
Update config.json
d24fe7b
-
Update config.json
c52bdb4 -
Update config.json
225b430
-
Update source.spm
32838b5 -
Update target.spm
5b3c619 -
Update tokenizer_config.json
5e93b00 -
Update vocab.json
83cfc02 -
Update config.json
ea39884 -
Update pytorch_model.bin
b02db37 -
initial commit
167e1e2