Instructions to use sshleifer/student_xsum_12_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sshleifer/student_xsum_12_1 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("sshleifer/student_xsum_12_1") model = AutoModelForSeq2SeqLM.from_pretrained("sshleifer/student_xsum_12_1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from sshleifer/student_xsum_12_1: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/sshleifer/student_xsum_12_1/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://sshleifer/student_xsum_12_1/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/sshleifer/student_xsum_12_1/resolve/main/special_tokens_map.json
238 Bytes
| {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}} |