Instructions to use Nextcloud-AI/opus-mt-zh-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-zh-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-zh-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-zh-en") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-zh-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
cf10909
-
Adding generation config file(s)
820b010
-
Add TF weights
Joao Gante5264cd6
-
Update README.md
6b02b21 -
Model Card (#3)
- Model Card (ffbc53c66f0098efd361b3f2e273e7e6897d0418) Co-authored-by: Ezi Ozoani <Ezi@users.noreply.huggingface.co>fff364a
-
Addition of Rust model
b7d1e2a
-
Update README.md
f6f1d2f -
Update README.md
56d6145 -
Update metadata.json
aca6acd
-
Update README.md
98a08db -
Update README.md
ec3afaf -
Update metadata.json
0280959 -
Update README.md
482659a -
Update config.json
09d5169 -
Update metadata.json
a4d4eb7 -
Update pytorch_model.bin
a578516 -
Update source.spm
d44d22a -
Update target.spm
2d05344 -
Update tokenizer_config.json
ca46961 -
Update vocab.json
deca26d -
initial commit
02150f2