Instructions to use hf-internal-testing/tiny-random-MBartForConditionalGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-MBartForConditionalGeneration with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-MBartForConditionalGeneration") model = AutoModelForSeq2SeqLM.from_pretrained("hf-internal-testing/tiny-random-MBartForConditionalGeneration", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-MBartForConditionalGeneration: direct link, hf CLI and curl.
- Browser
- Download file 911 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-MBartForConditionalGeneration/resolve/9d2a48747c3671ef7a9b0c202d79c677b6d6f272/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-MBartForConditionalGeneration@9d2a48747c3671ef7a9b0c202d79c677b6d6f272/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-MBartForConditionalGeneration/resolve/9d2a48747c3671ef7a9b0c202d79c677b6d6f272/tokenizer_config.json
911 Bytes
| { | |
| "additional_special_tokens": [ | |
| "ar_AR", | |
| "cs_CZ", | |
| "de_DE", | |
| "en_XX", | |
| "es_XX", | |
| "et_EE", | |
| "fi_FI", | |
| "fr_XX", | |
| "gu_IN", | |
| "hi_IN", | |
| "it_IT", | |
| "ja_XX", | |
| "kk_KZ", | |
| "ko_KR", | |
| "lt_LT", | |
| "lv_LV", | |
| "my_MM", | |
| "ne_NP", | |
| "nl_XX", | |
| "ro_RO", | |
| "ru_RU", | |
| "si_LK", | |
| "tr_TR", | |
| "vi_VN", | |
| "zh_CN" | |
| ], | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": { | |
| "__type": "AddedToken", | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "model_max_length": 100, | |
| "name_or_path": "temp/dummy/mbart/processors", | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "sp_model_kwargs": {}, | |
| "special_tokens_map_file": null, | |
| "src_lang": null, | |
| "tgt_lang": null, | |
| "tokenizer_class": "MBartTokenizer", | |
| "tokenizer_file": null, | |
| "unk_token": "<unk>" | |
| } | |