Text Classification
Transformers
Safetensors
PyTorch
English
attentiontypes
custom-code
commonsense-reasoning
course-project
experimental
custom_code
Instructions to use owenarink/attentiontypes-commonsense with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use owenarink/attentiontypes-commonsense with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="owenarink/attentiontypes-commonsense", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("owenarink/attentiontypes-commonsense", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from owenarink/attentiontypes-commonsense: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/owenarink/attentiontypes-commonsense/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://owenarink/attentiontypes-commonsense/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/owenarink/attentiontypes-commonsense/resolve/main/tokenizer_config.json
243 Bytes
| { | |
| "backend": "tokenizers", | |
| "bos_token": "<cls>", | |
| "cls_token": "<cls>", | |
| "eos_token": "<eos>", | |
| "model_max_length": 128, | |
| "pad_token": "<pad>", | |
| "sep_token": "<sep>", | |
| "tokenizer_class": "TokenizersBackend", | |
| "unk_token": "<unk>" | |
| } | |