Instructions to use Nextcloud-AI/opus-mt-ja-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-ja-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-ja-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-ja-en") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-ja-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.0224d68
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
0770961
-
Adding generation config file(s)
7b9dd01
-
Add TF weights
Joao Ganteb4659fe
-
metadata: add license
6282eb0
-
Update README.md
b022f09
-
Update README.md
46b1b50 -
Update config.json
37bb2d0 -
Update tokenizer_config.json
7e7fc45 -
Update vocab.json
4248769
-
Update README.md
efcda20 -
Update config.json
d6ab646 -
Update tokenizer_config.json
0b28a7d -
Update vocab.json
d61e97a -
Update README.md
7f19acc
-
Update README.md
9a336cf -
Update README.md
38829a0
-
Update README.md
ab03d33
-
Update README.md
fde5e50
-
Update config.json
993e25a -
Update config.json
eea1202
-
Update config.json
2994b96 -
Update config.json
7cdf529
-
Update vocab.json
15c60e7 -
Update source.spm
04b4631 -
Update target.spm
cae1fe7 -
Update tokenizer_config.json
330352d -
Update config.json
ad66c89 -
Update pytorch_model.bin
ee45ff1 -
initial commit
8b6e2a6