Instructions to use Nextcloud-AI/opus-mt-es-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-es-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-es-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-es-en") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-es-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {"hf_name":"spa-eng","source_languages":"spa","target_languages":"eng","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/spa-eng\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["es","en"],"src_constituents":["spa"],"tgt_constituents":["eng"],"src_multilingual":false,"tgt_multilingual":false,"prepro":" normalization + SentencePiece (spm32k,spm32k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/spa-eng\/opus-2020-08-18.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/spa-eng\/opus-2020-08-18.test.txt","src_alpha3":"spa","tgt_alpha3":"eng","short_pair":"es-en","chrF2_score":0.739,"bleu":59.6,"brevity_penalty":0.974,"ref_len":79376.0,"src_name":"Spanish","tgt_name":"English","train_date":1597708800000,"src_alpha2":"es","tgt_alpha2":"en","prefer_old":false,"long_pair":"spa-eng","helsinki_git_sha":"d2f0910c89026c34a44e331e785dec1e0faa7b82","transformers_git_sha":"f7af09b4524b784d67ae8526f0e2fcc6f5ed0de9","port_machine":"brutasse","port_time":"2020-08-24-18:20"} |