Instructions to use Helsinki-NLP/opus-mt-az-tr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-az-tr 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-az-tr")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-az-tr") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-az-tr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {"hf_name":"aze-tur","source_languages":"aze","target_languages":"tur","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/aze-tur\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["az","tr"],"src_constituents":["aze_Latn"],"tgt_constituents":["tur"],"src_multilingual":false,"tgt_multilingual":false,"prepro":" normalization + SentencePiece (spm4k,spm4k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/aze-tur\/opus-2020-06-16.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/aze-tur\/opus-2020-06-16.test.txt","src_alpha3":"aze","tgt_alpha3":"tur","short_pair":"az-tr","chrF2_score":0.529,"bleu":24.4,"brevity_penalty":0.956,"ref_len":5380.0,"src_name":"Azerbaijani","tgt_name":"Turkish","train_date":"2020-06-16","src_alpha2":"az","tgt_alpha2":"tr","prefer_old":false,"long_pair":"aze-tur","helsinki_git_sha":"480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535","transformers_git_sha":"2207e5d8cb224e954a7cba69fa4ac2309e9ff30b","port_machine":"brutasse","port_time":"2020-08-21-14:41"} |