Instructions to use Helsinki-NLP/opus-mt-grk-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-grk-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="Helsinki-NLP/opus-mt-grk-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-grk-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-grk-en", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update metadata.json
Browse files- metadata.json +1 -1
metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"hf_name":"grk-eng","source_languages":"grk","target_languages":"eng","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/grk-eng\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["el","grk","en"],"src_constituents":["grc_Grek","ell"],"tgt_constituents":["eng"],"src_multilingual":true,"tgt_multilingual":false,"prepro":" normalization + SentencePiece (spm12k,spm12k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/grk-eng\/opus2m-2020-08-01.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/grk-eng\/opus2m-2020-08-01.test.txt","src_alpha3":"grk","tgt_alpha3":"eng","short_pair":"grk-en","chrF2_score":0.733,"bleu":60.9,"brevity_penalty":0.973,"ref_len":62205.0,"src_name":"Greek languages","tgt_name":"English","train_date":"2020-08-01","src_alpha2":"grk","tgt_alpha2":"en","prefer_old":false,"long_pair":"grk-eng","helsinki_git_sha":"480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535","transformers_git_sha":"
|
|
|
|
| 1 |
+
{"hf_name":"grk-eng","source_languages":"grk","target_languages":"eng","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/grk-eng\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["el","grk","en"],"src_constituents":["grc_Grek","ell"],"tgt_constituents":["eng"],"src_multilingual":true,"tgt_multilingual":false,"prepro":" normalization + SentencePiece (spm12k,spm12k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/grk-eng\/opus2m-2020-08-01.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/grk-eng\/opus2m-2020-08-01.test.txt","src_alpha3":"grk","tgt_alpha3":"eng","short_pair":"grk-en","chrF2_score":0.733,"bleu":60.9,"brevity_penalty":0.973,"ref_len":62205.0,"src_name":"Greek languages","tgt_name":"English","train_date":"2020-08-01","src_alpha2":"grk","tgt_alpha2":"en","prefer_old":false,"long_pair":"grk-eng","helsinki_git_sha":"480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535","transformers_git_sha":"2207e5d8cb224e954a7cba69fa4ac2309e9ff30b","port_machine":"brutasse","port_time":"2020-08-21-14:41"}
|