Instructions to use Nextcloud-AI/opus-mt-de-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-de-zh 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-de-zh")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-de-zh") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-de-zh", 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.acd4cbc
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
cf77098
-
Adding generation config file(s)
13ea90e
-
Add TF weights
Joao Gante64e985e
-
metadata: add license
93d4bc0
-
Changed num_beams to 4
c5d06d8
-
Update README.md
902c19c
-
Update README.md
e86346e -
Update config.json
04a8442 -
Update tokenizer_config.json
d7a6a9d -
Update vocab.json
c06a190
-
Update README.md
6a048d9 -
Update config.json
40c9d34 -
Update tokenizer_config.json
8d3a0bd -
Update vocab.json
89ac6c1 -
Update README.md
e454b9d
-
Update README.md
3c416ea -
Update README.md
e0aabc9
-
Update README.md
9887c78
-
Update README.md
e314ec5
-
Update config.json
62792c5 -
Update pytorch_model.bin
4a91cc2 -
Update tokenizer_config.json
18a1c33 -
Update vocab.json
f1cf468 -
Update source.spm
0196e27 -
Update target.spm
057a159 -
Update config.json
b5fd58d -
Update tokenizer_config.json
1f18972 -
Update vocab.json
9b6a6a9 -
Update source.spm
7f7a45b -
Update target.spm
029aba1 -
Update config.json
8864cea -
initial commit
7ea22ce