Instructions to use RohanMuralidharan/Transync with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RohanMuralidharan/Transync 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="RohanMuralidharan/Transync")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("RohanMuralidharan/Transync") model = AutoModelForSeq2SeqLM.from_pretrained("RohanMuralidharan/Transync", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 538 Bytes
3fa8f3e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | {
"src_lang": null,
"tgt_lang": null,
"eos_token": "</s>",
"unk_token": "<unk>",
"sep_token": "</s>",
"cls_token": "<s>",
"pad_token": "<pad>",
"mask_token": {
"content": "<mask>",
"single_word": false,
"lstrip": true,
"rstrip": false,
"normalized": true,
"__type": "AddedToken"
},
"bos_token": "<s>",
"tokenizer_file": null,
"language_codes": "ML50",
"special_tokens_map_file": "special_tokens_map.json",
"name_or_path": "facebook/mbart-large-50-one-to-many-mmt"
} |