Instructions to use simonmun/HSC_gpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use simonmun/HSC_gpt2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="simonmun/HSC_gpt2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("simonmun/HSC_gpt2") model = AutoModelForSequenceClassification.from_pretrained("simonmun/HSC_gpt2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from simonmun/HSC_gpt2: direct link, hf CLI and curl.
- Browser
- Download file 122 Bytes
-
https://huggingface.co/simonmun/HSC_gpt2/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://simonmun/HSC_gpt2/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/simonmun/HSC_gpt2/resolve/main/special_tokens_map.json
122 Bytes
| { | |
| "bos_token": "</s>", | |
| "eos_token": "</s>", | |
| "mask_token": "<mask>", | |
| "pad_token": "</s>", | |
| "unk_token": "<unk>" | |
| } | |